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

Side by Side Diff: LayoutTests/http/tests/htmlimports/import-dynamic-block-async.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 var t = async_test('Dynamically added import blocks following import.');
10
11 function followerReady() {
12 t.step(function() {
13 assert_true(null != dynamicLink.import, 'Dynamic import');
14 assert_true(null != followingLink.import, 'Following import');
15 t.done();
16 });
17 }
18
19 (function() {
20 var link = document.createElement('link');
21 link.id = 'dynamicLink'
22 link.rel = 'import';
23 link.href = 'resources/import-slow-child.cgi';
24 document.head.appendChild(link);
25 })();
26 </script>
27 <link async id="followingLink" rel="import" href="resources/hello.html" onload=" followerReady()">
28 </body>
29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698