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

Unified Diff: pkg/http/test/utils.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « pkg/http/test/response_test.dart ('k') | pkg/intl/example/basic/basic_example.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http/test/utils.dart
diff --git a/pkg/http/test/utils.dart b/pkg/http/test/utils.dart
index 89440f88341ab08af414467d0e6cd30c33d7d479..9e9ae8b3408d37c5ab724bd4f8486fe0f41f3f18 100644
--- a/pkg/http/test/utils.dart
+++ b/pkg/http/test/utils.dart
@@ -5,7 +5,7 @@
library test_utils;
import 'dart:io';
-import 'dart:json';
+import 'dart:json' as json;
import 'dart:uri';
import 'package:unittest/unittest.dart';
@@ -88,7 +88,7 @@ void startServer() {
outputEncoding = Encoding.ASCII;
}
- var body = JSON.stringify(content);
+ var body = json.stringify(content);
response.contentLength = body.length;
response.outputStream.writeString(body, outputEncoding);
response.outputStream.close();
@@ -118,7 +118,7 @@ class _Parse extends BaseMatcher {
var parsed;
try {
- parsed = JSON.parse(item);
+ parsed = json.parse(item);
} catch (e) {
return false;
}
« no previous file with comments | « pkg/http/test/response_test.dart ('k') | pkg/intl/example/basic/basic_example.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698