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

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

Issue 917033002: Redo "Steps towards making dart2js JS AST templates an indepentent library." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 | « pkg/dart2js_incremental/lib/library_updater.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/async_await_js_transform_test.dart
diff --git a/tests/compiler/dart2js/async_await_js_transform_test.dart b/tests/compiler/dart2js/async_await_js_transform_test.dart
index bbcec9bd2a1df648983358bfa51800167ebbb652..10061868ebf533fbd5ea91980a9e1ceca4fb1ff5 100644
--- a/tests/compiler/dart2js/async_await_js_transform_test.dart
+++ b/tests/compiler/dart2js/async_await_js_transform_test.dart
@@ -18,9 +18,12 @@ void testTransform(String source, String expected) {
endOfIteration: new VariableUse("endOfIteration"),
newIterable: new VariableUse("Iterator"),
safeVariableName: (String name) => "__$name").rewrite(fun);
- Printer printer = new Printer(new PrintDiagnosticListener(), null);
+
+ JavaScriptPrintingOptions options = new JavaScriptPrintingOptions();
+ JavaScriptPrintingContext context = new SimpleJavaScriptPrintingContext();
+ Printer printer = new Printer(options, context);
printer.visit(rewritten);
- Expect.stringEquals(expected, printer.outBuffer.getText());
+ Expect.stringEquals(expected, context.getText());
}
main() {
@@ -943,4 +946,4 @@ function(x, y) {
}
return thenHelper(null, __helper, __completer, null);
}""");
-}
+}
« no previous file with comments | « pkg/dart2js_incremental/lib/library_updater.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698