OLD | NEW |
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 window.scheduledImportCount = 0; | 7 window.scheduledImportCount = 0; |
8 | 8 |
9 description("This ensures that load and error events are fired on sub-imports.")
; | 9 description("This ensures that load and error events are fired on sub-imports.")
; |
10 | 10 |
11 function handleEvent(event) | 11 function handleEvent(event) |
12 { | 12 { |
13 theEvent = event; | 13 theEvent = event; |
14 switch (event.target.getAttribute("href")) { | 14 switch (event.target.getAttribute("href")) { |
(...skipping 11 matching lines...) Expand all Loading... |
26 window.scheduledImportCount--; | 26 window.scheduledImportCount--; |
27 if (!window.scheduledImportCount) | 27 if (!window.scheduledImportCount) |
28 finishJSTest(); | 28 finishJSTest(); |
29 } | 29 } |
30 </script> | 30 </script> |
31 <link id="root" rel="import" href="resources/onload-root.html"> | 31 <link id="root" rel="import" href="resources/onload-root.html"> |
32 </head> | 32 </head> |
33 <body> | 33 <body> |
34 </body> | 34 </body> |
35 </html> | 35 </html> |
OLD | NEW |