From d028277f4c8b1bb7a1cb0429aae557cef1ccef88 Mon Sep 17 00:00:00 2001 From: Ross Allen Date: Mon, 2 Mar 2015 15:43:15 -0800 Subject: [PATCH] Add test for comp values to same method The test fails without the other change in this branch. --- test/unit/bind-elements.html | 8 ++++++-- test/unit/bind.html | 11 +++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) 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) {