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

Unified Diff: tests/html/svgelement_test.dart

Issue 10989013: Change IllegalArgumentException to ArgumentError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated co19 test expectations. Created 8 years, 3 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
Index: tests/html/svgelement_test.dart
diff --git a/tests/html/svgelement_test.dart b/tests/html/svgelement_test.dart
index 3727054510902982ae73cccd0f08409940a7a00a..9892601934d7e7674ef7d9f50bef46b63c4cbfa7 100644
--- a/tests/html/svgelement_test.dart
+++ b/tests/html/svgelement_test.dart
@@ -50,13 +50,13 @@ main() {
test('empty', () {
Expect.throws(() => new SVGElement.svg(""),
- (e) => e is IllegalArgumentException);
+ (e) => e is ArgumentError);
});
test('too many elements', () {
Expect.throws(
() => new SVGElement.svg("<circle></circle><path></path>"),
- (e) => e is IllegalArgumentException);
+ (e) => e is ArgumentError);
});
});

Powered by Google App Engine
This is Rietveld 408576698