| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library pub_cache_test; | 5 library pub_cache_test; |
| 6 | 6 |
| 7 import 'dart:io'; | 7 import 'dart:io'; |
| 8 import 'dart:json' as json; | 8 import 'dart:json' as json; |
| 9 | 9 |
| 10 import 'package:scheduled_test/scheduled_test.dart'; | 10 import 'package:scheduled_test/scheduled_test.dart'; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 d.libDir("foo") | 66 d.libDir("foo") |
| 67 ]), | 67 ]), |
| 68 d.dir("bar-2.0.0", [ | 68 d.dir("bar-2.0.0", [ |
| 69 d.libPubspec("bar", "2.0.0"), | 69 d.libPubspec("bar", "2.0.0"), |
| 70 d.libDir("bar") ]) | 70 d.libDir("bar") ]) |
| 71 ]) | 71 ]) |
| 72 ]) | 72 ]) |
| 73 ]).create(); | 73 ]).create(); |
| 74 | 74 |
| 75 schedulePub(args: ['cache', 'list'], output: | 75 schedulePub(args: ['cache', 'list'], output: |
| 76 new RegExp(r'\{"packages":\{"bar":\{"version":"2\.0\.0","location":' | 76 new RegExp(r'\{"packages":\{"bar":\{"2\.0\.0":\{"location":' |
| 77 r'"[^"]+bar-2\.0\.0"\},"foo":\{"version":"1\.2\.3","location":' | 77 r'"[^"]+bar-2\.0\.0"\}},"foo":\{"1\.2\.3":\{"location":' |
| 78 r'"[^"]+foo-1\.2\.3"\}\}\}$')); | 78 r'"[^"]+foo-1\.2\.3"\}\}\}\}$')); |
| 79 }); | 79 }); |
| 80 | 80 |
| 81 integration('includes packages containing deps with bad sources', () { | 81 integration('includes packages containing deps with bad sources', () { |
| 82 // Set up a cache. | 82 // Set up a cache. |
| 83 d.dir(cachePath, [ | 83 d.dir(cachePath, [ |
| 84 d.dir('hosted', [ | 84 d.dir('hosted', [ |
| 85 d.dir('pub.dartlang.org', [ | 85 d.dir('pub.dartlang.org', [ |
| 86 d.dir("foo-1.2.3", [ | 86 d.dir("foo-1.2.3", [ |
| 87 d.libPubspec("foo", "1.2.3", deps: [{"bad": "bar"}]), | 87 d.libPubspec("foo", "1.2.3", deps: [{"bad": "bar"}]), |
| 88 d.libDir("foo") | 88 d.libDir("foo") |
| 89 ]) | 89 ]) |
| 90 ]) | 90 ]) |
| 91 ]) | 91 ]) |
| 92 ]).create(); | 92 ]).create(); |
| 93 | 93 |
| 94 schedulePub(args: ['cache', 'list'], output: | 94 schedulePub(args: ['cache', 'list'], output: |
| 95 new RegExp(r'\{"packages":\{"foo":\{"version":"1\.2\.3","location":' | 95 new RegExp(r'\{"packages":\{"foo":\{"1\.2\.3":\{"location":' |
| 96 r'"[^"]+foo-1\.2\.3"\}\}\}$')); | 96 r'"[^"]+foo-1\.2\.3"\}\}\}\}$')); |
| 97 }); | 97 }); |
| 98 } | 98 } |
| OLD | NEW |