OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 @TestOn("vm") |
| 6 |
5 import 'dart:io'; | 7 import 'dart:io'; |
6 | 8 |
7 import 'package:path/path.dart' as p; | 9 import 'package:path/path.dart' as p; |
8 import 'package:unittest/src/util/io.dart'; | 10 import 'package:unittest/src/util/io.dart'; |
9 import 'package:unittest/unittest.dart'; | 11 import 'package:unittest/unittest.dart'; |
10 | 12 |
11 import '../io.dart'; | 13 import '../io.dart'; |
12 | 14 |
13 void main() { | 15 void main() { |
14 test("reports when no tests are run", () { | 16 test("reports when no tests are run", () { |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 // Un-indent the expected string. | 158 // Un-indent the expected string. |
157 var indentation = expected.indexOf(new RegExp("[^ ]")); | 159 var indentation = expected.indexOf(new RegExp("[^ ]")); |
158 expected = expected.split("\n").map((line) { | 160 expected = expected.split("\n").map((line) { |
159 if (line.isEmpty) return line; | 161 if (line.isEmpty) return line; |
160 return line.substring(indentation); | 162 return line.substring(indentation); |
161 }).join("\n"); | 163 }).join("\n"); |
162 | 164 |
163 expect(actual, equals(expected)); | 165 expect(actual, equals(expected)); |
164 }), completes); | 166 }), completes); |
165 } | 167 } |
OLD | NEW |