| 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 var a; | 9 var a; |
| 10 try { | 10 try { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 { | 24 { |
| 25 throwAnException(); | 25 throwAnException(); |
| 26 } | 26 } |
| 27 | 27 |
| 28 var test = function() | 28 var test = function() |
| 29 { | 29 { |
| 30 InspectorTest.startDebuggerTest(step1); | 30 InspectorTest.startDebuggerTest(step1); |
| 31 | 31 |
| 32 function step1() | 32 function step1() |
| 33 { | 33 { |
| 34 InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerMo
del.PauseOnExceptionsState.PauseOnAllExceptions); | 34 InspectorTest.DebuggerAgent.setPauseOnExceptions(SDK.DebuggerModel.Pause
OnExceptionsState.PauseOnAllExceptions); |
| 35 InspectorTest.showScriptSource("debugger-mute-exception.html", step2); | 35 InspectorTest.showScriptSource("debugger-mute-exception.html", step2); |
| 36 } | 36 } |
| 37 | 37 |
| 38 function step2(sourceFrame) | 38 function step2(sourceFrame) |
| 39 { | 39 { |
| 40 InspectorTest.addResult("Script source was shown."); | 40 InspectorTest.addResult("Script source was shown."); |
| 41 InspectorTest.setBreakpoint(sourceFrame, 10, "false", true); | 41 InspectorTest.setBreakpoint(sourceFrame, 10, "false", true); |
| 42 InspectorTest.setBreakpoint(sourceFrame, 14, "false", true); | 42 InspectorTest.setBreakpoint(sourceFrame, 14, "false", true); |
| 43 InspectorTest.evaluateInPage("setTimeout(handleClick, 0)"); | 43 InspectorTest.evaluateInPage("setTimeout(handleClick, 0)"); |
| 44 InspectorTest.waitUntilPausedAndDumpStackAndResume(step3); | 44 InspectorTest.waitUntilPausedAndDumpStackAndResume(step3); |
| 45 } | 45 } |
| 46 | 46 |
| 47 function step3() | 47 function step3() |
| 48 { | 48 { |
| 49 InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerMo
del.PauseOnExceptionsState.DontPauseOnExceptions); | 49 InspectorTest.DebuggerAgent.setPauseOnExceptions(SDK.DebuggerModel.Pause
OnExceptionsState.DontPauseOnExceptions); |
| 50 InspectorTest.completeDebuggerTest(); | 50 InspectorTest.completeDebuggerTest(); |
| 51 } | 51 } |
| 52 } | 52 } |
| 53 | 53 |
| 54 </script> | 54 </script> |
| 55 </head> | 55 </head> |
| 56 | 56 |
| 57 <body onload="runTest()"> | 57 <body onload="runTest()"> |
| 58 <p> | 58 <p> |
| 59 Tests that pause on exception is muted when conditional breakpoint is set to "fa
lse". | 59 Tests that pause on exception is muted when conditional breakpoint is set to "fa
lse". |
| 60 </p> | 60 </p> |
| 61 | 61 |
| 62 </body> | 62 </body> |
| 63 </html> | 63 </html> |
| OLD | NEW |