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 // TODO(nweiz): move this to the same place as unittest.dart and | 5 // TODO(nweiz): move this to the same place as unittest_html.dart and |
6 // unittest_vm.dart. Currently, that leads to import conflicts relating to the | 6 // unittest_vm.dart. Currently, that leads to import conflicts relating to the |
7 // node library. | 7 // node library. |
8 #library("unittest"); | 8 #library("unittest"); |
9 | 9 |
10 #import('../../../lib/node/node.dart'); | 10 #import('../../../lib/node/node.dart'); |
11 #source('../../../../client/testing/unittest/shared.dart'); | 11 #source('../../../../client/testing/unittest/shared.dart'); |
12 | 12 |
13 _platformInitialize() { | 13 _platformInitialize() { |
14 // Do nothing. | 14 // Do nothing. |
15 } | 15 } |
(...skipping 21 matching lines...) Expand all Loading... |
37 | 37 |
38 if (testsPassed == 0 && testsFailed == 0 && testsErrors == 0) { | 38 if (testsPassed == 0 && testsFailed == 0 && testsErrors == 0) { |
39 print('No tests found.'); | 39 print('No tests found.'); |
40 } else if (testsFailed == 0 && testsErrors == 0) { | 40 } else if (testsFailed == 0 && testsErrors == 0) { |
41 print('All $testsPassed tests passed.'); | 41 print('All $testsPassed tests passed.'); |
42 } else { | 42 } else { |
43 print('$testsPassed PASSED, $testsFailed FAILED, $testsErrors ERRORS'); | 43 print('$testsPassed PASSED, $testsFailed FAILED, $testsErrors ERRORS'); |
44 process.exit(1); | 44 process.exit(1); |
45 } | 45 } |
46 } | 46 } |
OLD | NEW |