Index: tests/corelib_strong/duration2_test.dart |
diff --git a/tests/corelib_strong/duration2_test.dart b/tests/corelib_strong/duration2_test.dart |
index 5bdc885223ca1f844f26812513735e3894d550ed..7bfebb09b7a518da4441661eb2cebb2b7bf257de 100644 |
--- a/tests/corelib_strong/duration2_test.dart |
+++ b/tests/corelib_strong/duration2_test.dart |
@@ -13,21 +13,15 @@ main() { |
String longString = "str" * 1000; |
Expect.throws(() => new Duration(days: longString), |
- (e) => e is ArgumentError || e is TypeError || |
- e is NoSuchMethodError); |
+ (e) => e is ArgumentError || e is TypeError || e is NoSuchMethodError); |
Expect.throws(() => new Duration(hours: longString), |
- (e) => e is ArgumentError || e is TypeError || |
- e is NoSuchMethodError); |
+ (e) => e is ArgumentError || e is TypeError || e is NoSuchMethodError); |
Expect.throws(() => new Duration(minutes: longString), |
- (e) => e is ArgumentError || e is TypeError || |
- e is NoSuchMethodError); |
+ (e) => e is ArgumentError || e is TypeError || e is NoSuchMethodError); |
Expect.throws(() => new Duration(seconds: longString), |
- (e) => e is ArgumentError || e is TypeError || |
- e is NoSuchMethodError); |
+ (e) => e is ArgumentError || e is TypeError || e is NoSuchMethodError); |
Expect.throws(() => new Duration(milliseconds: longString), |
- (e) => e is ArgumentError || e is TypeError || |
- e is NoSuchMethodError); |
+ (e) => e is ArgumentError || e is TypeError || e is NoSuchMethodError); |
Expect.throws(() => new Duration(microseconds: longString), |
- (e) => e is ArgumentError || e is TypeError || |
- e is NoSuchMethodError); |
+ (e) => e is ArgumentError || e is TypeError || e is NoSuchMethodError); |
} |