mirror of
https://github.com/Polymer/polymer.git
synced 2026-08-19 01:14:44 -05:00
fix test.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user