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

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

Issue 40323002: Remove dart:json (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Bad merge in convert/json.dart, a few other bugs. Updated co19 expectations. Created 7 years, 2 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 | « tests/utils/json_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/record_and_replay.dart
diff --git a/tools/testing/dart/record_and_replay.dart b/tools/testing/dart/record_and_replay.dart
index 7cfc4003a94e5e18afd5d9d6e87f3ecfe17f0946..f9b728f8098ba1e7f6da5a5c83070697f8a61830 100644
--- a/tools/testing/dart/record_and_replay.dart
+++ b/tools/testing/dart/record_and_replay.dart
@@ -5,7 +5,7 @@
library record_and_replay;
import 'dart:io';
-import 'dart:json' as json;
+import 'dart:convert';
import 'dart:utf';
import 'test_runner.dart';
@@ -76,7 +76,7 @@ class TestCaseRecorder {
void finish() {
var file = new File(_outputPath.toNativePath());
- var jsonString = json.stringify(_recordedCommandInvocations);
+ var jsonString = JSON.encode(_recordedCommandInvocations);
file.writeAsStringSync(jsonString);
print("TestCaseRecorder: written all TestCases to ${_outputPath}");
}
@@ -92,7 +92,7 @@ class TestCaseOutputArchive {
void loadFromPath(Path recordingPath) {
var file = new File(recordingPath.toNativePath());
- var commandRecordings = json.parse(file.readAsStringSync());
+ var commandRecordings = JSON.decode(file.readAsStringSync());
_commandOutputRecordings = {};
for (var commandRecording in commandRecordings) {
var key = _indexKey(commandRecording['command']['executable'],
« no previous file with comments | « tests/utils/json_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698