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

Commit

Permalink
tests work under native.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Jan 28, 2014
1 parent 5297e25 commit a04e8ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/HTMLImports.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions test/js/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ htmlSuite('HTMLImports', function() {
htmlTest('html/load.html');
htmlTest('html/currentScript.html');
htmlTest('html/dedupe.html');
htmlTest('html/dynamic.html');
});

0 comments on commit a04e8ef

Please sign in to comment.