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

Unified Diff: pkg/matcher/test/matchers_unminified_test.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/matchers_test.dart ('k') | pkg/matcher/test/mirror_matchers_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/matcher/test/matchers_unminified_test.dart
diff --git a/pkg/unittest/test/matchers_unminified_test.dart b/pkg/matcher/test/matchers_unminified_test.dart
similarity index 87%
copy from pkg/unittest/test/matchers_unminified_test.dart
copy to pkg/matcher/test/matchers_unminified_test.dart
index 3d7c322a8e4b3551bc0e1111f8b6793e08a1494f..e0629f02f556db8c685c3c7c132b947822839119 100644
--- a/pkg/unittest/test/matchers_unminified_test.dart
+++ b/pkg/matcher/test/matchers_unminified_test.dart
@@ -7,7 +7,8 @@
// mangled. A version of this file that works in minified dart2js is in
// matchers_minified_test.dart.
-import 'package:unittest/unittest.dart';
+import 'package:matcher/matcher.dart';
+import 'package:unittest/unittest.dart' as ut;
import 'test_common.dart';
import 'test_utils.dart';
@@ -15,8 +16,8 @@ import 'test_utils.dart';
void main() {
initUtils();
- group('Core matchers', () {
- test('throwsFormatException', () {
+ ut.group('Core matchers', () {
+ ut.test('throwsFormatException', () {
shouldPass(() { throw new FormatException(''); },
throwsFormatException);
shouldFail(() { throw new Exception(); },
@@ -28,7 +29,7 @@ void main() {
});
- test('throwsArgumentError', () {
+ ut.test('throwsArgumentError', () {
shouldPass(() { throw new ArgumentError(''); },
throwsArgumentError);
shouldFail(() { throw new Exception(); },
@@ -39,7 +40,7 @@ void main() {
r"Which: threw \?:<Exception>"));
});
- test('throwsRangeError', () {
+ ut.test('throwsRangeError', () {
shouldPass(() { throw new RangeError(0); },
throwsRangeError);
shouldFail(() { throw new Exception(); },
@@ -50,7 +51,7 @@ void main() {
r"Which: threw \?:<Exception>"));
});
- test('throwsNoSuchMethodError', () {
+ ut.test('throwsNoSuchMethodError', () {
shouldPass(() {
throw new NoSuchMethodError(null, const Symbol(''), null, null);
}, throwsNoSuchMethodError);
@@ -62,7 +63,7 @@ void main() {
r"Which: threw \?:<Exception>"));
});
- test('throwsUnimplementedError', () {
+ ut.test('throwsUnimplementedError', () {
shouldPass(() { throw new UnimplementedError(''); },
throwsUnimplementedError);
shouldFail(() { throw new Exception(); },
@@ -73,7 +74,7 @@ void main() {
r"Which: threw \?:<Exception>"));
});
- test('throwsUnsupportedError', () {
+ ut.test('throwsUnsupportedError', () {
shouldPass(() { throw new UnsupportedError(''); },
throwsUnsupportedError);
shouldFail(() { throw new Exception(); },
@@ -84,7 +85,7 @@ void main() {
r"Which: threw \?:<Exception>"));
});
- test('throwsStateError', () {
+ ut.test('throwsStateError', () {
shouldPass(() { throw new StateError(''); },
throwsStateError);
shouldFail(() { throw new Exception(); },
@@ -96,8 +97,8 @@ void main() {
});
});
- group('Iterable Matchers', () {
- test('isEmpty', () {
+ ut.group('Iterable Matchers', () {
+ ut.test('isEmpty', () {
var d = new SimpleIterable(0);
var e = new SimpleIterable(1);
shouldPass(d, isEmpty);
@@ -105,7 +106,7 @@ void main() {
"Actual: SimpleIterable:[1]");
});
- test('contains', () {
+ ut.test('contains', () {
var d = new SimpleIterable(3);
shouldPass(d, contains(2));
shouldFail(d, contains(5),
@@ -114,8 +115,8 @@ void main() {
});
});
- group('Feature Matchers', () {
- test("Feature Matcher", () {
+ ut.group('Feature Matchers', () {
+ ut.test("Feature Matcher", () {
var w = new Widget();
w.price = 10;
shouldPass(w, new HasPrice(10));
« no previous file with comments | « pkg/matcher/test/matchers_test.dart ('k') | pkg/matcher/test/mirror_matchers_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698