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

Unified Diff: LayoutTests/http/tests/inspector/inspector-test.js

Issue 1064853002: Speculative attempt to unflake inspector/console/console-native-function.html (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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 | « LayoutTests/http/tests/inspector/console-test.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/inspector/inspector-test.js
diff --git a/LayoutTests/http/tests/inspector/inspector-test.js b/LayoutTests/http/tests/inspector/inspector-test.js
index f8b587641acb4cba42a9e8fc2bfba943522fb8e3..2f7a2b65bdf42d698936c30ed8d755f9752d7b9f 100644
--- a/LayoutTests/http/tests/inspector/inspector-test.js
+++ b/LayoutTests/http/tests/inspector/inspector-test.js
@@ -765,6 +765,13 @@ InspectorTest.preloadPanel = function(panelName)
InspectorTest._panelsToPreload.push(panelName);
}
+InspectorTest._modulesToPreload = [];
+
+InspectorTest.preloadModule = function(moduleName)
+{
+ InspectorTest._modulesToPreload.push(moduleName);
+}
+
}; // initialize_InspectorTest
var initializeCallId = 0;
@@ -847,6 +854,9 @@ function runTest(enableWatchDogWhileDebugging)
var lastLoadedPanel;
var promises = [];
+ for (var moduleName of InspectorTest._modulesToPreload)
sergeyv 2015/04/08 09:47:33 should we merge modulesToPreload and panelsToPrel
+ promises.push(self.runtime.loadModulePromise(moduleName));
+
for (var i = 0; i < InspectorTest._panelsToPreload.length; ++i) {
lastLoadedPanel = InspectorTest._panelsToPreload[i];
promises.push(WebInspector.inspectorView.panel(lastLoadedPanel));
« no previous file with comments | « LayoutTests/http/tests/inspector/console-test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698