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

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

Issue 424813004: DevTools: Don't stop debugger inside V8 internal scripts with empty stack trace. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 debugger; 10 debugger;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 { 43 {
44 var frameworkRegexString = "/framework\\.js$"; 44 var frameworkRegexString = "/framework\\.js$";
45 WebInspector.experimentsSettings.frameworksDebuggingSupport.enableForTest(); 45 WebInspector.experimentsSettings.frameworksDebuggingSupport.enableForTest();
46 WebInspector.settings.skipStackFramesPattern.set(frameworkRegexString); 46 WebInspector.settings.skipStackFramesPattern.set(frameworkRegexString);
47 47
48 InspectorTest.setQuiet(true); 48 InspectorTest.setQuiet(true);
49 InspectorTest.startDebuggerTest(step1); 49 InspectorTest.startDebuggerTest(step1);
50 50
51 function step1() 51 function step1()
52 { 52 {
53 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); 53 InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
54 } 54 }
55 55
56 var actions = [ 56 function step2()
57 "Print", // debugger; 57 {
58 "StepInto", "StepInto", "Print", // callback1 58 var actions = [
59 "StepInto", "Print", // callback2 59 "Print", // debugger;
60 "StepInto", "Print", // callback2, skipped 60 "StepInto", "StepInto", "Print", // callback1
61 "StepInto", "Print", // callback3 61 "StepInto", "Print", // callback2
62 "StepInto", "StepInto", "StepInto", "StepInto", "Print", // callback4 62 "StepInto", "Print", // callback2, skipped
63 "StepInto", "Print", // callback4, skipped 63 "StepInto", "Print", // callback3
64 "StepInto", "Print", // callback4, inside catch 64 "StepInto", "StepInto", "StepInto", "StepInto", "Print", // callback 4
65 "StepOut", "Print", // return to callback3 65 "StepInto", "Print", // callback4, skipped
66 "StepOver", "Print", // return to callback2 66 "StepInto", "Print", // callback4, inside catch
67 "StepInto", "Print", // return to callback1 67 "StepOut", "Print", // return to callback3
68 ]; 68 "StepOver", "Print", // return to callback2
69 "StepInto", "Print", // return to callback1
70 ];
71 InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step3);
72 }
69 73
70 function didPause(callFrames, reason, breakpointIds, asyncStackTrace) 74 function step3()
71 { 75 {
72 var action = actions.shift(); 76 InspectorTest.completeDebuggerTest();
73 if (action === "Print") {
74 InspectorTest.captureStackTrace(callFrames);
75 InspectorTest.addResult("");
76 while (action === "Print")
77 action = actions.shift();
78 }
79
80 if (!action) {
81 InspectorTest.completeDebuggerTest();
82 return;
83 }
84
85 InspectorTest.addResult("Executing " + action + "...");
86 switch (action) {
87 case "StepInto":
88 WebInspector.panels.sources._stepIntoButton.element.click();
89 break;
90 case "StepOver":
91 WebInspector.panels.sources._stepOverButton.element.click();
92 break;
93 case "StepOut":
94 WebInspector.panels.sources._stepOutButton.element.click();
95 break;
96 default:
97 InspectorTest.addResult("FAIL: Unknown action: " + action);
98 InspectorTest.completeDebuggerTest();
99 return;
100 }
101 InspectorTest.waitUntilResumed(InspectorTest.waitUntilPaused.bind(Inspec torTest, didPause));
102 } 77 }
103 } 78 }
104 79
105 </script> 80 </script>
106 </head> 81 </head>
107 82
108 <body onload="runTest()"> 83 <body onload="runTest()">
109 <input type='button' onclick='testFunction()' value='Test'/> 84 <input type='button' onclick='testFunction()' value='Test'/>
110 <p> 85 <p>
111 Tests stepping into/over/out with framework black-boxing. 86 Tests stepping into/over/out with framework black-boxing.
112 </p> 87 </p>
113 </body> 88 </body>
114 </html> 89 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698