OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
| 5 part of html; |
| 6 |
5 // This API is exploratory. | 7 // This API is exploratory. |
6 spawnDomFunction(Function topLevelFunction) => _Utils.spawnDomFunctionImpl(topLe
velFunction); | 8 spawnDomFunction(Function topLevelFunction) => _Utils.spawnDomFunctionImpl(topLe
velFunction); |
7 | 9 |
8 // testRunner implementation. | 10 // testRunner implementation. |
9 // FIXME: provide a separate lib for testRunner. | 11 // FIXME: provide a separate lib for testRunner. |
10 | 12 |
11 var _testRunner; | 13 var _testRunner; |
12 | 14 |
13 TestRunner get testRunner { | 15 TestRunner get testRunner { |
14 if (_testRunner == null) | 16 if (_testRunner == null) |
15 _testRunner = new TestRunner._(_NPObject.retrieve("testRunner")); | 17 _testRunner = new TestRunner._(_NPObject.retrieve("testRunner")); |
16 return _testRunner; | 18 return _testRunner; |
17 } | 19 } |
18 | 20 |
19 class TestRunner { | 21 class TestRunner { |
20 final _NPObject _npObject; | 22 final _NPObject _npObject; |
21 | 23 |
22 TestRunner._(this._npObject); | 24 TestRunner._(this._npObject); |
23 | 25 |
24 display() => _npObject.invoke('display'); | 26 display() => _npObject.invoke('display'); |
25 dumpAsText() => _npObject.invoke('dumpAsText'); | 27 dumpAsText() => _npObject.invoke('dumpAsText'); |
26 notifyDone() => _npObject.invoke('notifyDone'); | 28 notifyDone() => _npObject.invoke('notifyDone'); |
27 setCanOpenWindows() => _npObject.invoke('setCanOpenWindows'); | 29 setCanOpenWindows() => _npObject.invoke('setCanOpenWindows'); |
28 waitUntilDone() => _npObject.invoke('waitUntilDone'); | 30 waitUntilDone() => _npObject.invoke('waitUntilDone'); |
29 } | 31 } |
OLD | NEW |