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

Side by Side Diff: LayoutTests/fast/html/imports/import-onload.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../js/resources/js-test-pre.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <script> 5 <script>
6 window.jsTestIsAsync = true; 6 window.jsTestIsAsync = true;
7 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
8 8
9 var givenLoadEventTargets = []; 9 var givenLoadEventTargets = [];
10 function handleLoad(event) 10 function handleLoad(event)
11 { 11 {
12 givenLoadEventTargets.push(event.target.id); 12 givenLoadEventTargets.push(event.target.id);
13 if (givenLoadEventTargets.length == 4) { 13 if (givenLoadEventTargets.length == 4) {
14 shouldBe("['bye', 'hello1', 'hello2', 'hello3']", "givenLoadEventTargets .sort()"); 14 shouldBe("['bye', 'hello1', 'hello2', 'hello3']", "givenLoadEventTargets .sort()");
15 finishJSTest(); 15 finishJSTest();
16 } 16 }
17 } 17 }
18 </script> 18 </script>
19 <link id="hello1" rel="import" href="resources/hello.html" onload="handleLoad(ev ent)"> 19 <link id="hello1" rel="import" href="resources/hello.html" onload="handleLoad(ev ent)">
20 <link id="hello2" rel="import" href="resources/hello.html" onload="handleLoad(ev ent)"> 20 <link id="hello2" rel="import" href="resources/hello.html" onload="handleLoad(ev ent)">
21 </head> 21 </head>
22 <body> 22 <body>
23 <script> 23 <script>
24 var linkToInsert = document.createElement("link"); 24 var linkToInsert = document.createElement("link");
25 linkToInsert.id = "bye"; 25 linkToInsert.id = "bye";
26 linkToInsert.setAttribute("rel", "import"); 26 linkToInsert.setAttribute("rel", "import");
27 linkToInsert.setAttribute("href", "resources/bye.html"); 27 linkToInsert.setAttribute("href", "resources/bye.html");
28 linkToInsert.onload = handleLoad; 28 linkToInsert.onload = handleLoad;
29 document.head.appendChild(linkToInsert); 29 document.head.appendChild(linkToInsert);
30 </script> 30 </script>
31 <link id="hello3" rel="import" href="resources/hello.html" onload="handleLoad(ev ent)"> 31 <link id="hello3" rel="import" href="resources/hello.html" onload="handleLoad(ev ent)">
32 </body> 32 </body>
33 </html> 33 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/html/imports/import-onerror.html ('k') | LayoutTests/fast/html/imports/import-remove.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698