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

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

Issue 2388903004: [DevTools] Fixed inline scope variables for object property (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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/inline-scope-variables-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script>
6
7 function testFunction()
8 {
9 var length = 123;
10 var a = [1, 2, 3];
11 if (a.length) {
12 var b = 42;
13 console.log(a.length);
14 debugger;
15 return b;
16 }
17 }
18
19 var test = function()
20 {
21 InspectorTest.startDebuggerTest(step1, true);
22
23 function step1()
24 {
25 InspectorTest.addSnifferPromise(WebInspector.JavaScriptSourceFrame.proto type, "_renderDecorations").then(step2);
26 InspectorTest.runTestFunctionAndWaitUntilPaused();
27 }
28
29 function step2()
30 {
31 var currentFrame = WebInspector.panels.sources.visibleView;
32 var decorations = currentFrame.textEditor._decorations;
33 for (var line of decorations.keysArray()) {
34 var lineDecorations = Array.from(decorations.get(line)).map(decorati on => decoration.element.textContent).join(", ");
35 InspectorTest.addResult(`${line + 1}: ${lineDecorations}`);
36 }
37 InspectorTest.completeDebuggerTest();
38 }
39 }
40
41 </script>
42 </head>
43 <body onload="runTest()">
44 <p>Tests that inline scope variables are rendering correctly.</p>
45 </body>
46 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/inline-scope-variables-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698