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

Side by Side 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, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1
2 var loadedImports = [];
3
4 function importLoaded(loadedDocument) {
5 var name = loadedDocument.URL.substr(loadedDocument.URL.lastIndexOf("/") + 1 );
6 loadedImports.push(name);
7 if (window.notifyImportLoaded)
8 window.notifyImportLoaded(name);
9 }
10
11 function isImportLoaded(url) {
12 return 0 <= loadedImports.indexOf(url);
13 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698