Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-skip-exceptions.html

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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="../debugger/resources/framework.js"></script> 5 <script src="../debugger/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.settingForTest("skipStackFramesPattern").set(frameworkRegexStri ng); 20 Common.settingForTest("skipStackFramesPattern").set(frameworkRegexString);
21 21
22 InspectorTest.setQuiet(true); 22 InspectorTest.setQuiet(true);
23 InspectorTest.startDebuggerTest(step1); 23 InspectorTest.startDebuggerTest(step1);
24 24
25 function step1() 25 function step1()
26 { 26 {
27 InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerMo del.PauseOnExceptionsState.PauseOnAllExceptions); 27 InspectorTest.DebuggerAgent.setPauseOnExceptions(SDK.DebuggerModel.Pause OnExceptionsState.PauseOnAllExceptions);
28 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); 28 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
29 } 29 }
30 30
31 function didPause(callFrames, reason, breakpointIds, asyncStackTrace) 31 function didPause(callFrames, reason, breakpointIds, asyncStackTrace)
32 { 32 {
33 InspectorTest.captureStackTrace(callFrames); 33 InspectorTest.captureStackTrace(callFrames);
34 completeTest(); 34 completeTest();
35 } 35 }
36 36
37 function completeTest() 37 function completeTest()
38 { 38 {
39 InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerMo del.PauseOnExceptionsState.DontPauseOnExceptions); 39 InspectorTest.DebuggerAgent.setPauseOnExceptions(SDK.DebuggerModel.Pause OnExceptionsState.DontPauseOnExceptions);
40 InspectorTest.completeDebuggerTest(); 40 InspectorTest.completeDebuggerTest();
41 } 41 }
42 } 42 }
43 43
44 </script> 44 </script>
45 </head> 45 </head>
46 46
47 <body onload="runTest()"> 47 <body onload="runTest()">
48 <input type='button' onclick='testFunction()' value='Test'/> 48 <input type='button' onclick='testFunction()' value='Test'/>
49 <p> 49 <p>
50 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.
51 </p> 51 </p>
52 </body> 52 </body>
53 </html> 53 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698