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

Unified Diff: editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/engine/MainEngine.java

Issue 22325013: Remove dart:io dependency from scanner/ast/parser tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 | pkg/analyzer_experimental/test/generated/scanner_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/engine/MainEngine.java
diff --git a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/engine/MainEngine.java b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/engine/MainEngine.java
index 3976c1f2ddcaf06e4a208965eec79e7835fac9d8..e2827e8f73d853afb92b13164d2c89180e4c139a 100644
--- a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/engine/MainEngine.java
+++ b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/engine/MainEngine.java
@@ -368,10 +368,9 @@ public class MainEngine {
}
{
CompilationUnit library = buildScannerTestLibrary();
- Files.write(
- getFormattedSource(library),
- new File(targetTestFolder + "/scanner_test.dart"),
- Charsets.UTF_8);
+ String source = getFormattedSource(library);
+ source = replaceSourceFragment(source, "${OSUtilities.LINE_SEPARATOR}", "\\n");
+ Files.write(source, new File(targetTestFolder + "/scanner_test.dart"), Charsets.UTF_8);
}
{
CompilationUnit library = buildParserTestLibrary();
@@ -863,7 +862,6 @@ public class MainEngine {
CompilationUnit unit = new CompilationUnit(null, null, null, null, null);
unit.getDirectives().add(libraryDirective("engine", "scanner_test"));
unit.getDirectives().add(importDirective(src_package + "java_core.dart", null));
- unit.getDirectives().add(importDirective(src_package + "java_engine_io.dart", null));
unit.getDirectives().add(importDirective(src_package + "java_junit.dart", null));
unit.getDirectives().add(importDirective(src_package + "source.dart", null));
unit.getDirectives().add(importDirective(src_package + "error.dart", null));
« no previous file with comments | « no previous file | pkg/analyzer_experimental/test/generated/scanner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698