Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 if (self.testRunner) { | |
| 6 testRunner.dumpAsText(); | |
| 7 testRunner.waitUntilDone(); | |
| 8 } | |
| 9 | |
| 10 (function() { | |
| 11 Runtime.startApplication('unit_test_runner').then(() => initializeTest()); | |
| 12 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.
| |
| 13 if (self.document.readyState === 'complete' || self.document.readyState === 'interactive') | |
| 14 TestRunner.initializeUnitTest(); | |
| 15 else | |
| 16 document.addEventListener('DOMContentLoaded', () => TestRunner.initializeU nitTest()); | |
| 17 } | |
| 18 })(); | |
| OLD | NEW |