From a04e8efddce716f109bef6a053c5241b244a4b5f Mon Sep 17 00:00:00 2001 From: Steve Orvell Date: Mon, 27 Jan 2014 17:57:39 -0800 Subject: [PATCH] tests work under native. --- src/HTMLImports.js | 5 ++--- test/js/tests.js | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/HTMLImports.js b/src/HTMLImports.js index e281a95..5daedbc 100644 --- a/src/HTMLImports.js +++ b/src/HTMLImports.js @@ -147,11 +147,9 @@ if (!useNative) { } return doc; } - - // exports - scope.importer = importer; } else { // do nothing if using native imports + var importer = {}; } var wrappedDoc = window.ShadowDOMPolyfill ? wrap(document) : document; @@ -223,6 +221,7 @@ function isImportLoaded(link) { // exports scope.hasNative = hasNative; scope.useNative = useNative; +scope.importer = importer; scope.whenImportsReady = whenImportsReady; scope.IMPORT_LINK_TYPE = IMPORT_LINK_TYPE; scope.isImportLoaded = isImportLoaded; diff --git a/test/js/tests.js b/test/js/tests.js index 542d0d0..fed0abd 100644 --- a/test/js/tests.js +++ b/test/js/tests.js @@ -12,4 +12,5 @@ htmlSuite('HTMLImports', function() { htmlTest('html/load.html'); htmlTest('html/currentScript.html'); htmlTest('html/dedupe.html'); + htmlTest('html/dynamic.html'); });