diff --git a/test/unit/dom-repeat.html b/test/unit/dom-repeat.html index 2abba7dc40..b8e143a88c 100644 --- a/test/unit/dom-repeat.html +++ b/test/unit/dom-repeat.html @@ -3896,7 +3896,7 @@

x-repeat-chunked

suite('hybrid dom-repeat', function() { test('parent is parent of ', 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); @@ -3910,12 +3910,12 @@

x-repeat-chunked

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); @@ -3926,7 +3926,7 @@

x-repeat-chunked

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); @@ -3937,7 +3937,7 @@

x-repeat-chunked

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); });