Skip to content

Commit

Permalink
Test Polymer.Settings inside test.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Jan 21, 2017
1 parent dcde6d4 commit 4b286f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unit/bind.html
Expand Up @@ -505,16 +505,16 @@
assert.equal(el.boundreadonlyvalue, 46, 'property bound to read-only property should change from change to bound value');
});

if (!Polymer.Settings.suppressBindingNotifications) {
test('listener for value-changed fires when value changed from host', function() {
test('listener for value-changed fires when value changed from host', function() {
if (!Polymer.Settings.suppressBindingNotifications) {
var listener = sinon.spy();
el.$.basic1.addEventListener('notifyingvalue-changed', listener);
el.boundnotifyingvalue = 678;
assert.equal(el.$.basic1.notifyingvalue, 678);
assert.isTrue(listener.calledOnce);
assert.equal(listener.getCalls()[0].args[0].detail.value, 678);
});
}
}
});

test('negated binding update negates value for parent', function() {
assert.equal(el.negatedValue, false);
Expand Down

0 comments on commit 4b286f1

Please sign in to comment.