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

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

Issue 460323002: DevTools: Allow dynamic module registration only in tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | LayoutTests/http/tests/inspector/layers-test.js » ('j') | 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 6a3b9a4e7d6302fbea0d347d06c49ba7823955ce..e085f43a5d8851fcfa41438c939c99709740e6e1 100644
--- a/LayoutTests/http/tests/inspector/inspector-test.js
+++ b/LayoutTests/http/tests/inspector/inspector-test.js
@@ -240,6 +240,13 @@ InspectorTest.assertGreaterOrEqual = function(a, b, message)
InspectorTest.addResult("FAILED: " + (message ? message + ": " : "") + a + " < " + b);
}
+InspectorTest.registerModule = function(moduleName, loadImmediately)
+{
+ runtime._registerModule(moduleName);
+ if (loadImmediately)
+ runtime.loadModule(moduleName);
+}
+
InspectorTest.navigate = function(url, callback)
{
InspectorTest._pageLoadedCallback = InspectorTest.safeWrap(callback);
« no previous file with comments | « no previous file | LayoutTests/http/tests/inspector/layers-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698