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

Side by Side Diff: LayoutTests/http/tests/htmlimports/import-async-previous.html

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 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/testharness.js"></script>
5 <script src="../../../resources/testharnessreport.js"></script>
6 <script src="resources/async-block-helper.js"></script>
7 <script>
8 var test = async_test('With the async attribute, link element don\'t block the s cript execution of following imports.');
9
10 function readySync() {
11 test.step(function() {
12 assert_false(isImportLoaded('has-slow-script.html'), 'A script in sync i mport has not to be excuted yet.');
13 assert_true(isImportLoaded('not-slow.html'), 'A script in following impo rt is executed wihtout waiting slow script.');
14 });
15 }
16
17 function readyAsync() {
18 test.step(function() {
19 assert_true(isImportLoaded('has-slow-script.html'), 'A script in sync im port has not to be excuted yet.');
20 assert_true(isImportLoaded('not-slow.html'), 'A script in following impo rt is executed wihtout waiting slow script.');
21 test.done();
22 });
23 }
24 </script>
25 <link async rel="import" href="resources/has-slow-script.html" onload="readyAsyn c()">
26 <link rel="import" href="resources/not-slow.html" onload="readySync()">
27 </head>
28 <body></body>
29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698