From 960106572ebb82021ef88865294df7f4a134d49d Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Mon, 17 Apr 2017 12:47:09 -0700 Subject: [PATCH] Remove use of ES6 API. --- test/unit/dom-if.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unit/dom-if.html b/test/unit/dom-if.html index fc98e3a221..33e8d80e21 100644 --- a/test/unit/dom-if.html +++ b/test/unit/dom-if.html @@ -84,7 +84,7 @@ suite('hybrid dom-if', 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, 1); assert.equal(stamped[0].parentNode, document.body); }); @@ -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(); @@ -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); });