fix test.

This commit is contained in:
Steven Orvell
2018-01-29 15:38:31 -08:00
parent b76d81eec3
commit 1c74ecde81
+2 -1
View File
@@ -550,7 +550,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
suite('slot handling', function() {
test('slots removed on if=false', function() {
test('slots added/removed on if=true/false', function() {
let x = document.createElement('x-slot');
let one = document.createElement('div');
one.slot = 'one';
@@ -586,6 +586,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
innerIf.render();
x.$.domIf.if = true;
x.$.domIf.render();
stamped = x.shadowRoot.childNodes;
assert.equal(stamped[4].assignedNodes()[0], one);
assert.equal(stamped[7].assignedNodes()[0], two);
assert.equal(stamped[9].assignedNodes()[0], three);