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

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

Issue 1153923005: DevTools: shard inspector/debugger tests for faster execution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698