From 1c74ecde814f24b2be84bca64414d4ecbb532f98 Mon Sep 17 00:00:00 2001 From: Steven Orvell Date: Mon, 29 Jan 2018 15:38:31 -0800 Subject: [PATCH] fix test. --- test/unit/dom-if.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/dom-if.html b/test/unit/dom-if.html index ffba5aa018..b71410575c 100644 --- a/test/unit/dom-if.html +++ b/test/unit/dom-if.html @@ -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'; @@ -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);