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 testRunner.waitUntilDone(); | 7 testRunner.waitUntilDone(); |
8 | 8 |
9 var givenLoadEventTargets = []; | 9 var givenLoadEventTargets = []; |
10 function handleError(event) | 10 function handleError(event) |
11 { | 11 { |
12 givenLoadEventTargets.push(event.target.id); | 12 givenLoadEventTargets.push(event.target.id); |
13 if (givenLoadEventTargets.length == 3) { | 13 if (givenLoadEventTargets.length == 3) { |
14 shouldBe("['invalid', 'notFound', 'notFoundShared']", "givenLoadEventTar
gets.sort()"); | 14 shouldBe("['invalid', 'notFound', 'notFoundShared']", "givenLoadEventTar
gets.sort()"); |
15 finishJSTest(); | 15 finishJSTest(); |
16 } | 16 } |
17 } | 17 } |
18 </script> | 18 </script> |
19 <link id="notFound" rel="import" href="notfound.html" onerror="handleError(event
)"> | 19 <link id="notFound" rel="import" href="notfound.html" onerror="handleError(event
)"> |
20 <link id="notFoundShared" rel="import" href="notfound.html" onerror="handleError
(event)"> | 20 <link id="notFoundShared" rel="import" href="notfound.html" onerror="handleError
(event)"> |
21 <link id="invalid" rel="import" href="" onerror="handleError(event)"> | 21 <link id="invalid" rel="import" href="" onerror="handleError(event)"> |
22 </head> | 22 </head> |
23 <body></body> | 23 <body></body> |
24 </html> | 24 </html> |
OLD | NEW |