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

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

Issue 767643002: dart2js: Make usage of names more consistent between compiler and runtime. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 6 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/deferred_emit_type_checks_test.dart
diff --git a/tests/compiler/dart2js/deferred_emit_type_checks_test.dart b/tests/compiler/dart2js/deferred_emit_type_checks_test.dart
index 6ece06e02d56ffc9fb5ef80c7d8f26e60b807953..d397ababc0fb6e613034f3ea24123b1439db7d65 100644
--- a/tests/compiler/dart2js/deferred_emit_type_checks_test.dart
+++ b/tests/compiler/dart2js/deferred_emit_type_checks_test.dart
@@ -52,8 +52,10 @@ void main() {
asyncTest(() => compiler.run(Uri.parse('memory:main.dart')).then((_) {
String mainOutput = outputs['main.js'].mem[0];
String deferredOutput = outputs['out_1.part.js'].mem[0];
- RegExp re = new RegExp(r"\n _ = .\.A;\n _.\$isA = TRUE;");
- print(deferredOutput);
+ String isPrefix = compiler.backend.namer.operatorIsPrefix;
+ String escapedIsPrefix = isPrefix.replaceAll(r'$', r'\$');
+ RegExp re = new RegExp(r"\n _ = .\.A;\n _."
+ "${escapedIsPrefix}A = TRUE;");
Expect.isTrue(re.hasMatch(deferredOutput));
Expect.isFalse(re.hasMatch(mainOutput));
}));
« no previous file with comments | « sdk/lib/_internal/compiler/js_lib/js_mirrors.dart ('k') | tests/compiler/dart2js/type_representation_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698