| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../http/tests/inspector/console-test.js"></script> | 4 <script src="../../http/tests/inspector/console-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 function overflow() | 6 function overflow() |
| 7 { | 7 { |
| 8 overflow(); | 8 overflow(); |
| 9 } | 9 } |
| 10 | 10 |
| 11 function doOverflow() | 11 function doOverflow() |
| 12 { | 12 { |
| 13 setTimeout(overflow, 0); | 13 setTimeout(overflow, 0); |
| 14 } | 14 } |
| 15 | 15 |
| 16 function test() | 16 function test() |
| 17 { | 17 { |
| 18 InspectorTest.evaluateInPage("doOverflow()", step2.bind(this)); | 18 InspectorTest.evaluateInPage("doOverflow()", step2.bind(this)); |
| 19 | 19 |
| 20 function step2() | 20 function step2() |
| 21 { | 21 { |
| 22 if (WebInspector.ConsoleView.instance()._visibleViewMessages.length < 1) | 22 if (Console.ConsoleView.instance()._visibleViewMessages.length < 1) |
| 23 InspectorTest.addConsoleSniffer(step2); | 23 InspectorTest.addConsoleSniffer(step2); |
| 24 else | 24 else |
| 25 step3(); | 25 step3(); |
| 26 } | 26 } |
| 27 | 27 |
| 28 function step3() | 28 function step3() |
| 29 { | 29 { |
| 30 InspectorTest.expandConsoleMessages(onExpanded); | 30 InspectorTest.expandConsoleMessages(onExpanded); |
| 31 } | 31 } |
| 32 | 32 |
| 33 function onExpanded() | 33 function onExpanded() |
| 34 { | 34 { |
| 35 InspectorTest.dumpConsoleMessages(); | 35 InspectorTest.dumpConsoleMessages(); |
| 36 InspectorTest.completeTest(); | 36 InspectorTest.completeTest(); |
| 37 } | 37 } |
| 38 } | 38 } |
| 39 </script> | 39 </script> |
| 40 </head> | 40 </head> |
| 41 <body onload="runTest()"> | 41 <body onload="runTest()"> |
| 42 <p>Tests that when stack overflow exception happens when inspector is open the s
tack trace is correctly shown in console.</p> | 42 <p>Tests that when stack overflow exception happens when inspector is open the s
tack trace is correctly shown in console.</p> |
| 43 </body> | 43 </body> |
| 44 </html> | 44 </html> |
| OLD | NEW |