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); |