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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/debugger-inline-values.html

Issue 1877223003: DevTools: deprecate InspectorTest.runAfterPendingDispatches (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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> 5 <script>
6 6
7 function testFunction() 7 function testFunction()
8 { 8 {
9 debugger; 9 debugger;
10 var a = { k: 1 }; 10 var a = { k: 1 };
(...skipping 13 matching lines...) Expand all
24 var stepCount = 0; 24 var stepCount = 0;
25 25
26 function runTestFunction() 26 function runTestFunction()
27 { 27 {
28 InspectorTest.addSniffer(WebInspector.JavaScriptSourceFrame.prototype, " setExecutionLocation", onSetExecutionLocation); 28 InspectorTest.addSniffer(WebInspector.JavaScriptSourceFrame.prototype, " setExecutionLocation", onSetExecutionLocation);
29 InspectorTest.evaluateInPage("setTimeout(testFunction, 0)"); 29 InspectorTest.evaluateInPage("setTimeout(testFunction, 0)");
30 } 30 }
31 31
32 function onSetExecutionLocation(uiLocation) 32 function onSetExecutionLocation(uiLocation)
33 { 33 {
34 InspectorTest.runAfterPendingDispatches(dumpAndContinue.bind(null, this. textEditor, uiLocation.lineNumber)); 34 InspectorTest.deprecatedRunAfterPendingDispatches(dumpAndContinue.bind(n ull, this.textEditor, uiLocation.lineNumber));
35 } 35 }
36 36
37 function dumpAndContinue(textEditor, lineNumber) 37 function dumpAndContinue(textEditor, lineNumber)
38 { 38 {
39 InspectorTest.addResult("=========== 8< =========="); 39 InspectorTest.addResult("=========== 8< ==========");
40 for (var i = 8; i < 18; ++i) { 40 for (var i = 8; i < 18; ++i) {
41 var output = ["[" + (i < 10 ? " " : "") + i + "]"]; 41 var output = ["[" + (i < 10 ? " " : "") + i + "]"];
42 output.push(i == lineNumber ? ">" : " "); 42 output.push(i == lineNumber ? ">" : " ");
43 output.push(textEditor.line(i)); 43 output.push(textEditor.line(i));
44 output.push("\t"); 44 output.push("\t");
(...skipping 15 matching lines...) Expand all
60 </script> 60 </script>
61 </head> 61 </head>
62 62
63 <body onload="runTest()"> 63 <body onload="runTest()">
64 <p> 64 <p>
65 Tests inline values rendering in the sources panel. 65 Tests inline values rendering in the sources panel.
66 </p> 66 </p>
67 67
68 </body> 68 </body>
69 </html> 69 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698