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

Unified Diff: sdk/lib/_internal/pub/test/unknown_source_test.dart

Issue 23596007: Remove usage of dart:json. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. Created 7 years, 4 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
Index: sdk/lib/_internal/pub/test/unknown_source_test.dart
diff --git a/sdk/lib/_internal/pub/test/unknown_source_test.dart b/sdk/lib/_internal/pub/test/unknown_source_test.dart
index cdcc1d7914f4ff1882e67567d619366b6e8d04c9..dab714cc0f5a5d98ae8ce20043f22a5af97fac85 100644
--- a/sdk/lib/_internal/pub/test/unknown_source_test.dart
+++ b/sdk/lib/_internal/pub/test/unknown_source_test.dart
@@ -4,7 +4,7 @@
library pub_tests;
-import 'dart:json' as json;
+import 'dart:convert';
import 'descriptor.dart' as d;
import 'test_pub.dart';
@@ -48,7 +48,7 @@ main() {
// But lock it to a bad one.
d.dir(appPath, [
- d.file("pubspec.lock", json.stringify({
+ d.file("pubspec.lock", JSON.encode({
'packages': {
'foo': {
'version': '0.0.0',

Powered by Google App Engine
This is Rietveld 408576698