fix test linting from #3350

This commit is contained in:
Daniel Freedman 2016-02-17 15:49:49 -08:00
parent 49d04b0dd7
commit 37f7157b12
2 changed files with 15 additions and 15 deletions

View File

@ -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,16 +649,16 @@
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>
</dom-module> </dom-module>

View File

@ -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);