mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
fix test linting from #3350
This commit is contained in:
parent
49d04b0dd7
commit
37f7157b12
@ -616,16 +616,16 @@
|
|||||||
value: function() {
|
value: function() {
|
||||||
return function(message) {
|
return function(message) {
|
||||||
return 'translated: ' + message;
|
return 'translated: ' + message;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
|
||||||
|
|
||||||
_computeTranslateFn: function(translator) {
|
_computeTranslateFn: function(translator) {
|
||||||
return function(message) {
|
return function(message) {
|
||||||
return translator(message);
|
return translator(message);
|
||||||
|
};
|
||||||
}
|
}
|
||||||
},
|
|
||||||
|
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
@ -649,15 +649,15 @@
|
|||||||
computed: '_computeTranslateFn(translator)'
|
computed: '_computeTranslateFn(translator)'
|
||||||
},
|
},
|
||||||
translator: {
|
translator: {
|
||||||
type: Function,
|
type: Function
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_computeTranslateFn: function(translator) {
|
_computeTranslateFn: function(translator) {
|
||||||
return function(message) {
|
return function(message) {
|
||||||
return translator(message);
|
return translator(message);
|
||||||
|
};
|
||||||
}
|
}
|
||||||
},
|
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -284,7 +284,7 @@ suite('single-element binding effects', function() {
|
|||||||
'binding-with-dash': 'yes'
|
'binding-with-dash': 'yes'
|
||||||
};
|
};
|
||||||
assert.equal(el.$.boundWithDash.textContent, 'yes');
|
assert.equal(el.$.boundWithDash.textContent, 'yes');
|
||||||
})
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -312,7 +312,7 @@ suite('computed bindings with dynamic functions', function() {
|
|||||||
|
|
||||||
el.translator = function(message) {
|
el.translator = function(message) {
|
||||||
return 'changed: ' + message;
|
return 'changed: ' + message;
|
||||||
}
|
};
|
||||||
|
|
||||||
assert.equal(el.$.check.textContent, 'changed: Hello World.');
|
assert.equal(el.$.check.textContent, 'changed: Hello World.');
|
||||||
});
|
});
|
||||||
@ -335,17 +335,17 @@ suite('computed bindings with dynamic functions', function() {
|
|||||||
is: 'x-observer-with-dynamic-function',
|
is: 'x-observer-with-dynamic-function',
|
||||||
properties: {
|
properties: {
|
||||||
translate: {
|
translate: {
|
||||||
type: Function,
|
type: Function
|
||||||
},
|
},
|
||||||
message: {
|
message: {
|
||||||
type: String,
|
type: String,
|
||||||
value: 'Hello'
|
value: 'Hello'
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
observers: ['translate(message)'],
|
observers: ['translate(message)']
|
||||||
|
|
||||||
})
|
});
|
||||||
|
|
||||||
el = document.createElement('x-observer-with-dynamic-function');
|
el = document.createElement('x-observer-with-dynamic-function');
|
||||||
document.body.appendChild(el);
|
document.body.appendChild(el);
|
||||||
|
Loading…
Reference in New Issue
Block a user