| 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="resources/framework.js"></script> | 5 <script src="resources/framework.js"></script> |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 function testFunction() | 8 function testFunction() |
| 9 { | 9 { |
| 10 Framework.throwFrameworkExceptionAndCatch(); | 10 Framework.throwFrameworkExceptionAndCatch(); |
| 11 Framework.throwInNativeAndCatch(); | 11 Framework.throwInNativeAndCatch(); |
| 12 | 12 |
| 13 // All above should be skipped. | 13 // All above should be skipped. |
| 14 debugger; | 14 debugger; |
| 15 } | 15 } |
| 16 | 16 |
| 17 function test() | 17 function test() |
| 18 { | 18 { |
| 19 var frameworkRegexString = "/framework\\.js$"; | 19 var frameworkRegexString = "/framework\\.js$"; |
| 20 WebInspector.experimentsSettings.frameworksDebuggingSupport.enableForTest(); | |
| 21 WebInspector.settings.skipStackFramesPattern.set(frameworkRegexString); | 20 WebInspector.settings.skipStackFramesPattern.set(frameworkRegexString); |
| 22 | 21 |
| 23 InspectorTest.setQuiet(true); | 22 InspectorTest.setQuiet(true); |
| 24 InspectorTest.startDebuggerTest(step1); | 23 InspectorTest.startDebuggerTest(step1); |
| 25 | 24 |
| 26 function step1() | 25 function step1() |
| 27 { | 26 { |
| 28 DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerModel.PauseOnExc
eptionsState.PauseOnAllExceptions); | 27 DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerModel.PauseOnExc
eptionsState.PauseOnAllExceptions); |
| 29 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); | 28 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); |
| 30 } | 29 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 45 </script> | 44 </script> |
| 46 </head> | 45 </head> |
| 47 | 46 |
| 48 <body onload="runTest()"> | 47 <body onload="runTest()"> |
| 49 <input type='button' onclick='testFunction()' value='Test'/> | 48 <input type='button' onclick='testFunction()' value='Test'/> |
| 50 <p> | 49 <p> |
| 51 Tests that framework black-boxing skips exceptions, including those that happene
d deeper inside V8 native script. | 50 Tests that framework black-boxing skips exceptions, including those that happene
d deeper inside V8 native script. |
| 52 </p> | 51 </p> |
| 53 </body> | 52 </body> |
| 54 </html> | 53 </html> |
| OLD | NEW |