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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-doesnt-step-into-injected-script.html

Issue 2968523003: [DevTools] Migrate inspector-protocol/debugger tests to new harness (Closed)
Patch Set: all tests Created 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource s/inspector-protocol-test.js"></script>
4 <script>
5
6 function foo()
7 {
8 return 239;
9 }
10
11 function test()
12 {
13 InspectorTest.sendCommandOrDie("Debugger.enable", {});
14 InspectorTest.eventHandler["Debugger.paused"] = debuggerPaused;
15 InspectorTest.sendCommandOrDie("Runtime.evaluate", { "expression": "(functio n boo() { 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. lineNumber + ":" + callFrame.location.columnNumber);
23 InspectorTest.log("");
24
25 var action = actions.shift();
26 if (!action) {
27 InspectorTest.sendCommandOrDie("Debugger.resume", {}, () => Inspecto rTest.completeTest());
28 return;
29 }
30 InspectorTest.log("Perform " + action);
31 InspectorTest.sendCommandOrDie("Debugger." + action, {});
32 }
33 }
34 </script>
35 </head>
36 <body onLoad="runTest();">
37 Check that stepInto at then end of the script go to next user script instead Inj ectedScriptSource.js.
38 </body>
39 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698