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 library test.runner.load_suite; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 | 6 |
9 import 'package:stack_trace/stack_trace.dart'; | 7 import 'package:stack_trace/stack_trace.dart'; |
10 | 8 |
11 import '../../test.dart'; | 9 import '../../test.dart'; |
12 import '../backend/group.dart'; | 10 import '../backend/group.dart'; |
13 import '../backend/invoker.dart'; | 11 import '../backend/invoker.dart'; |
14 import '../backend/metadata.dart'; | 12 import '../backend/metadata.dart'; |
15 import '../backend/suite.dart'; | 13 import '../backend/suite.dart'; |
16 import '../backend/test.dart'; | 14 import '../backend/test.dart'; |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 156 |
159 if (liveTest.errors.isEmpty) return await suite; | 157 if (liveTest.errors.isEmpty) return await suite; |
160 | 158 |
161 var error = liveTest.errors.first; | 159 var error = liveTest.errors.first; |
162 await new Future.error(error.error, error.stackTrace); | 160 await new Future.error(error.error, error.stackTrace); |
163 throw 'unreachable'; | 161 throw 'unreachable'; |
164 } | 162 } |
165 | 163 |
166 Future close() async {} | 164 Future close() async {} |
167 } | 165 } |
OLD | NEW |