OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../../resources/js-test.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
5 <script> | 5 <script> |
6 var list = []; | 6 var list = []; |
7 function handle(event) | 7 function handle(event) |
8 { | 8 { |
9 list.push(event.type + '@' + event.target.id); | 9 list.push(event.type + '@' + event.target.id); |
10 if (list.length < 3) | 10 if (list.length < 3) |
11 return; | 11 return; |
12 expected = ['load@shouldLoad', 'error@shouldError', 'click@toClick']; | 12 expected = ['click@toClick', 'load@shouldLoad', 'error@shouldError']; |
13 shouldBe('window.list', 'expected'); | 13 shouldBe('window.list', 'expected'); |
14 finishJSTest(); | 14 finishJSTest(); |
15 } | 15 } |
16 </script> | 16 </script> |
17 <link id="harness" rel="import" href="resources/events-inline.html"> | 17 <link id="harness" rel="import" href="resources/events-inline.html"> |
18 </head> | 18 </head> |
19 <body> | 19 <body> |
20 <script> | 20 <script> |
21 window.jsTestIsAsync = true; | 21 window.jsTestIsAsync = true; |
22 description('Test that inline event handler is fired on an imported document.'); | 22 description('Test that inline event handler is fired on an imported document.'); |
23 </script> | 23 </script> |
24 </body> | 24 </body> |
25 </html> | 25 </html> |
OLD | NEW |