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