OLD | NEW |
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 Loading... |
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 Loading... |
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 }; |
OLD | NEW |