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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/watch-expressions-preserve-expansion.html

Issue 2153153003: DevTools: remove dead code, disambiguate expand for sections. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lcean Created 4 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
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/elements-test.js"></script> 4 <script src="../../../http/tests/inspector/elements-test.js"></script>
5 <script src="../../../http/tests/inspector/debugger-test.js"></script> 5 <script src="../../../http/tests/inspector/debugger-test.js"></script>
6 <script> 6 <script>
7 7
8 var globalObject = { 8 var globalObject = {
9 foo: { 9 foo: {
10 bar: { 10 bar: {
11 baz: 2012 11 baz: 2012
12 } 12 }
13 } 13 }
14 }; 14 };
15 var windowAlias = window; 15 var windowAlias = window;
16 var array = []; 16 var array = [];
17 for (var i = 0; i < 300; ++i) 17 for (var i = 0; i < 300; ++i)
18 array[i] = i; 18 array[i] = i;
19 19
20 (function() 20 (function()
21 { 21 {
22 var a = 10; 22 var a = 10;
23 var b = 100; 23 var b = 100;
24 window.func = function() {return a + b;} 24 window.func = function() {return a + b;}
25 }()); 25 }());
26 26
27 var test = function() 27 var test = function()
28 { 28 {
29 var watchExpressionsPane = WebInspector.panels.sources.sidebarPanes.watchExp ressions; 29 var watchExpressionsPane = WebInspector.panels.sources.sidebarPanes.watchExp ressions;
30 watchExpressionsPane.expand(); 30 watchExpressionsPane.expandPane();
31 watchExpressionsPane.addExpression("globalObject"); 31 watchExpressionsPane.addExpression("globalObject");
32 watchExpressionsPane.addExpression("windowAlias"); 32 watchExpressionsPane.addExpression("windowAlias");
33 watchExpressionsPane.addExpression("array"); 33 watchExpressionsPane.addExpression("array");
34 watchExpressionsPane.addExpression("func"); 34 watchExpressionsPane.addExpression("func");
35 InspectorTest.deprecatedRunAfterPendingDispatches(step2); 35 InspectorTest.deprecatedRunAfterPendingDispatches(step2);
36 36
37 function step2() 37 function step2()
38 { 38 {
39 InspectorTest.addResult("Watch expressions added."); 39 InspectorTest.addResult("Watch expressions added.");
40 var expandArray = expandWatchExpression.bind(null, ["array", "[200 \u202 6 299]", "299"], step3); 40 var expandArray = expandWatchExpression.bind(null, ["array", "[200 \u202 6 299]", "299"], step3);
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 } 122 }
123 } 123 }
124 124
125 </script> 125 </script>
126 </head> 126 </head>
127 <body onload="runTest()"> 127 <body onload="runTest()">
128 <p>Test that watch expressions expansion state is restored after update.</p> 128 <p>Test that watch expressions expansion state is restored after update.</p>
129 <a href="https://bugs.webkit.org/show_bug.cgi?id=99304">Bug 99304</a> 129 <a href="https://bugs.webkit.org/show_bug.cgi?id=99304">Bug 99304</a>
130 </body> 130 </body>
131 </html> 131 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698