Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/unit_test_runner.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/unit_test_runner.js b/third_party/WebKit/Source/devtools/front_end/unit_test_runner.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ff9b4e4eb5fb4267736c70c4bda38eb76db2785e |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/devtools/front_end/unit_test_runner.js |
| @@ -0,0 +1,18 @@ |
| +// Copyright 2016 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 (self.testRunner) { |
| + testRunner.dumpAsText(); |
| + testRunner.waitUntilDone(); |
| +} |
| + |
| +(function() { |
| + Runtime.startApplication('unit_test_runner').then(() => initializeTest()); |
| + function initializeTest() { |
|
pfeldman
2016/11/29 23:06:17
test runner module should do this on its own.
chenwilliam
2016/11/30 02:21:02
Done - moved logic to new shell module now.
|
| + if (self.document.readyState === 'complete' || self.document.readyState === 'interactive') |
| + TestRunner.initializeUnitTest(); |
| + else |
| + document.addEventListener('DOMContentLoaded', () => TestRunner.initializeUnitTest()); |
| + } |
| +})(); |