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

Side by Side Diff: LayoutTests/http/tests/inspector/elements-test.js

Issue 9242032: Merge 105070 - Web Inspector: styles sidebar rendering is broken (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/963/
Patch Set: Created 8 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 | « LayoutTests/ChangeLog ('k') | Source/WebCore/ChangeLog » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var initialize_ElementTest = function() { 1 var initialize_ElementTest = function() {
2 2
3 InspectorTest.findNode = function(matchFunction, callback) 3 InspectorTest.findNode = function(matchFunction, callback)
4 { 4 {
5 callback = InspectorTest.safeWrap(callback); 5 callback = InspectorTest.safeWrap(callback);
6 var result = null; 6 var result = null;
7 var topLevelChildrenRequested = false; 7 var topLevelChildrenRequested = false;
8 var pendingRequests = 0; 8 var pendingRequests = 0;
9 function processChildren(topLevel, children) 9 function processChildren(topLevel, children)
10 { 10 {
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 if (section.computedStyle && excludeComputed) 130 if (section.computedStyle && excludeComputed)
131 continue; 131 continue;
132 if (section.rule && excludeMatched) 132 if (section.rule && excludeMatched)
133 continue; 133 continue;
134 if (section.element.previousSibling && section.element.previousSibli ng.className === "sidebar-separator") 134 if (section.element.previousSibling && section.element.previousSibli ng.className === "sidebar-separator")
135 InspectorTest.addResult("======== " + section.element.previousSi bling.textContent + " ========"); 135 InspectorTest.addResult("======== " + section.element.previousSi bling.textContent + " ========");
136 InspectorTest.addResult(section.expanded ? "[expanded] " : "[collaps ed] "); 136 InspectorTest.addResult(section.expanded ? "[expanded] " : "[collaps ed] ");
137 var chainEntries = section.titleElement.children; 137 var chainEntries = section.titleElement.children;
138 for (var j = 0; j < chainEntries.length; ++j) { 138 for (var j = 0; j < chainEntries.length; ++j) {
139 var chainEntry = chainEntries[j]; 139 var chainEntry = chainEntries[j];
140 var entryLine = chainEntry.children[0].textContent; 140 var entryLine = chainEntry.children[1].textContent;
141 if (chainEntry.children[2]) 141 if (chainEntry.children[2])
142 entryLine += " " + chainEntry.children[1].textContent; 142 entryLine += " " + chainEntry.children[2].textContent;
143 if (chainEntry.children.length > 1) 143 entryLine += " (" + extractText(chainEntry.children[0]) + ")";
144 entryLine += " (" + extractText(chainEntry.lastChild) + ")";
145 InspectorTest.addResult(entryLine); 144 InspectorTest.addResult(entryLine);
146 } 145 }
147 section.expand(); 146 section.expand();
148 InspectorTest.dumpStyleTreeOutline(section.propertiesTreeOutline, om itLonghands ? 1 : 2); 147 InspectorTest.dumpStyleTreeOutline(section.propertiesTreeOutline, om itLonghands ? 1 : 2);
149 InspectorTest.addResult(""); 148 InspectorTest.addResult("");
150 } 149 }
151 InspectorTest.addResult(""); 150 InspectorTest.addResult("");
152 } 151 }
153 }; 152 };
154 153
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 }; 382 };
384 383
385 InspectorTest.rangeText = function(range) 384 InspectorTest.rangeText = function(range)
386 { 385 {
387 if (!range) 386 if (!range)
388 return "[undefined-undefined]"; 387 return "[undefined-undefined]";
389 return "[" + range.start + "-" + range.end + "]"; 388 return "[" + range.start + "-" + range.end + "]";
390 }; 389 };
391 390
392 }; 391 };
OLDNEW
« no previous file with comments | « LayoutTests/ChangeLog ('k') | Source/WebCore/ChangeLog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698