Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Unified Diff: LayoutTests/http/tests/htmlimports/resources/async-block-helper.js

Issue 251813006: HTML Imports: Let @async import not block its sibling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
+}

Powered by Google App Engine
This is Rietveld 408576698