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

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

Issue 199793010: pkg/matcher: test cleanup (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nits 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/matcher/test/matchers_unminified_test.dart b/pkg/matcher/test/matchers_unminified_test.dart
index e0629f02f556db8c685c3c7c132b947822839119..28d97ab2701dd8cd36e162460dc0b8dca7acd02a 100644
--- a/pkg/matcher/test/matchers_unminified_test.dart
+++ b/pkg/matcher/test/matchers_unminified_test.dart
@@ -7,8 +7,10 @@
// mangled. A version of this file that works in minified dart2js is in
// matchers_minified_test.dart.
+library matcher.unminified_test;
+
import 'package:matcher/matcher.dart';
-import 'package:unittest/unittest.dart' as ut;
+import 'package:unittest/unittest.dart' show group, test;
import 'test_common.dart';
import 'test_utils.dart';
@@ -16,8 +18,8 @@ import 'test_utils.dart';
void main() {
initUtils();
- ut.group('Core matchers', () {
- ut.test('throwsFormatException', () {
+ group('Core matchers', () {
+ test('throwsFormatException', () {
shouldPass(() { throw new FormatException(''); },
throwsFormatException);
shouldFail(() { throw new Exception(); },
@@ -29,7 +31,7 @@ void main() {
});
- ut.test('throwsArgumentError', () {
+ test('throwsArgumentError', () {
shouldPass(() { throw new ArgumentError(''); },
throwsArgumentError);
shouldFail(() { throw new Exception(); },
@@ -40,7 +42,7 @@ void main() {
r"Which: threw \?:<Exception>"));
});
- ut.test('throwsRangeError', () {
+ test('throwsRangeError', () {
shouldPass(() { throw new RangeError(0); },
throwsRangeError);
shouldFail(() { throw new Exception(); },
@@ -51,7 +53,7 @@ void main() {
r"Which: threw \?:<Exception>"));
});
- ut.test('throwsNoSuchMethodError', () {
+ test('throwsNoSuchMethodError', () {
shouldPass(() {
throw new NoSuchMethodError(null, const Symbol(''), null, null);
}, throwsNoSuchMethodError);
@@ -63,7 +65,7 @@ void main() {
r"Which: threw \?:<Exception>"));
});
- ut.test('throwsUnimplementedError', () {
+ test('throwsUnimplementedError', () {
shouldPass(() { throw new UnimplementedError(''); },
throwsUnimplementedError);
shouldFail(() { throw new Exception(); },
@@ -74,7 +76,7 @@ void main() {
r"Which: threw \?:<Exception>"));
});
- ut.test('throwsUnsupportedError', () {
+ test('throwsUnsupportedError', () {
shouldPass(() { throw new UnsupportedError(''); },
throwsUnsupportedError);
shouldFail(() { throw new Exception(); },
@@ -85,7 +87,7 @@ void main() {
r"Which: threw \?:<Exception>"));
});
- ut.test('throwsStateError', () {
+ test('throwsStateError', () {
shouldPass(() { throw new StateError(''); },
throwsStateError);
shouldFail(() { throw new Exception(); },
@@ -97,8 +99,8 @@ void main() {
});
});
- ut.group('Iterable Matchers', () {
- ut.test('isEmpty', () {
+ group('Iterable Matchers', () {
+ test('isEmpty', () {
var d = new SimpleIterable(0);
var e = new SimpleIterable(1);
shouldPass(d, isEmpty);
@@ -106,7 +108,7 @@ void main() {
"Actual: SimpleIterable:[1]");
});
- ut.test('contains', () {
+ test('contains', () {
var d = new SimpleIterable(3);
shouldPass(d, contains(2));
shouldFail(d, contains(5),
@@ -115,8 +117,8 @@ void main() {
});
});
- ut.group('Feature Matchers', () {
- ut.test("Feature Matcher", () {
+ group('Feature Matchers', () {
+ 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