Remove stub of HTMLImports as this makes any test for whenReady that does window.HTMLImports && HTMLImports.whenReady fail. [Note: this may require an update to WCT.]

This commit is contained in:
Steven Orvell
2017-04-18 16:51:16 -07:00
parent 437da91a8c
commit 834e18dd82

View File

@@ -32,7 +32,6 @@
}
// NOTE: we stub HTMLImports to enable WCT to wait for "WebComponentsReady" event.
window['HTMLImports'] = {};
if (polyfills.length) {
var script = document.querySelector('script[src*="' + name +'"]');
var newScript = document.createElement('script');
@@ -56,7 +55,6 @@
var fire = function() {
requestAnimationFrame(function() {
// Reset the HTMLImports stub.
window['HTMLImports'] = null;
document.dispatchEvent(new CustomEvent('WebComponentsReady', {bubbles: true}));
});
};