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

Unified Diff: tests/corelib/reg_exp4_test.dart

Issue 11312203: "Reverting 14829-14832" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « tests/corelib/reg_exp1_test.dart ('k') | tests/corelib/string_split_reg_exp_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/reg_exp4_test.dart
diff --git a/tests/corelib/reg_exp4_test.dart b/tests/corelib/reg_exp4_test.dart
index 41d8f50743f884e8d72294849ec0d716d420d9c6..2daca498cf9b5809540db9502a7db5e28428a06d 100644
--- a/tests/corelib/reg_exp4_test.dart
+++ b/tests/corelib/reg_exp4_test.dart
@@ -5,7 +5,7 @@
main() {
try {
- RegExp ex = new RegExp(null);
+ RegExp ex = const RegExp(null);
Expect.fail("Expected: NullPointerException got: no exception");
} on Exception catch (ex) {
if (!(ex is NullPointerException)) {
@@ -13,7 +13,7 @@ main() {
}
}
try {
- new RegExp(r"^\w+$").hasMatch(null);
+ const RegExp(r"^\w+$").hasMatch(null);
Expect.fail("Expected: NullPointerException got: no exception");
} on Exception catch (ex) {
if (!(ex is NullPointerException)) {
@@ -21,7 +21,7 @@ main() {
}
}
try {
- new RegExp(r"^\w+$").firstMatch(null);
+ const RegExp(r"^\w+$").firstMatch(null);
Expect.fail("Expected: NullPointerException got: no exception");
} on Exception catch (ex) {
if (!(ex is NullPointerException)) {
@@ -29,7 +29,7 @@ main() {
}
}
try {
- new RegExp(r"^\w+$").allMatches(null);
+ const RegExp(r"^\w+$").allMatches(null);
Expect.fail("Expected: NullPointerException got: no exception");
} on Exception catch (ex) {
if (!(ex is NullPointerException)) {
@@ -37,7 +37,7 @@ main() {
}
}
try {
- new RegExp(r"^\w+$").stringMatch(null);
+ const RegExp(r"^\w+$").stringMatch(null);
Expect.fail("Expected: NullPointerException got: no exception");
} on Exception catch (ex) {
if (!(ex is NullPointerException)) {
« no previous file with comments | « tests/corelib/reg_exp1_test.dart ('k') | tests/corelib/string_split_reg_exp_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698