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 b7f0099 commit 646dce6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/unit/dom-repeat.html
Original file line number Diff line number Diff line change
Expand Up @@ -3896,7 +3896,7 @@ <h4>x-repeat-chunked</h4>
suite('hybrid dom-repeat', function() {

test('parent is parent of <dom-repeat>', function() {
var stamped = Array.from(document.querySelectorAll('[hybrid-stamped]'));
var stamped = [].slice.call(document.querySelectorAll('[hybrid-stamped]'));
assert.equal(stamped.length, 3);
stamped.forEach(function(el, i) {
assert.equal(el.parentNode, document.body);
Expand All @@ -3910,12 +3910,12 @@ <h4>x-repeat-chunked</h4>
Polymer.dom(document.body).removeChild(wrapper);
CustomElements.takeRecords();
domRepeat.render();
var stamped = Array.from(document.querySelectorAll('[hybrid-stamped]'));
var stamped = [].slice.call(document.querySelectorAll('[hybrid-stamped]'));
assert.equal(stamped.length, 0);
Polymer.dom(document.body).appendChild(wrapper);
CustomElements.takeRecords();
domRepeat.render();
stamped = Array.from(document.querySelectorAll('[hybrid-stamped]'));
stamped = [].slice.call(document.querySelectorAll('[hybrid-stamped]'));
assert.equal(stamped.length, 3);
stamped.forEach(function(el, i) {
assert.equal(el.parentNode, document.body);
Expand All @@ -3926,7 +3926,7 @@ <h4>x-repeat-chunked</h4>
test('insertion works correctly', function() {
hybridDomRepeat.splice('items', 1, 0, {prop: 'new'});
hybridDomRepeat.render();
var stamped = Array.from(document.querySelectorAll('[hybrid-stamped]'));
var stamped = [].slice.call(document.querySelectorAll('[hybrid-stamped]'));
assert.equal(stamped.length, 4);
stamped.forEach(function(el, i) {
assert.equal(el.parentNode, document.body);
Expand All @@ -3937,7 +3937,7 @@ <h4>x-repeat-chunked</h4>
test('children removed correctly', function() {
hybridDomRepeat.items = null;
hybridDomRepeat.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 646dce6

Please sign in to comment.