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

Unified Diff: tests/corelib/json_test.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/co19/co19-co19.status ('k') | tests/corelib/string_source_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/json_test.dart
diff --git a/tests/corelib/json_test.dart b/tests/corelib/json_test.dart
index e5d0758da6d571ffb475853623cbdf4ae71f9077..86485e02404e8bc02562a92746fdecfd2a0f874f 100644
--- a/tests/corelib/json_test.dart
+++ b/tests/corelib/json_test.dart
@@ -5,12 +5,12 @@
library json_test;
import "package:expect/expect.dart";
-import "dart:json";
+import "dart:convert";
bool badFormat(e) => e is FormatException;
void testJson(json, expected) {
- var value = parse(json);
+ var value = JSON.decode(json);
compare(expected, actual, path) {
if (expected is List) {
Expect.isTrue(actual is List);
@@ -53,7 +53,7 @@ String escape(String s) {
}
void testThrows(json) {
- Expect.throws(() => parse(json), badFormat, "json = '${escape(json)}'");
+ Expect.throws(() => JSON.decode(json), badFormat, "json = '${escape(json)}'");
}
testNumbers() {
« no previous file with comments | « tests/co19/co19-co19.status ('k') | tests/corelib/string_source_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698