Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit a396e26

Browse files
committed
fix test when running under O.o
1 parent ed895df commit a396e26

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/html/template-repeat-wrappers.html

+4-6
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,11 @@
3131
// TODO(sjmiles): forcing SD to render at this point is not necessary,
3232
// except to understand why it causes a failure at the assertion
3333
host.offsetHeight;
34-
35-
// make template repeat synchronously
36-
Platform.performMicrotaskCheckpoint();
37-
3834
var list = host.shadowRoot.querySelector('#list');
39-
chai.assert.equal(list.children.length, 3, 'list.children.length (should be 3 but returns 1)');
4035

41-
done();
36+
new MutationObserver(function() {
37+
chai.assert.equal(list.children.length, 3, 'list.children.length (should be 3 but returns 1)');
38+
done();
39+
}).observe(list, {childList: true});
4240
});
4341
</script>

0 commit comments

Comments
 (0)