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

Unified Diff: Source/devtools/front_end/devtools_app/UITests.js

Issue 725583003: [DevTools] Prepare to pass modified InspectorFrontendHost to inspector app. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed comment Created 6 years, 1 month 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/devtools_app/UITests.js
diff --git a/Source/devtools/front_end/devtools_app/UITests.js b/Source/devtools/front_end/devtools_app/UITests.js
new file mode 100644
index 0000000000000000000000000000000000000000..c6ed7be765e7ba3e14dd7fe3ad452051f5101375
--- /dev/null
+++ b/Source/devtools/front_end/devtools_app/UITests.js
@@ -0,0 +1,25 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+if (window.domAutomationController) {
+ var uiTests = {};
+
+ uiTests.runTest = function(name)
+ {
+ if (uiTests._testSuite)
+ uiTests._testSuite._runTest(name);
+ else
+ uiTests._pendingTestName = name;
+ };
+
+ uiTests.testSuiteReady = function(testSuiteConstructor)
+ {
+ uiTests._testSuite = testSuiteConstructor(window.domAutomationController);
+ if (uiTests._pendingTestName) {
+ var name = uiTests._pendingTestName;
+ delete uiTests._pendingTestName;
+ uiTests._testSuite._runTest(name);
+ }
+ };
+}
« no previous file with comments | « Source/devtools/front_end/devtools_app/DevToolsApp.js ('k') | Source/devtools/front_end/devtools_app/module.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698