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/debugger-test.js"></script> | 4 <script src="../../http/tests/inspector/debugger-test.js"></script> |
| 5 <script src="../../http/tests/inspector/console-test.js"></script> |
5 <script> | 6 <script> |
6 | |
7 function testFunction() | 7 function testFunction() |
8 { | 8 { |
| 9 var i = 0; |
9 debugger; | 10 debugger; |
10 } | 11 } |
11 | 12 |
12 var test = function() | 13 function test() |
13 { | 14 { |
14 InspectorTest.startDebuggerTest(step1); | 15 InspectorTest.startDebuggerTest(step1); |
15 | 16 |
16 function step1() | 17 function step1() |
17 { | 18 { |
18 InspectorTest.runTestFunctionAndWaitUntilPaused(step2); | 19 InspectorTest.runTestFunctionAndWaitUntilPaused(step2); |
19 } | 20 } |
20 | 21 |
21 function step2() | 22 function step2() |
22 { | 23 { |
23 InspectorTest.reloadPage(step3); | 24 InspectorTest.evaluateInConsole("console.error(42)", step3); |
24 } | 25 } |
25 | 26 |
26 function step3() | 27 function step3() |
27 { | 28 { |
| 29 InspectorTest.resumeExecution(step4); |
| 30 } |
| 31 |
| 32 function step4() |
| 33 { |
| 34 InspectorTest.expandConsoleMessages(); |
| 35 InspectorTest.dumpConsoleMessages(); |
28 InspectorTest.completeDebuggerTest(); | 36 InspectorTest.completeDebuggerTest(); |
29 } | 37 } |
30 } | 38 } |
31 | |
32 </script> | 39 </script> |
33 </head> | 40 </head> |
34 | |
35 <body onload="runTest()"> | 41 <body onload="runTest()"> |
36 <p> | 42 <p>Tests that console.error does not throw exception when executed in console on
call frame.</p> |
37 Tests "reload" from within inspector window while on pause. | |
38 </p> | |
39 | |
40 </body> | 43 </body> |
41 </html> | 44 </html> |
OLD | NEW |