From 4f5c0cfd1cdb1ba41f750c3c489f052dd6c1f6b4 Mon Sep 17 00:00:00 2001
From: "rnystrom@google.com" <rnystrom@google.com>
Date: Tue, 8 Jan 2013 01:39:25 +0000
Subject: [PATCH] Get validator tests working on lib_v2.

Review URL: https://codereview.chromium.org//11784031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@16776 260f80e4-7a28-3924-810f-c04153c831b5
---
 test/validator_test.dart | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/test/validator_test.dart b/test/validator_test.dart
index 96a8f032..9f0a3665 100644
--- a/test/validator_test.dart
+++ b/test/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',
-- 
GitLab