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> | 5 <script> |
6 | 6 |
7 function testFunction() { | 7 function testFunction() { |
8 setTimeout("void 0", 0); // Create a timer that will be suspended on a break
point. | 8 setTimeout("void 0", 0); // Create a timer that will be suspended on a break
point. |
9 debugger; | 9 debugger; |
10 } | 10 } |
11 | 11 |
12 function test() | 12 function test() |
13 { | 13 { |
14 WebInspector.showPanel("scripts"); | 14 WebInspector.showPanel("sources"); |
15 InspectorTest.startDebuggerTest(startDebuggerTestCallback); | 15 InspectorTest.startDebuggerTest(startDebuggerTestCallback); |
16 | 16 |
17 function startDebuggerTestCallback() | 17 function startDebuggerTestCallback() |
18 { | 18 { |
19 InspectorTest.evaluateInConsole("setTimeout(testFunction, 0)", function(
result) { | 19 InspectorTest.evaluateInConsole("setTimeout(testFunction, 0)", function(
result) { |
20 InspectorTest.addResult("Set timer for test function."); | 20 InspectorTest.addResult("Set timer for test function."); |
21 }); | 21 }); |
22 | 22 |
23 InspectorTest.waitUntilPaused(function(callFrames) { | 23 InspectorTest.waitUntilPaused(function(callFrames) { |
24 InspectorTest.evaluateInConsole("alert(1)", function(result) { | 24 InspectorTest.evaluateInConsole("alert(1)", function(result) { |
(...skipping 11 matching lines...) Expand all Loading... |
36 <body onload="runTest()"> | 36 <body onload="runTest()"> |
37 <p> | 37 <p> |
38 Tests that browser won't crash if user evaluates something in the console | 38 Tests that browser won't crash if user evaluates something in the console |
39 that would suspend active dom objects (e.g. if user attempts to show an alert) | 39 that would suspend active dom objects (e.g. if user attempts to show an alert) |
40 when script execution is paused on a breakpoint and all active dom objects | 40 when script execution is paused on a breakpoint and all active dom objects |
41 are already suspended. | 41 are already suspended. |
42 </p> | 42 </p> |
43 | 43 |
44 </body> | 44 </body> |
45 </html> | 45 </html> |
OLD | NEW |