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)); |