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

Unified Diff: tests/html/xmlelement_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/xmlelement_test.dart
diff --git a/tests/html/xmlelement_test.dart b/tests/html/xmlelement_test.dart
index 882c7c0ed301c570f6b44c8ee7cb4874d0fddf34..d3b1437c2eda67e26da6d6d885d6c6c5e354a838 100644
--- a/tests/html/xmlelement_test.dart
+++ b/tests/html/xmlelement_test.dart
@@ -29,12 +29,12 @@ main() {
test('with too many nodes', () {
Expect.throws(() => new XMLElement.xml("<xml></xml>foo"),
- (e) => e is IllegalArgumentException);
+ (e) => e is ArgumentError);
});
test('with a parse error', () {
Expect.throws(() => new XMLElement.xml("<xml></xml>>"),
- (e) => e is IllegalArgumentException);
+ (e) => e is ArgumentError);
});
test('with a PARSERERROR tag', () {

Powered by Google App Engine
This is Rietveld 408576698