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

Side by Side Diff: test/inspector/debugger/doesnt-step-into-injected-script.js

Issue 2369753004: [inspector] added inspector test runner [part 5] (Closed)
Patch Set: addressed comments Created 4 years, 2 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
OLDNEW
(Empty)
1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 print("Check that stepInto at then end of the script go to next user script inst ead InjectedScriptSource.js.");
6
7 InspectorTest.evaluateInPage(
8 `function foo()
9 {
10 return 239;
11 }`);
12
13 InspectorTest.sendCommandOrDie("Debugger.enable", {});
14 InspectorTest.eventHandler["Debugger.paused"] = debuggerPaused;
15 InspectorTest.sendCommandOrDie("Runtime.evaluate", { "expression": "(function bo o() { setTimeout(foo, 0); debugger; })()" });
16
17 var actions = [ "stepInto", "stepInto", "stepInto" ];
18 function debuggerPaused(result)
19 {
20 InspectorTest.log("Stack trace:");
21 for (var callFrame of result.params.callFrames)
22 InspectorTest.log(callFrame.functionName + ":" + callFrame.location.lineNumb er + ":" + callFrame.location.columnNumber);
23 InspectorTest.log("");
24
25 var action = actions.shift();
26 if (!action) {
27 InspectorTest.sendCommandOrDie("Debugger.resume", {}, () => InspectorTest.co mpleteTest());
28 return;
29 }
30 InspectorTest.log("Perform " + action);
31 InspectorTest.sendCommandOrDie("Debugger." + action, {});
32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698