OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script> | 4 <script> |
5 window.isOnErrorTest = true; | 5 window.isOnErrorTest = true; |
6 </script> | 6 </script> |
7 <script src="../js/resources/js-test-pre.js"></script> | 7 <script src="../js/resources/js-test-pre.js"></script> |
8 <script src="resources/onerror-test.js"></script> | 8 <script src="resources/onerror-test.js"></script> |
9 <script> | 9 <script> |
10 var onerrorMessage, onerrorURL, onerrorLine, onerrorColumn; | 10 var onerrorMessage, onerrorURL, onerrorLine, onerrorColumn; |
(...skipping 10 matching lines...) Expand all Loading... |
21 shouldBe('onerrorColumn', 'window.event.colno'); | 21 shouldBe('onerrorColumn', 'window.event.colno'); |
22 return true; | 22 return true; |
23 }; | 23 }; |
24 </script> | 24 </script> |
25 </head> | 25 </head> |
26 <body> | 26 <body> |
27 <p>This tests that when 'window.onerror' handler is called, 'window.event' i
s the corresponding ErrorEvent object.</p> | 27 <p>This tests that when 'window.onerror' handler is called, 'window.event' i
s the corresponding ErrorEvent object.</p> |
28 <script> | 28 <script> |
29 throwException(); | 29 throwException(); |
30 </script> | 30 </script> |
31 <script src="../js/resources/js-test-post.js"></script> | |
32 </body> | 31 </body> |
33 </html> | 32 </html> |
OLD | NEW |