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

Unified Diff: tests/corelib/string_source_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/corelib/json_test.dart ('k') | tests/html/isolates_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/string_source_test.dart
diff --git a/tests/corelib/string_source_test.dart b/tests/corelib/string_source_test.dart
index 9c16be5e6cdb82d472e23632845c5c3252ad80ff..bf91390b1a0d9d19e057019822bcbbf843a6ee4b 100644
--- a/tests/corelib/string_source_test.dart
+++ b/tests/corelib/string_source_test.dart
@@ -4,7 +4,7 @@
// Test that different representations of the same string are all equal.
-import "dart:json" as json;
+import "dart:convert";
import "package:expect/expect.dart";
@@ -23,8 +23,8 @@ main() {
(new StringBuffer()..writeCharCode(0xd801)
..writeCharCode(0xdc12)).toString(),
(new StringBuffer()..writeCharCode(0x10412)).toString(),
- json.parse('"\u{10412}"'),
- json.parse('{"\u{10412}":[]}').keys.first
+ JSON.decode('"\u{10412}"'),
+ JSON.decode('{"\u{10412}":[]}').keys.first
];
for (String string in strings) {
Expect.equals(base.length, string.length);
« no previous file with comments | « tests/corelib/json_test.dart ('k') | tests/html/isolates_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698