OLD | NEW |
1 var initialize_ElementTest = function() { | 1 var initialize_ElementTest = function() { |
2 | 2 |
3 InspectorTest.preloadPanel("elements"); | 3 InspectorTest.preloadPanel("elements"); |
4 | 4 |
5 InspectorTest.inlineStyleSection = function() | 5 InspectorTest.inlineStyleSection = function() |
6 { | 6 { |
7 return WebInspector.panels.elements.sidebarPanes.styles.sections[0][0]; | 7 return WebInspector.panels.elements.sidebarPanes.styles.sections[0][0]; |
8 } | 8 } |
9 | 9 |
10 InspectorTest.computedStyleSection = function() | 10 InspectorTest.computedStyleSection = function() |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 if (userProperties) | 485 if (userProperties) |
486 userProperties = " [" + userProperties + "]"; | 486 userProperties = " [" + userProperties + "]"; |
487 } | 487 } |
488 return userProperties; | 488 return userProperties; |
489 } | 489 } |
490 | 490 |
491 function print(treeItem, prefix, depth) | 491 function print(treeItem, prefix, depth) |
492 { | 492 { |
493 if (!treeItem.root) { | 493 if (!treeItem.root) { |
494 var expander; | 494 var expander; |
495 if (treeItem.hasChildren) { | 495 if (treeItem.isExpandable()) { |
496 if (treeItem.expanded) | 496 if (treeItem.expanded) |
497 expander = "- "; | 497 expander = "- "; |
498 else | 498 else |
499 expander = "+ "; | 499 expander = "+ "; |
500 } else | 500 } else |
501 expander = " "; | 501 expander = " "; |
502 | 502 |
503 var userProperties = userPropertyDataDump(treeItem); | 503 var userProperties = userPropertyDataDump(treeItem); |
504 var value = prefix + expander + beautify(treeItem.listItemElement) +
userProperties; | 504 var value = prefix + expander + beautify(treeItem.listItemElement) +
userProperties; |
505 if (treeItem.shadowHostToolbar) { | 505 if (treeItem.shadowHostToolbar) { |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 InspectorTest.expandElementsTree = function(callback) | 588 InspectorTest.expandElementsTree = function(callback) |
589 { | 589 { |
590 var expandedSomething = false; | 590 var expandedSomething = false; |
591 callback = InspectorTest.safeWrap(callback); | 591 callback = InspectorTest.safeWrap(callback); |
592 | 592 |
593 function expand(treeItem) | 593 function expand(treeItem) |
594 { | 594 { |
595 var children = treeItem.children(); | 595 var children = treeItem.children(); |
596 for (var i = 0; children && i < children.length; ++i) { | 596 for (var i = 0; children && i < children.length; ++i) { |
597 var child = children[i]; | 597 var child = children[i]; |
598 if (child.hasChildren && !child.expanded) { | 598 if (child.isExpandable() && !child.expanded) { |
599 child.expand(); | 599 child.expand(); |
600 expandedSomething = true; | 600 expandedSomething = true; |
601 } | 601 } |
602 expand(child); | 602 expand(child); |
603 } | 603 } |
604 } | 604 } |
605 | 605 |
606 function onAllNodesAvailable() | 606 function onAllNodesAvailable() |
607 { | 607 { |
608 InspectorTest.firstElementsTreeOutline().runPendingUpdates(); | 608 InspectorTest.firstElementsTreeOutline().runPendingUpdates(); |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
871 } | 871 } |
872 | 872 |
873 function report(error, result) | 873 function report(error, result) |
874 { | 874 { |
875 InspectorTest.addResult(idValue + JSON.stringify(result, null, 2)); | 875 InspectorTest.addResult(idValue + JSON.stringify(result, null, 2)); |
876 callback(); | 876 callback(); |
877 } | 877 } |
878 } | 878 } |
879 | 879 |
880 }; | 880 }; |
OLD | NEW |