| OLD | NEW |
| 1 #!/usr/bin/env dart | 1 #!/usr/bin/env dart |
| 2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3 // for details. All rights reserved. Use of this source code is governed by a | 3 // for details. All rights reserved. Use of this source code is governed by a |
| 4 // BSD-style license that can be found in the LICENSE file. | 4 // BSD-style license that can be found in the LICENSE file. |
| 5 | 5 |
| 6 #library("dunit"); | 6 library dunit; |
| 7 | 7 |
| 8 typedef void Test(); | 8 typedef void Test(); |
| 9 typedef TestResult SynchTest(); | 9 typedef TestResult SynchTest(); |
| 10 typedef Future<TestResult> AsynchTest(); | 10 typedef Future<TestResult> AsynchTest(); |
| 11 | 11 |
| 12 class TestSuite { | 12 class TestSuite { |
| 13 TestSuite() : _tests = <SynchTest>[]; | 13 TestSuite() : _tests = <SynchTest>[]; |
| 14 | 14 |
| 15 void registerTestClass(TestClass tests) { | 15 void registerTestClass(TestClass tests) { |
| 16 tests.registerTests(this); | 16 tests.registerTests(this); |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 tearDown(); | 110 tearDown(); |
| 111 return new TestError(description, x, stacktrace); | 111 return new TestError(description, x, stacktrace); |
| 112 } | 112 } |
| 113 }); | 113 }); |
| 114 } | 114 } |
| 115 | 115 |
| 116 abstract void registerTests(TestSuite suite); | 116 abstract void registerTests(TestSuite suite); |
| 117 void setUp() {} | 117 void setUp() {} |
| 118 void tearDown() {} | 118 void tearDown() {} |
| 119 } | 119 } |
| OLD | NEW |