Skip to content

Commit 4b286f1

Browse files
committed
Test Polymer.Settings inside test.
1 parent dcde6d4 commit 4b286f1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎test/unit/bind.html‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -505,16 +505,16 @@
505505
assert.equal(el.boundreadonlyvalue, 46, 'property bound to read-only property should change from change to bound value');
506506
});
507507

508-
if (!Polymer.Settings.suppressBindingNotifications) {
509-
test('listener for value-changed fires when value changed from host', function() {
508+
test('listener for value-changed fires when value changed from host', function() {
509+
if (!Polymer.Settings.suppressBindingNotifications) {
510510
var listener = sinon.spy();
511511
el.$.basic1.addEventListener('notifyingvalue-changed', listener);
512512
el.boundnotifyingvalue = 678;
513513
assert.equal(el.$.basic1.notifyingvalue, 678);
514514
assert.isTrue(listener.calledOnce);
515515
assert.equal(listener.getCalls()[0].args[0].detail.value, 678);
516-
});
517-
}
516+
}
517+
});
518518

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

0 commit comments

Comments
 (0)