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() {
return function(message) {
return 'translated: ' + message;
}
};
}
},
}
},
_computeTranslateFn: function(translator) {
return function(message) {
return translator(message);
}
},
};
}
});
})();
@ -649,15 +649,15 @@
computed: '_computeTranslateFn(translator)'
},
translator: {
type: Function,
},
type: Function
}
},
_computeTranslateFn: function(translator) {
return function(message) {
return translator(message);
}
},
};
}
});
</script>

View File

@ -284,7 +284,7 @@ suite('single-element binding effects', function() {
'binding-with-dash': 'yes'
};
assert.equal(el.$.boundWithDash.textContent, 'yes');
})
});
});
@ -312,7 +312,7 @@ suite('computed bindings with dynamic functions', function() {
el.translator = function(message) {
return 'changed: ' + message;
}
};
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',
properties: {
translate: {
type: Function,
type: Function
},
message: {
type: String,
value: 'Hello'
},
}
},
observers: ['translate(message)'],
observers: ['translate(message)']
})
});
el = document.createElement('x-observer-with-dynamic-function');
document.body.appendChild(el);