| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 part of html; | |
| 6 | |
| 7 // testRunner implementation. | |
| 8 // FIXME: provide a separate lib for testRunner. | |
| 9 | |
| 10 var _testRunner; | |
| 11 | |
| 12 TestRunner get testRunner { | |
| 13 if (_testRunner == null) | |
| 14 _testRunner = new TestRunner._(_NPObject.retrieve("testRunner")); | |
| 15 return _testRunner; | |
| 16 } | |
| 17 | |
| 18 class TestRunner { | |
| 19 final _NPObject _npObject; | |
| 20 | |
| 21 TestRunner._(this._npObject); | |
| 22 | |
| 23 display() => _npObject.invoke('display'); | |
| 24 dumpAsText() => _npObject.invoke('dumpAsText'); | |
| 25 notifyDone() => _npObject.invoke('notifyDone'); | |
| 26 setCanOpenWindows() => _npObject.invoke('setCanOpenWindows'); | |
| 27 waitUntilDone() => _npObject.invoke('waitUntilDone'); | |
| 28 } | |
| OLD | NEW |