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

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

Issue 2604883002: DevTools: namespace globals (Closed)
Patch Set: address CL feedback Created 3 years, 11 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/Source/devtools/front_end/accessibility/ARIAAttributesView.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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: {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 addResult(indent + treeElement.property.name + ": " + treeElement.pr operty.value._description); 76 addResult(indent + treeElement.property.name + ": " + treeElement.pr operty.value._description);
77 else if (typeof treeElement.title === "string") 77 else if (typeof treeElement.title === "string")
78 addResult(indent + treeElement.title); 78 addResult(indent + treeElement.title);
79 79
80 for (var i = 0; i < treeElement.children().length; i++) 80 for (var i = 0; i < treeElement.children().length; i++)
81 dumpObjectPropertiesTreeElement(treeElement.children()[i], " " + in dent); 81 dumpObjectPropertiesTreeElement(treeElement.children()[i], " " + in dent);
82 } 82 }
83 83
84 function expandProperties(treeoutline, path, callback) 84 function expandProperties(treeoutline, path, callback)
85 { 85 {
86 treeoutline.addEventListener(TreeOutline.Events.ElementAttached, element Attached); 86 treeoutline.addEventListener(UI.TreeOutline.Events.ElementAttached, elem entAttached);
87 treeoutline.expand(); 87 treeoutline.expand();
88 88
89 function elementAttached(event) 89 function elementAttached(event)
90 { 90 {
91 var treeElement = event.data; 91 var treeElement = event.data;
92 var currentName = treeElement.property ? treeElement.property.name : treeElement.title; 92 var currentName = treeElement.property ? treeElement.property.name : treeElement.title;
93 if (currentName !== path[0]) 93 if (currentName !== path[0])
94 return; 94 return;
95 95
96 var childName = path.shift(); 96 var childName = path.shift();
97 addResult("expanded " + childName + " " + (treeElement.property ? tr eeElement.property.value : "")); 97 addResult("expanded " + childName + " " + (treeElement.property ? tr eeElement.property.value : ""));
98 98
99 if (path.length) { 99 if (path.length) {
100 treeElement.expand(); 100 treeElement.expand();
101 return; 101 return;
102 } 102 }
103 103
104 treeoutline.removeEventListener(TreeOutline.Events.ElementAttached, elementAttached); 104 treeoutline.removeEventListener(UI.TreeOutline.Events.ElementAttache d, elementAttached);
105 callback(); 105 callback();
106 } 106 }
107 } 107 }
108 108
109 function expandWatchExpression(path, callback) 109 function expandWatchExpression(path, callback)
110 { 110 {
111 var pane = self.runtime.sharedInstance(Sources.WatchExpressionsSidebarPa ne); 111 var pane = self.runtime.sharedInstance(Sources.WatchExpressionsSidebarPa ne);
112 var expression = path.shift(); 112 var expression = path.shift();
113 for (var i = 0; i < pane._watchExpressions.length; i++) { 113 for (var i = 0; i < pane._watchExpressions.length; i++) {
114 var watch = pane._watchExpressions[i]; 114 var watch = pane._watchExpressions[i];
(...skipping 10 matching lines...) Expand all
125 } 125 }
126 } 126 }
127 127
128 </script> 128 </script>
129 </head> 129 </head>
130 <body onload="runTest()"> 130 <body onload="runTest()">
131 <p>Test that watch expressions expansion state is restored after update.</p> 131 <p>Test that watch expressions expansion state is restored after update.</p>
132 <a href="https://bugs.webkit.org/show_bug.cgi?id=99304">Bug 99304</a> 132 <a href="https://bugs.webkit.org/show_bug.cgi?id=99304">Bug 99304</a>
133 </body> 133 </body>
134 </html> 134 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/accessibility/ARIAAttributesView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698