| OLD | NEW |
| 1 function initialize_AuditTests() | 1 function initialize_AuditTests() |
| 2 { | 2 { |
| 3 | 3 |
| 4 InspectorTest.collectAuditResults = function() | 4 InspectorTest.collectAuditResults = function() |
| 5 { | 5 { |
| 6 WebInspector.panels.audits.showResults(WebInspector.panels.audits.auditResul
tsTreeElement.children[0].results); | 6 WebInspector.inspectorView.panel("audits").showResults(WebInspector.inspecto
rView.panel("audits").auditResultsTreeElement.children[0].results); |
| 7 var liElements = WebInspector.panels.audits.visibleView.element.getElementsB
yTagName("li"); | 7 var liElements = WebInspector.inspectorView.panel("audits").visibleView.elem
ent.getElementsByTagName("li"); |
| 8 for (var j = 0; j < liElements.length; ++j) { | 8 for (var j = 0; j < liElements.length; ++j) { |
| 9 if (liElements[j].treeElement) | 9 if (liElements[j].treeElement) |
| 10 liElements[j].treeElement.expand(); | 10 liElements[j].treeElement.expand(); |
| 11 } | 11 } |
| 12 InspectorTest.collectTextContent(WebInspector.panels.audits.visibleView.elem
ent, ""); | 12 InspectorTest.collectTextContent(WebInspector.inspectorView.panel("audits").
visibleView.element, ""); |
| 13 } | 13 } |
| 14 | 14 |
| 15 InspectorTest.launchAllAudits = function(shouldReload, callback) | 15 InspectorTest.launchAllAudits = function(shouldReload, callback) |
| 16 { | 16 { |
| 17 InspectorTest.addSniffer(WebInspector.AuditController.prototype, "_auditFini
shedCallback", callback); | 17 InspectorTest.addSniffer(WebInspector.AuditController.prototype, "_auditFini
shedCallback", callback); |
| 18 var launcherView = WebInspector.panels.audits._launcherView; | 18 var launcherView = WebInspector.inspectorView.panel("audits")._launcherView; |
| 19 launcherView._selectAllClicked(true); | 19 launcherView._selectAllClicked(true); |
| 20 launcherView._auditPresentStateElement.checked = !shouldReload; | 20 launcherView._auditPresentStateElement.checked = !shouldReload; |
| 21 launcherView._launchButtonClicked(); | 21 launcherView._launchButtonClicked(); |
| 22 } | 22 } |
| 23 | 23 |
| 24 InspectorTest.collectTextContent = function(element, indent) | 24 InspectorTest.collectTextContent = function(element, indent) |
| 25 { | 25 { |
| 26 var nodeOutput = ""; | 26 var nodeOutput = ""; |
| 27 var child = element.firstChild; | 27 var child = element.firstChild; |
| 28 | 28 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 39 else | 39 else |
| 40 InspectorTest.collectTextContent(child, indent + " "); | 40 InspectorTest.collectTextContent(child, indent + " "); |
| 41 } | 41 } |
| 42 child = child.nextSibling; | 42 child = child.nextSibling; |
| 43 } | 43 } |
| 44 if (nodeOutput !== "") | 44 if (nodeOutput !== "") |
| 45 InspectorTest.addResult(indent + nodeOutput); | 45 InspectorTest.addResult(indent + nodeOutput); |
| 46 } | 46 } |
| 47 | 47 |
| 48 } | 48 } |
| OLD | NEW |