Index: LayoutTests/http/tests/htmlimports/resources/async-block-helper.js |
diff --git a/LayoutTests/http/tests/htmlimports/resources/async-block-helper.js b/LayoutTests/http/tests/htmlimports/resources/async-block-helper.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c1faaebadb486b22fdff31171cb9c63099d4e419 |
--- /dev/null |
+++ b/LayoutTests/http/tests/htmlimports/resources/async-block-helper.js |
@@ -0,0 +1,13 @@ |
+ |
+var loadedImports = []; |
+ |
+function importLoaded(loadedDocument) { |
+ var name = loadedDocument.URL.substr(loadedDocument.URL.lastIndexOf("/") + 1); |
+ loadedImports.push(name); |
+ if (window.notifyImportLoaded) |
+ window.notifyImportLoaded(name); |
+} |
+ |
+function isImportLoaded(url) { |
+ return 0 <= loadedImports.indexOf(url); |
+} |