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 #library("TestFramework"); | 5 #library("TestFramework"); |
6 #import("dart:coreimpl"); | 6 #import("dart:coreimpl"); |
| 7 #import("dart:isolate"); |
7 | 8 |
8 | 9 |
9 typedef void AsynchronousTestFunction(TestExpectation check); | 10 typedef void AsynchronousTestFunction(TestExpectation check); |
10 | 11 |
11 | 12 |
12 void runTests(List tests, [bool guarded = true]) { | 13 void runTests(List tests, [bool guarded = true]) { |
13 TestRunner runner = new TestRunner(new TestSuite(tests), guarded); | 14 TestRunner runner = new TestRunner(new TestSuite(tests), guarded); |
14 TestResult result = new TestResult(runner); | 15 TestResult result = new TestResult(runner); |
15 runner.run(result); | 16 runner.run(result); |
16 } | 17 } |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 void performTest() { | 266 void performTest() { |
266 Expect.fail('performTest called in AsynchronousTestCase'); | 267 Expect.fail('performTest called in AsynchronousTestCase'); |
267 } | 268 } |
268 | 269 |
269 AsynchronousTestFunction test; | 270 AsynchronousTestFunction test; |
270 | 271 |
271 static int running = 0; | 272 static int running = 0; |
272 static ReceivePort keepalive = null; | 273 static ReceivePort keepalive = null; |
273 | 274 |
274 } | 275 } |
OLD | NEW |