| 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:async'; | 5 import 'dart:async'; |
| 6 import 'dart:collection'; | 6 import 'dart:collection'; |
| 7 | 7 |
| 8 import 'package:test/src/backend/declarer.dart'; | 8 import 'package:test/src/backend/declarer.dart'; |
| 9 import 'package:test/src/backend/group.dart'; | 9 import 'package:test/src/backend/group.dart'; |
| 10 import 'package:test/src/backend/group_entry.dart'; | 10 import 'package:test/src/backend/group_entry.dart'; |
| 11 import 'package:test/src/backend/invoker.dart'; | 11 import 'package:test/src/backend/invoker.dart'; |
| 12 import 'package:test/src/backend/live_test.dart'; | 12 import 'package:test/src/backend/live_test.dart'; |
| 13 import 'package:test/src/backend/metadata.dart'; | 13 import 'package:test/src/backend/metadata.dart'; |
| 14 import 'package:test/src/backend/state.dart'; | 14 import 'package:test/src/backend/state.dart'; |
| 15 import 'package:test/src/backend/suite.dart'; | 15 import 'package:test/src/backend/suite.dart'; |
| 16 import 'package:test/src/runner/application_exception.dart'; | 16 import 'package:test/src/runner/application_exception.dart'; |
| 17 import 'package:test/src/runner/engine.dart'; | 17 import 'package:test/src/runner/engine.dart'; |
| 18 import 'package:test/src/runner/load_exception.dart'; | 18 import 'package:test/src/runner/load_exception.dart'; |
| 19 import 'package:test/src/runner/plugin/environment.dart'; |
| 19 import 'package:test/src/runner/runner_suite.dart'; | 20 import 'package:test/src/runner/runner_suite.dart'; |
| 20 import 'package:test/src/runner/vm/environment.dart'; | |
| 21 import 'package:test/src/util/remote_exception.dart'; | 21 import 'package:test/src/util/remote_exception.dart'; |
| 22 import 'package:test/test.dart'; | 22 import 'package:test/test.dart'; |
| 23 | 23 |
| 24 /// The string representation of an untyped closure with no arguments. | 24 /// The string representation of an untyped closure with no arguments. |
| 25 /// | 25 /// |
| 26 /// This differs between dart2js and the VM. | 26 /// This differs between dart2js and the VM. |
| 27 final String closureString = (() {}).toString(); | 27 final String closureString = (() {}).toString(); |
| 28 | 28 |
| 29 // The last state change detected via [expectStates]. | 29 // The last state change detected via [expectStates]. |
| 30 State lastState; | 30 State lastState; |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 /// Runs [body] with a declarer and returns the declared entries. | 301 /// Runs [body] with a declarer and returns the declared entries. |
| 302 List<GroupEntry> declare(void body()) { | 302 List<GroupEntry> declare(void body()) { |
| 303 var declarer = new Declarer()..declare(body); | 303 var declarer = new Declarer()..declare(body); |
| 304 return declarer.build().entries; | 304 return declarer.build().entries; |
| 305 } | 305 } |
| 306 | 306 |
| 307 /// 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. |
| 308 Engine declareEngine(void body()) { | 308 Engine declareEngine(void body()) { |
| 309 var declarer = new Declarer()..declare(body); | 309 var declarer = new Declarer()..declare(body); |
| 310 return new Engine.withSuites([ | 310 return new Engine.withSuites([ |
| 311 new RunnerSuite(const VMEnvironment(), declarer.build()) | 311 new RunnerSuite(const PluginEnvironment(), declarer.build()) |
| 312 ]); | 312 ]); |
| 313 } | 313 } |
| OLD | NEW |