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

Unified Diff: pkg/source_maps/test/printer_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: pkg/source_maps/test/printer_test.dart
diff --git a/pkg/source_maps/test/printer_test.dart b/pkg/source_maps/test/printer_test.dart
index eaeae2a127689e45d0cea64e400dabf8681b9a8b..fe27f76c05c2098653d9b759ada3c4f3d720c2d6 100644
--- a/pkg/source_maps/test/printer_test.dart
+++ b/pkg/source_maps/test/printer_test.dart
@@ -4,7 +4,7 @@
library test.printer_test;
-import 'dart:json' as json;
+import 'dart:convert';
import 'package:unittest/unittest.dart';
import 'package:source_maps/printer.dart';
import 'package:source_maps/span.dart';
@@ -23,7 +23,7 @@ main() {
..mark(inputExpr)
..add('x + y;\n');
expect(printer.text, OUTPUT);
- expect(printer.map, json.stringify(EXPECTED_MAP));
+ expect(printer.map, JSON.encode(EXPECTED_MAP));
});
test('printer projecting marks', () {
@@ -90,7 +90,7 @@ main() {
..add('x + y;\n', span: inputExpr)
..build('output.dart');
expect(printer.text, OUTPUT);
- expect(printer.map, json.stringify(EXPECTED_MAP));
+ expect(printer.map, JSON.encode(EXPECTED_MAP));
});
test('nested use', () {
@@ -102,7 +102,7 @@ main() {
..add('x + y;\n', span: inputExpr)
..build('output.dart');
expect(printer.text, OUTPUT);
- expect(printer.map, json.stringify(EXPECTED_MAP));
+ expect(printer.map, JSON.encode(EXPECTED_MAP));
});
test('add indentation', () {

Powered by Google App Engine
This is Rietveld 408576698