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

Unified Diff: editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/AbstractSemanticTest.java

Issue 189433006: Support for DartBlockBody, DartExpressionBody, DartOmit in java2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes for review comments. Created 6 years, 9 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: editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/AbstractSemanticTest.java
diff --git a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/AbstractSemanticTest.java b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/AbstractSemanticTest.java
index 2ad349336f9e3e23a9b9049412560bb698b47ec9..1c6d747ab417fc10d2d5d75d55d459809604ec9b 100644
--- a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/AbstractSemanticTest.java
+++ b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/AbstractSemanticTest.java
@@ -32,6 +32,8 @@ import java.io.File;
* Test for general Java semantics to Dart translation.
*/
public class AbstractSemanticTest extends TestCase {
+ protected static boolean replaceSingleQuotes = false;
+
/**
* @return the formatted Dart source dump of the given {@link AstNode}.
*/
@@ -62,7 +64,11 @@ public class AbstractSemanticTest extends TestCase {
* @return the single {@link String} with "\n" separated lines.
*/
protected static String toString(String... lines) {
- return Joiner.on("\n").join(lines);
+ String result = Joiner.on("\n").join(lines);
+ if (replaceSingleQuotes) {
+ result = result.replace('\'', '"');
+ }
+ return result;
}
protected File tmpFolder;

Powered by Google App Engine
This is Rietveld 408576698