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

Unified Diff: dart/tools/testing/dart/record_and_replay.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/multitest.dart ('k') | dart/tools/testing/dart/status_file_parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tools/testing/dart/record_and_replay.dart
diff --git a/dart/tools/testing/dart/record_and_replay.dart b/dart/tools/testing/dart/record_and_replay.dart
index 60fbedb760cba73c6d2890f4923720a76cd36b7e..7cfc4003a94e5e18afd5d9d6e87f3ecfe17f0946 100644
--- a/dart/tools/testing/dart/record_and_replay.dart
+++ b/dart/tools/testing/dart/record_and_replay.dart
@@ -9,6 +9,7 @@ import 'dart:json' as json;
import 'dart:utf';
import 'test_runner.dart';
+import 'utils.dart' show Path;
/*
* Json files look like this:
@@ -74,7 +75,7 @@ class TestCaseRecorder {
}
void finish() {
- var file = new File.fromPath(_outputPath);
+ var file = new File(_outputPath.toNativePath());
var jsonString = json.stringify(_recordedCommandInvocations);
file.writeAsStringSync(jsonString);
print("TestCaseRecorder: written all TestCases to ${_outputPath}");
@@ -90,7 +91,7 @@ class TestCaseOutputArchive {
}
void loadFromPath(Path recordingPath) {
- var file = new File.fromPath(recordingPath);
+ var file = new File(recordingPath.toNativePath());
var commandRecordings = json.parse(file.readAsStringSync());
_commandOutputRecordings = {};
for (var commandRecording in commandRecordings) {
« no previous file with comments | « dart/tools/testing/dart/multitest.dart ('k') | dart/tools/testing/dart/status_file_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698