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

Unified Diff: tests/corelib/duration2_test.dart

Issue 911913002: All nsm error in duration test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/duration2_test.dart
diff --git a/tests/corelib/duration2_test.dart b/tests/corelib/duration2_test.dart
index a1131171877eb4b8cd9ccf61a5a6c10f451ac338..5bdc885223ca1f844f26812513735e3894d550ed 100644
--- a/tests/corelib/duration2_test.dart
+++ b/tests/corelib/duration2_test.dart
@@ -13,13 +13,17 @@ main() {
String longString = "str" * 1000;
Expect.throws(() => new Duration(days: longString),
- (e) => e is ArgumentError || e is TypeError);
+ (e) => e is ArgumentError || e is TypeError ||
+ e is NoSuchMethodError);
Expect.throws(() => new Duration(hours: longString),
- (e) => e is ArgumentError || e is TypeError);
+ (e) => e is ArgumentError || e is TypeError ||
+ e is NoSuchMethodError);
Expect.throws(() => new Duration(minutes: longString),
- (e) => e is ArgumentError || e is TypeError);
+ (e) => e is ArgumentError || e is TypeError ||
+ e is NoSuchMethodError);
Expect.throws(() => new Duration(seconds: longString),
- (e) => e is ArgumentError || e is TypeError);
+ (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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698