| 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 // This API is exploratory. | |
| 8 spawnDomFunction(Function topLevelFunction) => _Utils.spawnDomFunctionImpl(topLe
velFunction); | |
| 9 | |
| 10 // testRunner implementation. | |
| 11 // FIXME: provide a separate lib for testRunner. | |
| 12 | |
| 13 var _testRunner; | |
| 14 | |
| 15 TestRunner get testRunner { | |
| 16 if (_testRunner == null) | |
| 17 _testRunner = new TestRunner._(_NPObject.retrieve("testRunner")); | |
| 18 return _testRunner; | |
| 19 } | |
| 20 | |
| 21 class TestRunner { | |
| 22 final _NPObject _npObject; | |
| 23 | |
| 24 TestRunner._(this._npObject); | |
| 25 | |
| 26 display() => _npObject.invoke('display'); | |
| 27 dumpAsText() => _npObject.invoke('dumpAsText'); | |
| 28 notifyDone() => _npObject.invoke('notifyDone'); | |
| 29 setCanOpenWindows() => _npObject.invoke('setCanOpenWindows'); | |
| 30 waitUntilDone() => _npObject.invoke('waitUntilDone'); | |
| 31 } | |
| OLD | NEW |