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

Unified Diff: LayoutTests/http/tests/inspector/debugger-test.js

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, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/debugger-step-into-v8-internals.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/inspector/debugger-test.js
diff --git a/LayoutTests/http/tests/inspector/debugger-test.js b/LayoutTests/http/tests/inspector/debugger-test.js
index 6a55c6c9e10677adaa1f4e72029981cc6fc1f59f..758dbb69c9dfac66baabba1bdda0729e1dacc500 100644
--- a/LayoutTests/http/tests/inspector/debugger-test.js
+++ b/LayoutTests/http/tests/inspector/debugger-test.js
@@ -159,6 +159,51 @@ InspectorTest.waitUntilPausedAndDumpStackAndResume = function(callback, options)
}
};
+InspectorTest.waitUntilPausedAndPerformSteppingActions = function(actions, callback)
+{
+ callback = InspectorTest.safeWrap(callback);
+ InspectorTest.waitUntilPaused(didPause);
+
+ function didPause(callFrames, reason, breakpointIds, asyncStackTrace)
+ {
+ var action = actions.shift();
+ if (action === "Print") {
+ InspectorTest.captureStackTrace(callFrames, asyncStackTrace);
+ InspectorTest.addResult("");
+ while (action === "Print")
+ action = actions.shift();
+ }
+
+ if (!action) {
+ callback()
+ return;
+ }
+
+ InspectorTest.addResult("Executing " + action + "...");
+
+ switch (action) {
+ case "StepInto":
+ WebInspector.panels.sources._stepIntoButton.element.click();
+ break;
+ case "StepOver":
+ WebInspector.panels.sources._stepOverButton.element.click();
+ break;
+ case "StepOut":
+ WebInspector.panels.sources._stepOutButton.element.click();
+ break;
+ case "Resume":
+ WebInspector.panels.sources.togglePause();
+ break;
+ default:
+ InspectorTest.addResult("FAIL: Unknown action: " + action);
+ callback()
+ return;
+ }
+
+ InspectorTest.waitUntilResumed(InspectorTest.waitUntilPaused.bind(InspectorTest, didPause));
+ }
+};
+
InspectorTest.captureStackTrace = function(callFrames, asyncStackTrace, options)
{
InspectorTest.addResult(InspectorTest.captureStackTraceIntoString(callFrames, asyncStackTrace, options));
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/debugger-step-into-v8-internals.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698