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="../../resources/js-test.js"></script> |
8 <script src="resources/onerror-test.js"></script> | 8 <script src="resources/onerror-test.js"></script> |
9 </head> | 9 </head> |
10 <body> | 10 <body> |
11 <script> | 11 <script> |
12 description("This test should trigger 'window.onerror' only once, withou
t diving into horrible recursion."); | 12 description("This test should trigger 'window.onerror' only once, withou
t diving into horrible recursion."); |
13 | 13 |
14 function callback(errorNumber) { | 14 function callback(errorNumber) { |
15 if (errorNumber > 1) | 15 if (errorNumber > 1) |
16 testFailed("window.onerror should only be called once in this te
st."); | 16 testFailed("window.onerror should only be called once in this te
st."); |
17 throwException("Nested exception."); | 17 throwException("Nested exception."); |
18 } | 18 } |
19 | 19 |
20 dumpOnErrorArgumentValuesAndReturn(true, callback); | 20 dumpOnErrorArgumentValuesAndReturn(true, callback); |
21 | 21 |
22 throwException("Original exception."); | 22 throwException("Original exception."); |
23 </script> | 23 </script> |
24 </body> | 24 </body> |
25 </html> | 25 </html> |
OLD | NEW |