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

Unified Diff: tests/compiler/dart2js/constant_folding_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/code_motion_test.dart ('k') | tests/compiler/dart2js/dead_phi_eliminator_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/constant_folding_test.dart
diff --git a/tests/compiler/dart2js/constant_folding_test.dart b/tests/compiler/dart2js/constant_folding_test.dart
index f803b25ec3dac0b3e699b9be8c711942fcbb267d..e2133b7f70ee58e32d1347b2e43fb6510616dcd1 100644
--- a/tests/compiler/dart2js/constant_folding_test.dart
+++ b/tests/compiler/dart2js/constant_folding_test.dart
@@ -32,20 +32,20 @@ foo(a, b, c, d) {
main() {
compileAndMatch(
- NUMBER_FOLDING, 'main', new RegExp(r"print\(7\)"));
+ NUMBER_FOLDING, 'main', const RegExp(r"print\(7\)"));
compileAndMatch(
- NEGATIVE_NUMBER_FOLDING, 'main', new RegExp(r"print\(1\)"));
+ NEGATIVE_NUMBER_FOLDING, 'main', const RegExp(r"print\(1\)"));
String generated = compile(NULL_EQUALS_FOLDING, entry: 'foo');
- RegExp regexp = new RegExp(r'a == null');
+ RegExp regexp = const RegExp(r'a == null');
Expect.isTrue(regexp.hasMatch(generated));
- regexp = new RegExp(r'null == b');
+ regexp = const RegExp(r'null == b');
Expect.isTrue(regexp.hasMatch(generated));
- regexp = new RegExp(r'4 === c');
+ regexp = const RegExp(r'4 === c');
Expect.isTrue(regexp.hasMatch(generated));
- regexp = new RegExp("'foo' === d");
+ regexp = const RegExp("'foo' === d");
Expect.isTrue(regexp.hasMatch(generated));
}
« no previous file with comments | « tests/compiler/dart2js/code_motion_test.dart ('k') | tests/compiler/dart2js/dead_phi_eliminator_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698