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

Unified Diff: pkg/fixnum/test/int_32_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: pkg/fixnum/test/int_32_test.dart
diff --git a/pkg/fixnum/test/int_32_test.dart b/pkg/fixnum/test/int_32_test.dart
index edbb925e668ebca25b38bc3b1a0f0635384333e6..63a80f061e4affbbfc22a4ddc1605a20b2c9801e 100644
--- a/pkg/fixnum/test/int_32_test.dart
+++ b/pkg/fixnum/test/int_32_test.dart
@@ -31,20 +31,20 @@ void main() {
try {
new int32.fromInt(17) >> -1;
- Expect.fail("x >> -1 should throw IllegalArgumentException");
- } on IllegalArgumentException catch (e) {
+ Expect.fail("x >> -1 should throw ArgumentError");
+ } on ArgumentError catch (e) {
}
try {
new int32.fromInt(17) << -1;
- Expect.fail("x >> -1 should throw IllegalArgumentException");
- } on IllegalArgumentException catch (e) {
+ Expect.fail("x >> -1 should throw ArgumentError");
+ } on ArgumentError catch (e) {
}
try {
new int32.fromInt(17).shiftRightUnsigned(-1);
- Expect.fail("x >> -1 should throw IllegalArgumentException");
- } on IllegalArgumentException catch (e) {
+ Expect.fail("x >> -1 should throw ArgumentError");
+ } on ArgumentError catch (e) {
}
// wraparound

Powered by Google App Engine
This is Rietveld 408576698