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

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: renamed to InspectorUILoadedForTests 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
« no previous file with comments | « no previous file | Source/devtools/front_end/common/NotificationService.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..3207b821cc7f17dcaf1977627a77fb2960934409 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.InspectorUILoadedForTests, runTests);
})();
« no previous file with comments | « no previous file | Source/devtools/front_end/common/NotificationService.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698