diff --git a/test/unit/bind-elements.html b/test/unit/bind-elements.html index ea8eb3d9..14d20d5a 100644 --- a/test/unit/bind-elements.html +++ b/test/unit/bind-elements.html @@ -1,5 +1,6 @@ \ No newline at end of file + diff --git a/test/unit/bind.html b/test/unit/bind.html index e2b23169..2467f722 100644 --- a/test/unit/bind.html +++ b/test/unit/bind.html @@ -70,6 +70,17 @@ suite('single-element binding effects', function() { }); }); + test('computed values to same method updates', function(done) { + el.value = 44; + el.valuetwo = 144; + setTimeout(function() { + assert.equal(el.computedvalue, 45, 'Computed value not correct'); + assert.equal(el.computedvaluetwo, 145, 'Computed value not correct'); + assert.equal(el.$.boundChild.computedvalue, 45, 'Computed value not propagated to bound child'); + done(); + }); + }); + test('notification sent', function() { var notified = 0; el.addEventListener('notifyingvalue-changed', function(e) {