| 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.test.utils; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 import 'dart:collection'; | 6 import 'dart:collection'; |
| 9 | 7 |
| 10 import 'package:test/src/backend/declarer.dart'; | 8 import 'package:test/src/backend/declarer.dart'; |
| 11 import 'package:test/src/backend/group.dart'; | 9 import 'package:test/src/backend/group.dart'; |
| 12 import 'package:test/src/backend/group_entry.dart'; | 10 import 'package:test/src/backend/group_entry.dart'; |
| 13 import 'package:test/src/backend/invoker.dart'; | 11 import 'package:test/src/backend/invoker.dart'; |
| 14 import 'package:test/src/backend/live_test.dart'; | 12 import 'package:test/src/backend/live_test.dart'; |
| 15 import 'package:test/src/backend/metadata.dart'; | 13 import 'package:test/src/backend/metadata.dart'; |
| 16 import 'package:test/src/backend/state.dart'; | 14 import 'package:test/src/backend/state.dart'; |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 return declarer.build().entries; | 304 return declarer.build().entries; |
| 307 } | 305 } |
| 308 | 306 |
| 309 /// Runs [body] with a declarer and returns an engine that runs those tests. | 307 /// Runs [body] with a declarer and returns an engine that runs those tests. |
| 310 Engine declareEngine(void body()) { | 308 Engine declareEngine(void body()) { |
| 311 var declarer = new Declarer()..declare(body); | 309 var declarer = new Declarer()..declare(body); |
| 312 return new Engine.withSuites([ | 310 return new Engine.withSuites([ |
| 313 new RunnerSuite(const VMEnvironment(), declarer.build()) | 311 new RunnerSuite(const VMEnvironment(), declarer.build()) |
| 314 ]); | 312 ]); |
| 315 } | 313 } |
| OLD | NEW |