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

Unified Diff: tests/corelib/reg_exp5_test.dart

Issue 11415028: Remove NullPointerException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed VM bugs. Created 8 years, 1 month 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/reg_exp5_test.dart
diff --git a/tests/corelib/reg_exp5_test.dart b/tests/corelib/reg_exp5_test.dart
index 17217a86827848029ed03124e513ef654dcd3ff2..56002cac03e87ef7a98dcea9c07e4e86c476c8dc 100644
--- a/tests/corelib/reg_exp5_test.dart
+++ b/tests/corelib/reg_exp5_test.dart
@@ -7,9 +7,9 @@ main() {
String str = "";
try {
RegExp ex = new RegExp(str);
- } on Exception catch (e) {
- if (!(e is NullPointerException)) {
- Expect.fail("Expected: NullPointerException got: ${e}");
+ } catch (e) {
+ if (!(e is ArgumentError)) {
+ Expect.fail("Expected: ArgumentError got: ${e}");
}
}
Expect.isFalse(new RegExp(r"^\w+$").hasMatch(str));

Powered by Google App Engine
This is Rietveld 408576698