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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/debugger/getStepInPositions.html

Issue 1785533002: [DevTools] Removed unused hidden protocol method: getStepInPositions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/inspecto r-protocol-test.js"></script>
4 <script>
5
6 function TestFunction()
7 {
8 debugger;
9 f(f1(2, 4),
10 f2(f3(), f4(5)));
11 }
12
13 function test()
14 {
15 InspectorTest.sendCommand("Debugger.enable", {});
16
17 InspectorTest.eventHandler["Debugger.paused"] = handleDebuggerPausedOne;
18
19 InspectorTest.sendCommand("Runtime.evaluate", { "expression": "setTimeout(Te stFunction, 0)" });
20
21 function handleDebuggerPausedOne(messageObject)
22 {
23 InspectorTest.log("Paused on 'debugger;'");
24
25 InspectorTest.eventHandler["Debugger.paused"] = handleDebuggerPausedTwo;
26 InspectorTest.sendCommand("Debugger.stepOver", { });
27 }
28
29 function handleDebuggerPausedTwo(messageObject)
30 {
31 InspectorTest.log("Paused on the next statement");
32 var topFrame = messageObject.params.callFrames[0];
33
34 InspectorTest.eventHandler["Debugger.paused"] = undefined;
35
36 InspectorTest.sendCommand("Debugger.getStepInPositions", { callFrameId: topFrame.callFrameId }, callbackGetStepInPositions);
37 }
38
39 function callbackGetStepInPositions(response)
40 {
41 var positions = response.result.stepInPositions;
42 if (positions.length >= 3)
43 InspectorTest.log("PASS");
44 else
45 InspectorTest.log("FAIL");
46
47 InspectorTest.completeTest();
48 }
49 }
50 </script>
51 </head>
52 <body onLoad="runTest();">
53 </body>
54 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698