Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
fix tests on IE
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Sep 13, 2013
1 parent 3071c11 commit 182e020
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/js/customElements.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,13 @@

var docB = document.implementation.createHTMLDocument('');
docB.body.innerHTML = '<' + tagName + '></' + tagName + '>';
CustomElements.upgradeAll(docB);
CustomElements.parser.parse(docB);
CustomElements.takeRecords();
assert.deepEqual(invocations, ['created'], 'created but not entered view');

var element = docB.body.childNodes[0];
assert.instanceOf(element, CustomElement, 'element is correct type');
// note, cannot use instanceof due to IE
assert.equal(element.__proto__, CustomElement.prototype, 'element is correct type');

work.appendChild(element)
CustomElements.takeRecords();
Expand Down

0 comments on commit 182e020

Please sign in to comment.