Chromium Code Reviews| 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/configuration.dart'; | |
|
kevmoo
2016/07/06 21:34:27
now unused?
nweiz
2016/07/06 21:36:08
Done.
| |
| 17 import 'package:test/src/runner/engine.dart'; | 18 import 'package:test/src/runner/engine.dart'; |
| 18 import 'package:test/src/runner/load_exception.dart'; | 19 import 'package:test/src/runner/load_exception.dart'; |
| 19 import 'package:test/src/runner/plugin/environment.dart'; | 20 import 'package:test/src/runner/plugin/environment.dart'; |
| 20 import 'package:test/src/runner/runner_suite.dart'; | 21 import 'package:test/src/runner/runner_suite.dart'; |
| 21 import 'package:test/src/util/remote_exception.dart'; | 22 import 'package:test/src/util/remote_exception.dart'; |
| 22 import 'package:test/test.dart'; | 23 import 'package:test/test.dart'; |
| 23 | 24 |
| 24 /// The string representation of an untyped closure with no arguments. | 25 /// The string representation of an untyped closure with no arguments. |
| 25 /// | 26 /// |
| 26 /// This differs between dart2js and the VM. | 27 /// This differs between dart2js and the VM. |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 298 expect(success, isTrue); | 299 expect(success, isTrue); |
| 299 } | 300 } |
| 300 | 301 |
| 301 /// Runs [body] with a declarer and returns the declared entries. | 302 /// Runs [body] with a declarer and returns the declared entries. |
| 302 List<GroupEntry> declare(void body()) { | 303 List<GroupEntry> declare(void body()) { |
| 303 var declarer = new Declarer()..declare(body); | 304 var declarer = new Declarer()..declare(body); |
| 304 return declarer.build().entries; | 305 return declarer.build().entries; |
| 305 } | 306 } |
| 306 | 307 |
| 307 /// Runs [body] with a declarer and returns an engine that runs those tests. | 308 /// Runs [body] with a declarer and returns an engine that runs those tests. |
| 308 Engine declareEngine(void body()) { | 309 Engine declareEngine(void body(), {bool runSkipped: false}) { |
| 309 var declarer = new Declarer()..declare(body); | 310 var declarer = new Declarer()..declare(body); |
| 310 return new Engine.withSuites([ | 311 return new Engine.withSuites([ |
| 311 new RunnerSuite(const PluginEnvironment(), declarer.build()) | 312 new RunnerSuite(const PluginEnvironment(), declarer.build()) |
| 312 ]); | 313 ], runSkipped: runSkipped); |
| 313 } | 314 } |
| OLD | NEW |