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

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

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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 };
11 var b = [1, 2, 3, 4, 5]; 11 var b = [1, 2, 3, 4, 5];
12 var c = new Array(100); c[10] = 1; 12 var c = new Array(100); c[10] = 1;
13 a.k = 2; 13 a.k = 2;
14 a.l = window; 14 a.l = window;
15 b[1]++; 15 b[1]++;
16 b[2] = document.body; 16 b[2] = document.body;
17 } 17 }
18 18
19 function test() 19 function test()
20 { 20 {
21 InspectorTest.startDebuggerTest(runTestFunction); 21 InspectorTest.startDebuggerTest(runTestFunction);
22 InspectorTest.setQuiet(true); 22 InspectorTest.setQuiet(true);
23 23
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(Sources.JavaScriptSourceFrame.prototype, "setEx ecutionLocation", 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.deprecatedRunAfterPendingDispatches(dumpAndContinue.bind(n ull, 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");
45 textEditor._decorations.get(i).forEach(decoration => output.push(dec oration.element.deepTextContent())); 45 textEditor._decorations.get(i).forEach(decoration => output.push(dec oration.element.deepTextContent()));
46 InspectorTest.addResult(output.join(" ")); 46 InspectorTest.addResult(output.join(" "));
47 } 47 }
48 48
49 InspectorTest.addSniffer(WebInspector.JavaScriptSourceFrame.prototype, " setExecutionLocation", onSetExecutionLocation); 49 InspectorTest.addSniffer(Sources.JavaScriptSourceFrame.prototype, "setEx ecutionLocation", onSetExecutionLocation);
50 if (++stepCount < 10) 50 if (++stepCount < 10)
51 InspectorTest.stepOver(); 51 InspectorTest.stepOver();
52 else 52 else
53 InspectorTest.completeDebuggerTest(); 53 InspectorTest.completeDebuggerTest();
54 } 54 }
55 } 55 }
56 56
57 </script> 57 </script>
58 </head> 58 </head>
59 59
60 <body onload="runTest()"> 60 <body onload="runTest()">
61 <p> 61 <p>
62 Tests inline values rendering in the sources panel. 62 Tests inline values rendering in the sources panel.
63 </p> 63 </p>
64 64
65 </body> 65 </body>
66 </html> 66 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698