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

Unified Diff: Source/devtools/front_end/Tests.js

Issue 426553003: [DevTools] Run tests only after all UI bits are initialized. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months 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: Source/devtools/front_end/Tests.js
diff --git a/Source/devtools/front_end/Tests.js b/Source/devtools/front_end/Tests.js
index b69bea6a041a922e6a90b5ebda5e78711467d360..9427a6fcf10e3f31c43d511e953f10ccce0b75d9 100644
--- a/Source/devtools/front_end/Tests.js
+++ b/Source/devtools/front_end/Tests.js
@@ -885,12 +885,7 @@ function runTests()
new TestSuite().runTest(name);
}
-var oldLoadCompleted = InspectorFrontendAPI.loadCompleted;
-InspectorFrontendAPI.loadCompleted = function()
-{
- oldLoadCompleted.call(InspectorFrontendAPI);
- runTests();
-}
+WebInspector.notifications.addEventListener(WebInspector.NotificationService.Events.InspectorLoadedForTests, runTests);
vsevik 2014/07/29 08:42:15 Can we override WebInspector.app.presentUI instead
dgozman 2014/07/29 08:51:47 We would have to override all the WebInspector.App
})();

Powered by Google App Engine
This is Rietveld 408576698