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

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

Issue 13704004: dart2js: Use js('source') instead of js['source'] to invoke JS mini-parser (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Go back to js.if_ instead of jsBuilder.if_ Created 7 years, 8 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
« no previous file with comments | « tests/compiler/dart2js/class_codegen_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/js_parser_test.dart
diff --git a/tests/compiler/dart2js/js_parser_test.dart b/tests/compiler/dart2js/js_parser_test.dart
index 3bd655978e08bcd0ac77a84c299d5ca74e971370..b192ec8d2f2c1fc6929e97f96bcefb918f5b049e 100644
--- a/tests/compiler/dart2js/js_parser_test.dart
+++ b/tests/compiler/dart2js/js_parser_test.dart
@@ -7,7 +7,7 @@ import '../../../sdk/lib/_internal/compiler/implementation/js/js.dart' as jsAst;
import '../../../sdk/lib/_internal/compiler/implementation/js/js.dart' show js;
void testExpression(String expression, [String expect = ""]) {
- jsAst.Node node = js[expression];
+ jsAst.Node node = js(expression);
MockCompiler compiler = new MockCompiler();
String jsText =
jsAst.prettyPrint(node,
@@ -25,7 +25,7 @@ void testError(String expression, [String expect = ""]) {
Expect.isTrue(exception.toString().contains(expect));
return true;
}
- Expect.throws(() => js[expression], doCheck);
+ Expect.throws(() => js(expression), doCheck);
}
« no previous file with comments | « tests/compiler/dart2js/class_codegen_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698