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

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

Issue 68233003: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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: 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 25e577846ea9d50e73981f9fcaa9064d78b177d3..b5fa203fecaa7802cff317535b34bc402016e8c8 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,14 +32,14 @@ import java.io.File;
* Test for general Java semantics to Dart translation.
*/
public class AbstractSemanticTest extends TestCase {
-
/**
* @return the formatted Dart source dump of the given {@link ASTNode}.
*/
protected static String getFormattedSource(ASTNode node) {
PrintStringWriter writer = new PrintStringWriter();
node.accept(new ToFormattedSourceVisitor(writer));
- return writer.toString();
+ String result = writer.toString();
+ return StringUtils.join(StringUtils.split(result, '\n'), "\n");
}
protected static void printFormattedSource(ASTNode node) {

Powered by Google App Engine
This is Rietveld 408576698