diff --git a/test/unit/bind-elements.html b/test/unit/bind-elements.html index b7f61ca6..f2ae5034 100644 --- a/test/unit/bind-elements.html +++ b/test/unit/bind-elements.html @@ -620,4 +620,35 @@ }); })(); + + + + + \ No newline at end of file diff --git a/test/unit/bind.html b/test/unit/bind.html index a7f853f8..2f3f1160 100644 --- a/test/unit/bind.html +++ b/test/unit/bind.html @@ -310,6 +310,19 @@ suite('computed bindings with dynamic functions', function() { assert.equal(el.$.check.textContent, 'changed: Hello World.'); }); + test('annotated computation / late resolved dynamic function', function() { + el = document.createElement('x-bind-computed-property-late-translator'); + document.body.appendChild(el); + + assert.equal(el.$.check.textContent.trim(), ''); + + el.translator = function(message) { + return 'translated: ' + message; + }; + + assert.equal(el.$.check.textContent, 'translated: Hello'); + }); + test('observer with dynamic function', function() { Polymer({ is: 'x-observer-with-dynamic-function',