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

Unified Diff: tests/standalone/io/stdin_sync_script.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/lib/json/json_test.dart ('k') | tests/standalone/io/stdin_sync_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/stdin_sync_script.dart
diff --git a/tests/standalone/io/stdin_sync_script.dart b/tests/standalone/io/stdin_sync_script.dart
index 42b648e42b09e6677754080baa0601617a834e82..c29de2f7ae68294c0f1c014fa35b1a48d577b36f 100644
--- a/tests/standalone/io/stdin_sync_script.dart
+++ b/tests/standalone/io/stdin_sync_script.dart
@@ -4,13 +4,14 @@
import "dart:convert";
import "dart:io";
-import "dart:json";
void main(List<String> arguments) {
int i = 0;
String line;
while ((line = stdin.readLineSync(encoding: UTF8)) != null) {
- if (parse(arguments[i]) != line) throw "bad line at $i: ${line.codeUnits}";
+ if (JSON.decode(arguments[i]) != line) {
+ throw "bad line at $i: ${line.codeUnits}";
+ }
i++;
}
if (i != arguments.length) throw "expect ${arguments.length} lines";
« no previous file with comments | « tests/lib/json/json_test.dart ('k') | tests/standalone/io/stdin_sync_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698