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 throwAnException() | 7 function throwAnException() |
8 { | 8 { |
9 return unknown_var; | 9 return unknown_var; |
10 } | 10 } |
(...skipping 29 matching lines...) Expand all Loading... |
40 InspectorTest.addResult("Script source was shown."); | 40 InspectorTest.addResult("Script source was shown."); |
41 InspectorTest.waitUntilPaused(step3); | 41 InspectorTest.waitUntilPaused(step3); |
42 InspectorTest.evaluateInPage("setTimeout(handleClick, 0)"); | 42 InspectorTest.evaluateInPage("setTimeout(handleClick, 0)"); |
43 } | 43 } |
44 | 44 |
45 // Now set antibreakpoint and check that we still pause on other spots. | 45 // Now set antibreakpoint and check that we still pause on other spots. |
46 function step3(callFrames) | 46 function step3(callFrames) |
47 { | 47 { |
48 InspectorTest.captureStackTrace(callFrames); | 48 InspectorTest.captureStackTrace(callFrames); |
49 | 49 |
50 var exceptionLocation = callFrames[0].location; | 50 var exceptionLocation = callFrames[0].location(); |
51 DebuggerAgent.setBreakpointByUrl(exceptionLocation.lineNumber, undefined
, scriptFileName, | 51 DebuggerAgent.setBreakpointByUrl(exceptionLocation.lineNumber, undefined
, scriptFileName, |
52 exceptionLocation.columnNumber, undefin
ed, true, undefined); | 52 exceptionLocation.columnNumber, undefin
ed, true, undefined); |
53 | 53 |
54 InspectorTest.resumeExecution(step4); | 54 InspectorTest.resumeExecution(step4); |
55 } | 55 } |
56 | 56 |
57 function step4() | 57 function step4() |
58 { | 58 { |
59 InspectorTest.addResult("Antibreakpoint must be set by now."); | 59 InspectorTest.addResult("Antibreakpoint must be set by now."); |
60 InspectorTest.evaluateInPage("setTimeout(handleClick2, 0)"); | 60 InspectorTest.evaluateInPage("setTimeout(handleClick2, 0)"); |
(...skipping 16 matching lines...) Expand all Loading... |
77 </script> | 77 </script> |
78 </head> | 78 </head> |
79 | 79 |
80 <body onload="runTest()"> | 80 <body onload="runTest()"> |
81 <p> | 81 <p> |
82 Tests that anti-breakpoint works. | 82 Tests that anti-breakpoint works. |
83 </p> | 83 </p> |
84 | 84 |
85 </body> | 85 </body> |
86 </html> | 86 </html> |
OLD | NEW |