Skip to content

Commit

Permalink
Fix test in IE/Edge
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Feb 5, 2019
1 parent c93fc48 commit 391715f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/unit/shady-dynamic.html
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,13 @@
}
const el = document.createElement('x-test');
document.body.appendChild(el);
assert.equal(ShadyDOM.nativeTree.innerHTML(el), '<x-rereproject class="style-scope x-test"><x-reproject class="style-scope x-rereproject"><x-project class="style-scope x-reproject">x-project: [x-reproject: [x-rereproject: [<span id="projected" class="style-scope x-test">projected</span>]]]</x-project></x-reproject></x-rereproject>');
let child = ShadyDOM.nativeTree.firstElementChild(el);
assert.equal(child.localName, 'x-rereproject');
child = ShadyDOM.nativeTree.firstElementChild(child);
assert.equal(child.localName, 'x-reproject');
child = ShadyDOM.nativeTree.firstElementChild(child);
assert.equal(child.localName, 'x-project');
assert.equal(ShadyDOM.nativeTree.textContent(child), 'x-project: [x-reproject: [x-rereproject: [projected]]]');
document.body.removeChild(el);
});

Expand Down

0 comments on commit 391715f

Please sign in to comment.