Skip to content

Commit

Permalink
Remove use of ES6 API.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Apr 17, 2017
1 parent 646dce6 commit 9601065
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unit/dom-if.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
suite('hybrid dom-if', function() {

test('parent is parent of <dom-if>', function() {
var stamped = Array.from(document.querySelectorAll('[hybrid-stamped]'));
var stamped = [].slice.call(document.querySelectorAll('[hybrid-stamped]'));
assert.equal(stamped.length, 1);
assert.equal(stamped[0].parentNode, document.body);
});
Expand All @@ -95,12 +95,12 @@
Polymer.dom(document.body).removeChild(wrapper);
CustomElements.takeRecords();
domIf.render();
var stamped = Array.from(document.querySelectorAll('[hybrid-stamped]'));
var stamped = [].slice.call(document.querySelectorAll('[hybrid-stamped]'));
assert.equal(stamped.length, 0);
Polymer.dom(removalContainer).appendChild(wrapper);
CustomElements.takeRecords();
setTimeout(function() {
stamped = Array.from(document.querySelectorAll('[hybrid-stamped]'));
stamped = [].slice.call(document.querySelectorAll('[hybrid-stamped]'));
assert.equal(stamped.length, 1);
assert.equal(stamped[0].parentNode, removalContainer);
done();
Expand All @@ -110,7 +110,7 @@
test('children removed correctly', function() {
hybridDomIf.if = false;
hybridDomIf.render();
var stamped = Array.from(document.querySelectorAll('[hybrid-stamped]'));
var stamped = [].slice.call(document.querySelectorAll('[hybrid-stamped]'));
assert.equal(stamped.length, 0);
});

Expand Down

0 comments on commit 9601065

Please sign in to comment.