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

Unified Diff: tests/compiler/dart2js/is_inference_test.dart

Issue 10825180: Add JavaScript AST. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: updated. Created 8 years, 4 months 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/is_inference_test.dart
diff --git a/tests/compiler/dart2js/is_inference_test.dart b/tests/compiler/dart2js/is_inference_test.dart
index 36e1f64fa21195cf1433e947fae37d147852e956..f108991965cb06b949cae70bc0b70ec0c253f7e6 100644
--- a/tests/compiler/dart2js/is_inference_test.dart
+++ b/tests/compiler/dart2js/is_inference_test.dart
@@ -64,7 +64,8 @@ test(param) {
compileAndTest(String code) {
String generated = compile(code, 'test');
- RegExp validAdd = new RegExp("$anyIdentifier \\+ 42");
+ RegExp validAdd =
+ new RegExp("($anyIdentifier \\+ 42)|($anyIdentifier \\+= 42)");
RegExp invalidAdd = new RegExp("$anyIdentifier \\+ 53");
Expect.isTrue(validAdd.hasMatch(generated));
Expect.isFalse(invalidAdd.hasMatch(generated));
« lib/compiler/implementation/ssa/codegen.dart ('K') | « lib/compiler/implementation/ssa/ssa.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698