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

Unified Diff: tests/corelib/list_removeat_test.dart

Issue 11235054: Removed IllegalAccessException and UnsupportedOperationException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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/corelib/list_removeat_test.dart
diff --git a/tests/corelib/list_removeat_test.dart b/tests/corelib/list_removeat_test.dart
index 7010678a735d4d012fe461373c72bf373c5ed2f8..c1511c08810c17ead348b5c2d21e1ab60e212f58 100644
--- a/tests/corelib/list_removeat_test.dart
+++ b/tests/corelib/list_removeat_test.dart
@@ -45,13 +45,13 @@ void main() {
var l2 = new List(5);
for (var i = 0; i < 5; i++) l2[i] = i;
Expect.throws(() { l2.removeAt(2); },
- (e) => e is UnsupportedOperationException,
+ (e) => e is StateError,
"fixed-length");
// Unmodifiable list.
var l3 = const [0, 1, 2, 3, 4];
Expect.throws(() { l3.removeAt(2); },
- (e) => e is UnsupportedOperationException,
+ (e) => e is StateError,
"unmodifiable");
// Empty list is not special.

Powered by Google App Engine
This is Rietveld 408576698