Skip to content

Commit 646dce6

Browse files
committed
Remove use of ES6 API.
1 parent b7f0099 commit 646dce6

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎test/unit/dom-repeat.html‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3896,7 +3896,7 @@ <h4>x-repeat-chunked</h4>
38963896
suite('hybrid dom-repeat', function() {
38973897

38983898
test('parent is parent of <dom-repeat>', function() {
3899-
var stamped = Array.from(document.querySelectorAll('[hybrid-stamped]'));
3899+
var stamped = [].slice.call(document.querySelectorAll('[hybrid-stamped]'));
39003900
assert.equal(stamped.length, 3);
39013901
stamped.forEach(function(el, i) {
39023902
assert.equal(el.parentNode, document.body);
@@ -3910,12 +3910,12 @@ <h4>x-repeat-chunked</h4>
39103910
Polymer.dom(document.body).removeChild(wrapper);
39113911
CustomElements.takeRecords();
39123912
domRepeat.render();
3913-
var stamped = Array.from(document.querySelectorAll('[hybrid-stamped]'));
3913+
var stamped = [].slice.call(document.querySelectorAll('[hybrid-stamped]'));
39143914
assert.equal(stamped.length, 0);
39153915
Polymer.dom(document.body).appendChild(wrapper);
39163916
CustomElements.takeRecords();
39173917
domRepeat.render();
3918-
stamped = Array.from(document.querySelectorAll('[hybrid-stamped]'));
3918+
stamped = [].slice.call(document.querySelectorAll('[hybrid-stamped]'));
39193919
assert.equal(stamped.length, 3);
39203920
stamped.forEach(function(el, i) {
39213921
assert.equal(el.parentNode, document.body);
@@ -3926,7 +3926,7 @@ <h4>x-repeat-chunked</h4>
39263926
test('insertion works correctly', function() {
39273927
hybridDomRepeat.splice('items', 1, 0, {prop: 'new'});
39283928
hybridDomRepeat.render();
3929-
var stamped = Array.from(document.querySelectorAll('[hybrid-stamped]'));
3929+
var stamped = [].slice.call(document.querySelectorAll('[hybrid-stamped]'));
39303930
assert.equal(stamped.length, 4);
39313931
stamped.forEach(function(el, i) {
39323932
assert.equal(el.parentNode, document.body);
@@ -3937,7 +3937,7 @@ <h4>x-repeat-chunked</h4>
39373937
test('children removed correctly', function() {
39383938
hybridDomRepeat.items = null;
39393939
hybridDomRepeat.render();
3940-
var stamped = Array.from(document.querySelectorAll('[hybrid-stamped]'));
3940+
var stamped = [].slice.call(document.querySelectorAll('[hybrid-stamped]'));
39413941
assert.equal(stamped.length, 0);
39423942
});
39433943

0 commit comments

Comments
 (0)