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

Unified Diff: pkg/js_ast/test/printer_callback_test.dart

Issue 1224513003: Fix multiline problem in printer_callback_test. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/js_ast/test/printer_callback_test.dart
diff --git a/pkg/js_ast/test/printer_callback_test.dart b/pkg/js_ast/test/printer_callback_test.dart
index 4d174458b9911ebfedd5bf135e4a34db242bdc8b..a7cf391aed37895c36120809dc701bdabe795f3d 100644
--- a/pkg/js_ast/test/printer_callback_test.dart
+++ b/pkg/js_ast/test/printer_callback_test.dart
@@ -195,7 +195,9 @@ void check(TestCase testCase) {
if (mode == TestMode.INPUT) return;
Context context = new Context(mode);
new Printer(options, context).visit(node);
- expect(context.getText(), equals(expectedOutput),
+ // TODO(johnniwinther): Remove `replaceAll(...)` when dart2js behaves as the
+ // VM on newline in multiline strings.
+ expect(context.getText(), equals(expectedOutput.replaceAll('\r\n', '\n')),
reason: "Unexpected output for $code in $mode");
});
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698