Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1031)

Unified Diff: lib/unittest.dart

Issue 869053002: unittest: refactor ahead of matcher changes (Closed) Base URL: https://github.com/dart-lang/unittest.git@master
Patch Set: nits Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/throws_matchers.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/unittest.dart
diff --git a/lib/unittest.dart b/lib/unittest.dart
index 791f0f553d5195ec1f6065fc913618955cdd2dc1..bc1d4dc1ddab2d917cc5bf1efa6654f247c0e704 100644
--- a/lib/unittest.dart
+++ b/lib/unittest.dart
@@ -6,22 +6,47 @@ library unittest;
import 'dart:async';
import 'dart:collection';
-import 'dart:isolate';
-import 'package:matcher/matcher.dart'
- show
- DefaultFailureHandler,
+import 'src/configuration.dart';
+import 'src/expect.dart';
+import 'src/utils.dart';
+
+export 'package:matcher/matcher.dart'
+ hide
+ completes,
+ completion,
configureExpectFailureHandler,
+ DefaultFailureHandler,
+ ErrorFormatter,
+ expect,
+ fail,
+ FailureHandler,
+ getOrCreateExpectFailureHandler,
+ prints,
TestFailure,
- wrapAsync;
-export 'package:matcher/matcher.dart';
-
-import 'src/utils.dart';
+ Throws,
+ throws,
+ throwsA,
+ throwsArgumentError,
+ throwsConcurrentModificationError,
+ throwsCyclicInitializationError,
+ throwsException,
+ throwsFormatException,
+ throwsNoSuchMethodError,
+ throwsNullThrownError,
+ throwsRangeError,
+ throwsStateError,
+ throwsUnimplementedError,
+ throwsUnsupportedError;
-import 'src/configuration.dart';
export 'src/configuration.dart';
+export 'src/expect.dart';
+export 'src/simple_configuration.dart';
+export 'src/future_matchers.dart';
+export 'src/prints_matcher.dart';
+export 'src/throws_matcher.dart';
+export 'src/throws_matchers.dart';
-part 'src/simple_configuration.dart';
part 'src/group_context.dart';
part 'src/spread_args_helper.dart';
part 'src/test_case.dart';
@@ -410,8 +435,6 @@ void _ensureInitialized(bool configAutoStart) {
return;
}
_environment.initialized = true;
- // Hook our async guard into the matcher library.
- wrapAsync = (f, [id]) => expectAsync(f, id: id);
_environment.uncaughtErrorMessage = null;
« no previous file with comments | « lib/src/throws_matchers.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698