| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 r'"[^"]+bar-2\.0\.0"\}},"foo":\{"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: { "bar": {"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":\{"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 |