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

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

Issue 444923002: DevTools: Blackboxing out of experiments. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 4 months 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 | Annotate | Revision Log
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="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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698