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

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

Issue 976263002: HTML Imports: Teach preloader about HTML Imports. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 6 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/htmlimports/import-cors-credentials.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/testharness.js"></script> 4 <script src="../../../resources/testharness.js"></script>
5 <script src="../../../resources/testharnessreport.js"></script> 5 <script src="../../../resources/testharnessreport.js"></script>
6 <link id="target" async rel="import" href="resources/hello.html"> 6 <link id="target" async rel="import" href="../../../resources/redirect.php?delay =100&url=../htmlimports/resources/hello.html">
7 </head> 7 </head>
8 <body> 8 <body>
9 <script> 9 <script>
10 (function() { 10 (function() {
11 var test = async_test('With the async attribute, link element don\'t block the s cript execution.'); 11 var test = async_test('With the async attribute, link element don\'t block the s cript execution.');
12 12
13 test.step(function() { 13 test.step(function() {
14 assert_true(window.target.import === null, "Script goes without waiting the link loaded"); 14 assert_true(window.target.import === null, "Script goes without waiting the link loaded");
15 }); 15 });
16 16
17 window.target.onload = function() { 17 window.target.onload = function() {
18 test.step(function() { 18 test.step(function() {
19 assert_true(window.target.import instanceof HTMLDocument, "Ensureing tha t the import being loaded eventually."); 19 assert_true(window.target.import instanceof HTMLDocument, "Ensureing tha t the import being loaded eventually.");
20 test.done(); 20 test.done();
21 }); 21 });
22 }; 22 };
23 })(); 23 })();
24 </script> 24 </script>
25 </body> 25 </body>
26 </html> 26 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/htmlimports/import-cors-credentials.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698