| 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 src="../../../http/tests/inspector/console-test.js"></script> |
| 6 <script> | 6 <script> |
| 7 var functions; | 7 var functions; |
| 8 | 8 |
| 9 function testFunction() | 9 function testFunction() |
| 10 { | 10 { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 var test = function() | 28 var test = function() |
| 29 { | 29 { |
| 30 var expectedErrorsCount = 8; | 30 var expectedErrorsCount = 8; |
| 31 | 31 |
| 32 InspectorTest.setQuiet(true); | 32 InspectorTest.setQuiet(true); |
| 33 InspectorTest.startDebuggerTest(step1); | 33 InspectorTest.startDebuggerTest(step1); |
| 34 | 34 |
| 35 function step1() | 35 function step1() |
| 36 { | 36 { |
| 37 InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerMo
del.PauseOnExceptionsState.PauseOnUncaughtExceptions); | 37 InspectorTest.DebuggerAgent.setPauseOnExceptions(SDK.DebuggerModel.Pause
OnExceptionsState.PauseOnUncaughtExceptions); |
| 38 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); | 38 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); |
| 39 } | 39 } |
| 40 | 40 |
| 41 function didPause(callFrames, reason, breakpointIds, asyncStackTrace) | 41 function didPause(callFrames, reason, breakpointIds, asyncStackTrace) |
| 42 { | 42 { |
| 43 --expectedErrorsCount; | 43 --expectedErrorsCount; |
| 44 if (!expectedErrorsCount) { | 44 if (!expectedErrorsCount) { |
| 45 InspectorTest.waitUntilNthMessageReceived(1, step2); | 45 InspectorTest.waitUntilNthMessageReceived(1, step2); |
| 46 InspectorTest.resumeExecution(); | 46 InspectorTest.resumeExecution(); |
| 47 } else { | 47 } else { |
| 48 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(Ins
pectorTest, didPause)); | 48 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(Ins
pectorTest, didPause)); |
| 49 } | 49 } |
| 50 } | 50 } |
| 51 | 51 |
| 52 function step2() | 52 function step2() |
| 53 { | 53 { |
| 54 InspectorTest.dumpConsoleMessages(); | 54 InspectorTest.dumpConsoleMessages(); |
| 55 completeTest(); | 55 completeTest(); |
| 56 } | 56 } |
| 57 | 57 |
| 58 function completeTest() | 58 function completeTest() |
| 59 { | 59 { |
| 60 InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerMo
del.PauseOnExceptionsState.DontPauseOnExceptions); | 60 InspectorTest.DebuggerAgent.setPauseOnExceptions(SDK.DebuggerModel.Pause
OnExceptionsState.DontPauseOnExceptions); |
| 61 InspectorTest.completeDebuggerTest(); | 61 InspectorTest.completeDebuggerTest(); |
| 62 } | 62 } |
| 63 } | 63 } |
| 64 | 64 |
| 65 </script> | 65 </script> |
| 66 </head> | 66 </head> |
| 67 <body onload="window.testRunner ? runTest() : testFunction()"> | 67 <body onload="window.testRunner ? runTest() : testFunction()"> |
| 68 <p> | 68 <p> |
| 69 Tests that pausing on uncaught exceptions thrown from C++ bindings will not cras
h. | 69 Tests that pausing on uncaught exceptions thrown from C++ bindings will not cras
h. |
| 70 </p> | 70 </p> |
| 71 </body> | 71 </body> |
| 72 </html> | 72 </html> |
| OLD | NEW |