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

Unified Diff: utils/tests/pub/validator_test.dart

Issue 11784031: Get validator tests working on lib_v2. (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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/validator_test.dart
diff --git a/utils/tests/pub/validator_test.dart b/utils/tests/pub/validator_test.dart
index 96a8f032b01cbe10c5628fc252699fe91dbd42c3..9f0a3665a5b0312a048414d005ffd961669c647f 100644
--- a/utils/tests/pub/validator_test.dart
+++ b/utils/tests/pub/validator_test.dart
@@ -4,8 +4,9 @@
library validator_test;
+import 'dart:async';
import 'dart:io';
-import 'dart:json';
+import 'dart:json' as json;
import 'test_pub.dart';
import '../../../pkg/unittest/lib/unittest.dart';
@@ -322,7 +323,7 @@ main() {
expect(request.method, equals("GET"));
expect(request.url.path, equals("/packages/foo.json"));
- return new Future.immediate(new http.Response(JSON.stringify({
+ return new Future.immediate(new http.Response(json.stringify({
"name": "foo",
"uploaders": ["nweiz@google.com"],
"versions": ["3.0.0-pre", "2.0.0", "1.0.0"]
@@ -348,7 +349,7 @@ main() {
expect(request.method, equals("GET"));
expect(request.url.path, equals("/packages/foo.json"));
- return new Future.immediate(new http.Response(JSON.stringify({
+ return new Future.immediate(new http.Response(json.stringify({
"name": "foo",
"uploaders": ["nweiz@google.com"],
"versions": ["3.0.0-pre", "2.0.0-pre"]
@@ -374,7 +375,7 @@ main() {
expect(request.method, equals("GET"));
expect(request.url.path, equals("/packages/foo.json"));
- return new Future.immediate(new http.Response(JSON.stringify({
+ return new Future.immediate(new http.Response(json.stringify({
"name": "foo",
"uploaders": ["nweiz@google.com"],
"versions": ["0.0.1", "0.0.2"]
@@ -466,7 +467,7 @@ main() {
libPubspec("test_pkg", "1.0.0", [
{'hosted': 'foo'}
]),
- file("pubspec.lock", JSON.stringify({
+ file("pubspec.lock", json.stringify({
'packages': {
'bar': {
'version': '1.2.3',
@@ -494,7 +495,7 @@ main() {
libPubspec("test_pkg", "1.0.0", [
{'hosted': 'foo'}
]),
- file("pubspec.lock", JSON.stringify({
+ file("pubspec.lock", json.stringify({
'packages': {
'foo': {
'version': '1.2.3',
@@ -521,7 +522,7 @@ main() {
libPubspec("test_pkg", "1.0.0", [
{'hosted': 'foo'}
]),
- file("pubspec.lock", JSON.stringify({
+ file("pubspec.lock", json.stringify({
'packages': {
'foo': {
'version': '0.1.2',
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698