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

Unified Diff: tests/corelib/reg_exp1_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/compiler/dart2js/value_range_test.dart ('k') | tests/corelib/reg_exp4_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/reg_exp1_test.dart
diff --git a/tests/corelib/reg_exp1_test.dart b/tests/corelib/reg_exp1_test.dart
index 7d3557ecace5554328e1f973d3b4bb9011862b18..025068b6f93c50bfd2837177399234bd972cfe89 100644
--- a/tests/corelib/reg_exp1_test.dart
+++ b/tests/corelib/reg_exp1_test.dart
@@ -5,7 +5,7 @@
class RegExp1Test {
static testMain() {
- RegExp exp1 = new RegExp("bar|foo");
+ RegExp exp1 = const RegExp("bar|foo");
Expect.equals(true, exp1.hasMatch("foo"));
Expect.equals(true, exp1.hasMatch("bar"));
Expect.equals(false, exp1.hasMatch("gim"));
@@ -14,7 +14,7 @@ class RegExp1Test {
Expect.equals(false, exp1.multiLine);
Expect.equals(false, exp1.ignoreCase);
- RegExp exp2 = new RegExp("o+", ignoreCase: true);
+ RegExp exp2 = const RegExp("o+", ignoreCase: true);
Expect.equals(true, exp2.hasMatch("this looks good"));
Expect.equals(true, exp2.hasMatch("fOO"));
Expect.equals(false, exp2.hasMatch("bar"));
« no previous file with comments | « tests/compiler/dart2js/value_range_test.dart ('k') | tests/corelib/reg_exp4_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698