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

Unified Diff: pkg/matcher/test/test_utils.dart

Issue 208823005: pkg/matcher (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nit Created 6 years, 9 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 | « pkg/matcher/test/test_common.dart ('k') | pkg/pkg.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/matcher/test/test_utils.dart
diff --git a/pkg/unittest/test/test_utils.dart b/pkg/matcher/test/test_utils.dart
similarity index 91%
copy from pkg/unittest/test/test_utils.dart
copy to pkg/matcher/test/test_utils.dart
index 783f71ba91839e7310c9a119de5fb3e36d5906c2..fba527afbc451f1a8ba2dd8d232a0a19489eed57 100644
--- a/pkg/unittest/test/test_utils.dart
+++ b/pkg/matcher/test/test_utils.dart
@@ -4,7 +4,8 @@
library test_utils;
-import 'package:unittest/unittest.dart';
+import 'package:matcher/matcher.dart';
+import 'package:unittest/unittest.dart' as ut;
import 'dart:async';
@@ -41,7 +42,7 @@ void shouldFail(value, Matcher matcher, expected, {bool isAsync: false}) {
}
if (isAsync) {
- Timer.run(expectAsync(afterTest));
+ Timer.run(ut.expectAsync(afterTest));
} else {
afterTest();
}
@@ -57,7 +58,7 @@ void shouldPass(value, Matcher matcher, {bool isAsync: false}) {
expect(errorCount, equals(0));
}
if (isAsync) {
- Timer.run(expectAsync(afterTest));
+ Timer.run(ut.expectAsync(afterTest));
} else {
afterTest();
}
« no previous file with comments | « pkg/matcher/test/test_common.dart ('k') | pkg/pkg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698