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

Unified Diff: tests/compiler/dart2js/pretty_parameter_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
Index: tests/compiler/dart2js/pretty_parameter_test.dart
diff --git a/tests/compiler/dart2js/pretty_parameter_test.dart b/tests/compiler/dart2js/pretty_parameter_test.dart
index 03f199f57e5fea593a2a57ebe9e5856a8fd2e201..33c730f3b775a51808806ad7516b4d83f3d84aa5 100644
--- a/tests/compiler/dart2js/pretty_parameter_test.dart
+++ b/tests/compiler/dart2js/pretty_parameter_test.dart
@@ -70,41 +70,41 @@ int foo(var start, bool test) {
main() {
String generated = compile(FOO, entry: 'foo');
// TODO(ngeoffray): Use 'contains' when frog supports it.
- RegExp regexp = new RegExp(r"function\(a, b\) {");
+ RegExp regexp = const RegExp(r"function\(a, b\) {");
Expect.isTrue(regexp.hasMatch(generated));
generated = compile(BAR, entry: 'bar');
- regexp = new RegExp(r"function\(eval\$, \$\$eval\) {");
+ regexp = const RegExp(r"function\(eval\$, \$\$eval\) {");
Expect.isTrue(regexp.hasMatch(generated));
generated = compile(PARAMETER_AND_TEMP, entry: 'bar');
- regexp = new RegExp(r"print\(t0\)");
+ regexp = const RegExp(r"print\(t0\)");
Expect.isTrue(regexp.hasMatch(generated));
// Check that the second 't0' got another name.
- regexp = new RegExp(r"print\(t0_0\)");
+ regexp = const RegExp(r"print\(t0_0\)");
Expect.isTrue(regexp.hasMatch(generated));
generated = compile(NO_LOCAL, entry: 'foo');
- regexp = new RegExp("return baz");
+ regexp = const RegExp("return baz");
Expect.isTrue(regexp.hasMatch(generated));
- regexp = new RegExp(r"baz = 2");
+ regexp = const RegExp(r"baz = 2");
Expect.isTrue(regexp.hasMatch(generated));
- regexp = new RegExp(r"baz = 3");
+ regexp = const RegExp(r"baz = 3");
Expect.isTrue(regexp.hasMatch(generated));
- regexp = new RegExp("bar === true");
+ regexp = const RegExp("bar === true");
Expect.isTrue(regexp.hasMatch(generated));
generated = compile(MULTIPLE_PHIS_ONE_LOCAL, entry: 'foo');
- regexp = new RegExp(r"var a = 2;");
+ regexp = const RegExp(r"var a = 2;");
Expect.isTrue(regexp.hasMatch(generated));
- regexp = new RegExp(r"a = 2;");
+ regexp = const RegExp(r"a = 2;");
Iterator matches = regexp.allMatches(generated).iterator();
Expect.isTrue(matches.hasNext);
matches.next();
Expect.isFalse(matches.hasNext);
generated = compile(PARAMETER_INIT, entry: 'foo');
- regexp = new RegExp("var result = start;");
+ regexp = const RegExp("var result = start;");
Expect.isTrue(regexp.hasMatch(generated));
}
« no previous file with comments | « tests/compiler/dart2js/minify_many_locals_test.dart ('k') | tests/compiler/dart2js/redundant_phi_eliminator_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698