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 import 'dart:io'; | 5 import 'dart:io'; |
6 | 6 |
7 import 'package:path/path.dart' as p; | 7 import 'package:path/path.dart' as p; |
8 import 'package:unittest/src/backend/state.dart'; | 8 import 'package:unittest/src/backend/state.dart'; |
9 import 'package:unittest/src/runner/test_platform.dart'; | 9 import 'package:unittest/src/backend/test_platform.dart'; |
10 import 'package:unittest/src/runner/loader.dart'; | 10 import 'package:unittest/src/runner/loader.dart'; |
11 import 'package:unittest/unittest.dart'; | 11 import 'package:unittest/unittest.dart'; |
12 | 12 |
13 import '../../io.dart'; | 13 import '../../io.dart'; |
14 import '../../utils.dart'; | 14 import '../../utils.dart'; |
15 | 15 |
16 Loader _loader; | 16 Loader _loader; |
17 String _sandbox; | 17 String _sandbox; |
18 | 18 |
19 final _tests = """ | 19 final _tests = """ |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 for (var suite in suites) { | 105 for (var suite in suites) { |
106 expect(suite.tests, hasLength(3)); | 106 expect(suite.tests, hasLength(3)); |
107 expect(suite.tests[0].name, equals("success")); | 107 expect(suite.tests[0].name, equals("success")); |
108 expect(suite.tests[1].name, equals("failure")); | 108 expect(suite.tests[1].name, equals("failure")); |
109 expect(suite.tests[2].name, equals("error")); | 109 expect(suite.tests[2].name, equals("error")); |
110 } | 110 } |
111 }).whenComplete(loader.close); | 111 }).whenComplete(loader.close); |
112 }); | 112 }); |
113 } | 113 } |
OLD | NEW |