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