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

Unified Diff: dart/tools/testing/dart/multitest.dart

Issue 23568002: Update checked-in binary to 0.6.21.3_r26639 (M6) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
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 | « dart/tools/testing/dart/legacy_path.dart ('k') | dart/tools/testing/dart/record_and_replay.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tools/testing/dart/multitest.dart
diff --git a/dart/tools/testing/dart/multitest.dart b/dart/tools/testing/dart/multitest.dart
index da61f9daa0c0ea6a07cf9edc8878552f01f8ba36..fc85e7986246c7f6da8885614be00a3b3c69952f 100644
--- a/dart/tools/testing/dart/multitest.dart
+++ b/dart/tools/testing/dart/multitest.dart
@@ -65,7 +65,7 @@ void ExtractTestsFromMultitest(Path filePath,
// Read the entire file into a byte buffer and transform it to a
// String. This will treat the file as ascii but the only parts
// we are interested in will be ascii in any case.
- List bytes = new File.fromPath(filePath).readAsBytesSync();
+ List bytes = new File(filePath.toNativePath()).readAsBytesSync();
String contents = decodeUtf8(bytes);
int first_newline = contents.indexOf('\n');
final String line_separator =
@@ -166,7 +166,7 @@ Set<String> _findAllRelativeImports(Path topLibrary) {
var thisPass = toSearch;
toSearch = new Set<Path>();
for (Path filename in thisPass) {
- File f = new File.fromPath(filename);
+ File f = new File(filename.toNativePath());
for (String line in f.readAsLinesSync()) {
Match match = relativeImportRegExp.firstMatch(line);
if (match != null) {
@@ -222,7 +222,7 @@ Future doMultitest(Path filePath, String outputDir, Path suiteDir,
for (String key in tests.keys) {
final Path multitestFilename =
targetDir.append('${baseFilename}_$key.dart');
- final File file = new File.fromPath(multitestFilename);
+ final File file = new File(multitestFilename.toNativePath());
file.createSync();
RandomAccessFile openedFile = file.openSync(mode: FileMode.WRITE);
« no previous file with comments | « dart/tools/testing/dart/legacy_path.dart ('k') | dart/tools/testing/dart/record_and_replay.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698