| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> | |
| 4 <script src="../../../http/tests/inspector/debugger-test.js"></script> | |
| 5 <script src="resources/framework.js"></script> | |
| 6 <script> | |
| 7 | |
| 8 function testFunction() | |
| 9 { | |
| 10 Framework.throwFrameworkExceptionAndCatch(); | |
| 11 Framework.throwInNativeAndCatch(); | |
| 12 | |
| 13 // All above should be skipped. | |
| 14 debugger; | |
| 15 } | |
| 16 | |
| 17 function test() | |
| 18 { | |
| 19 var frameworkRegexString = "/framework\\.js$"; | |
| 20 WebInspector.settingForTest("skipStackFramesPattern").set(frameworkRegexStri
ng); | |
| 21 | |
| 22 InspectorTest.setQuiet(true); | |
| 23 InspectorTest.startDebuggerTest(step1); | |
| 24 | |
| 25 function step1() | |
| 26 { | |
| 27 InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerMo
del.PauseOnExceptionsState.PauseOnAllExceptions); | |
| 28 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); | |
| 29 } | |
| 30 | |
| 31 function didPause(callFrames, reason, breakpointIds, asyncStackTrace) | |
| 32 { | |
| 33 InspectorTest.captureStackTrace(callFrames); | |
| 34 completeTest(); | |
| 35 } | |
| 36 | |
| 37 function completeTest() | |
| 38 { | |
| 39 InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerMo
del.PauseOnExceptionsState.DontPauseOnExceptions); | |
| 40 InspectorTest.completeDebuggerTest(); | |
| 41 } | |
| 42 } | |
| 43 | |
| 44 </script> | |
| 45 </head> | |
| 46 | |
| 47 <body onload="runTest()"> | |
| 48 <input type='button' onclick='testFunction()' value='Test'/> | |
| 49 <p> | |
| 50 Tests that framework black-boxing skips exceptions, including those that happene
d deeper inside V8 native script. | |
| 51 </p> | |
| 52 </body> | |
| 53 </html> | |
| OLD | NEW |