Skip to content

Commit 5205d6a

Browse files
committed
Fix test regression from PR 3289
1 parent 95a5ade commit 5205d6a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎test/unit/attributes.html‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,11 @@
283283
// applied to property with effect
284284
assert.strictEqual(compose.$.basic.prop, 'compose');
285285
assert.equal(compose.$.basic.propChangedCount, 1);
286-
assert.equal(compose.$.basic.attr1ChangedCount, 1);
286+
// Note: Attribute binding does not participate in efficient configuration
287+
// per #3288. As such, a property bound with an attribute binding will
288+
// see its default value first, then be overwritten when the attribute
289+
// binding runs and re-deserializes to the property, hence 2 observer calls
290+
assert.equal(compose.$.basic.attr1ChangedCount, 2);
287291
assert.equal(compose.prop2, 'hi');
288292
});
289293

0 commit comments

Comments
 (0)