diff --git a/test/unit/dom-repeat.html b/test/unit/dom-repeat.html index fb1b841b31..2abba7dc40 100644 --- a/test/unit/dom-repeat.html +++ b/test/unit/dom-repeat.html @@ -3905,20 +3905,21 @@

x-repeat-chunked

}); test('remove & re-add works correctly', function() { + var domRepeat = hybridDomRepeat; var wrapper = hybridDomRepeatWrapper; Polymer.dom(document.body).removeChild(wrapper); CustomElements.takeRecords(); - hybridDomRepeat.render(); + domRepeat.render(); var stamped = Array.from(document.querySelectorAll('[hybrid-stamped]')); assert.equal(stamped.length, 0); Polymer.dom(document.body).appendChild(wrapper); CustomElements.takeRecords(); - hybridDomRepeat.render(); + domRepeat.render(); stamped = Array.from(document.querySelectorAll('[hybrid-stamped]')); assert.equal(stamped.length, 3); stamped.forEach(function(el, i) { assert.equal(el.parentNode, document.body); - assert.equal(el.textContent, hybridDomRepeat.items[i].prop); + assert.equal(el.textContent, domRepeat.items[i].prop); }); });