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

Side by Side Diff: LayoutTests/http/tests/htmlimports/import-dynamic-async-notblock-sync.html

Issue 265453003: HTML Imports: Let dynamically-added imports sync. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Landing. 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 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/testharness.js"></script>
5 <script src="../../../resources/testharnessreport.js"></script>
6 </head>
7 <body>
8 <script>
9 (function() {
10 var link = document.createElement('link');
11 link.id = 'dynamicLink'
12 link.rel = 'import';
13 link.setAttribute('async', '');
14 link.href = 'resources/import-slow-child.cgi';
15 document.head.appendChild(link);
16 })();
17 </script>
18 <link id="followingLink" rel="import" href="resources/hello.html">
19 <script>
20 test(function() {
21 assert_true(null == dynamicLink.import, 'Dynamic import');
22 assert_true(null != followingLink.import, 'Following import');
23 }, 'Dynamically added async import doesn\'t block following import.');
24 </script>
25 </body>
26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698