Skip to content

Commit

Permalink
fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Jan 29, 2018
1 parent b76d81e commit 1c74ecd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/unit/dom-if.html
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@

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';
Expand Down Expand Up @@ -586,6 +586,7 @@
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);
Expand Down

0 comments on commit 1c74ecd

Please sign in to comment.