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

Unified Diff: third_party/WebKit/LayoutTests/inspector/audits/audits-test.js

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector/audits/audits-test.js
diff --git a/third_party/WebKit/LayoutTests/inspector/audits/audits-test.js b/third_party/WebKit/LayoutTests/inspector/audits/audits-test.js
index 6e05ea1c7b380da8e319d354bbc659f6001353ad..4fbeb52a49eb6ac49f5509ba2903ce1a5f5c84ad 100644
--- a/third_party/WebKit/LayoutTests/inspector/audits/audits-test.js
+++ b/third_party/WebKit/LayoutTests/inspector/audits/audits-test.js
@@ -5,8 +5,8 @@ InspectorTest.preloadPanel("audits");
InspectorTest.collectAuditResults = function(callback)
{
- WebInspector.panels.audits.showResults(WebInspector.panels.audits._auditResultsTreeElement.firstChild().results);
- var trees = WebInspector.panels.audits.visibleView.element.querySelectorAll(".audit-result-tree");
+ UI.panels.audits.showResults(UI.panels.audits._auditResultsTreeElement.firstChild().results);
+ var trees = UI.panels.audits.visibleView.element.querySelectorAll(".audit-result-tree");
for (var i = 0; i < trees.length; ++i) {
var liElements = trees[i].shadowRoot.querySelectorAll("li");
for (var j = 0; j < liElements.length; ++j) {
@@ -15,15 +15,15 @@ InspectorTest.collectAuditResults = function(callback)
}
}
InspectorTest.deprecatedRunAfterPendingDispatches(function() {
- InspectorTest.collectTextContent(WebInspector.panels.audits.visibleView.element, "");
+ InspectorTest.collectTextContent(UI.panels.audits.visibleView.element, "");
callback();
});
}
InspectorTest.launchAllAudits = function(shouldReload, callback)
{
- InspectorTest.addSniffer(WebInspector.AuditController.prototype, "_auditFinishedCallback", callback);
- var launcherView = WebInspector.panels.audits._launcherView;
+ InspectorTest.addSniffer(Audits.AuditController.prototype, "_auditFinishedCallback", callback);
+ var launcherView = UI.panels.audits._launcherView;
launcherView._selectAllClicked(true);
launcherView._auditPresentStateElement.checked = !shouldReload;
launcherView._launchButtonClicked();

Powered by Google App Engine
This is Rietveld 408576698