| OLD | NEW |
| 1 function initialize_AuditTests() | 1 function initialize_AuditTests() |
| 2 { | 2 { |
| 3 | 3 |
| 4 InspectorTest.preloadPanel("audits"); | 4 InspectorTest.preloadPanel("audits"); |
| 5 | 5 |
| 6 InspectorTest.collectAuditResults = function(callback) | 6 InspectorTest.collectAuditResults = function(callback) |
| 7 { | 7 { |
| 8 WebInspector.panels.audits.showResults(WebInspector.panels.audits.auditResul
tsTreeElement.firstChild().results); | 8 WebInspector.panels.audits.showResults(WebInspector.panels.audits.auditResul
tsTreeElement.firstChild().results); |
| 9 var trees = WebInspector.panels.audits.visibleView.element.querySelectorAll(
".audit-result-tree"); | 9 var trees = WebInspector.panels.audits.visibleView.element.querySelectorAll(
".audit-result-tree"); |
| 10 for (var i = 0; i < trees.length; ++i) { | 10 for (var i = 0; i < trees.length; ++i) { |
| 11 var liElements = trees[i].shadowRoot.querySelectorAll("li"); | 11 var liElements = trees[i].shadowRoot.querySelectorAll("li"); |
| 12 for (var j = 0; j < liElements.length; ++j) { | 12 for (var j = 0; j < liElements.length; ++j) { |
| 13 if (liElements[j].treeElement) | 13 if (liElements[j].treeElement) |
| 14 liElements[j].treeElement.expand(); | 14 liElements[j].treeElement.expand(); |
| 15 } | 15 } |
| 16 } | 16 } |
| 17 InspectorTest.runAfterPendingDispatches(function() { | 17 InspectorTest.deprecatedRunAfterPendingDispatches(function() { |
| 18 InspectorTest.collectTextContent(WebInspector.panels.audits.visibleView.
element, ""); | 18 InspectorTest.collectTextContent(WebInspector.panels.audits.visibleView.
element, ""); |
| 19 callback(); | 19 callback(); |
| 20 }); | 20 }); |
| 21 } | 21 } |
| 22 | 22 |
| 23 InspectorTest.launchAllAudits = function(shouldReload, callback) | 23 InspectorTest.launchAllAudits = function(shouldReload, callback) |
| 24 { | 24 { |
| 25 InspectorTest.addSniffer(WebInspector.AuditController.prototype, "_auditFini
shedCallback", callback); | 25 InspectorTest.addSniffer(WebInspector.AuditController.prototype, "_auditFini
shedCallback", callback); |
| 26 var launcherView = WebInspector.panels.audits._launcherView; | 26 var launcherView = WebInspector.panels.audits._launcherView; |
| 27 launcherView._selectAllClicked(true); | 27 launcherView._selectAllClicked(true); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 51 else | 51 else |
| 52 InspectorTest.collectTextContent(child, indent + " "); | 52 InspectorTest.collectTextContent(child, indent + " "); |
| 53 } | 53 } |
| 54 child = child.nextSibling; | 54 child = child.nextSibling; |
| 55 } | 55 } |
| 56 if (nodeOutput !== "") | 56 if (nodeOutput !== "") |
| 57 InspectorTest.addResult(indent + nodeOutput); | 57 InspectorTest.addResult(indent + nodeOutput); |
| 58 } | 58 } |
| 59 | 59 |
| 60 } | 60 } |
| OLD | NEW |