Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS d.file | |
|
nweiz
2015/06/10 22:33:59
2015
I'd call this file "packages_file_test". Als
Lasse Reichstein Nielsen
2015/06/11 11:21:02
Done.
| |
| 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 d.file. | |
| 4 | |
| 5 library pub_tests; | |
|
nweiz
2015/06/10 22:33:59
Remove this. Some old tests have it, but new tests
Lasse Reichstein Nielsen
2015/06/11 11:21:03
Done.
| |
| 6 | |
| 7 import '../descriptor.dart' as d; | |
| 8 import '../test_pub.dart'; | |
| 9 | |
| 10 main() { | |
| 11 initConfig(); | |
| 12 integration('re-gets a package if its source has changed', () { | |
|
nweiz
2015/06/10 22:33:59
Update the test name.
Lasse Reichstein Nielsen
2015/06/11 11:21:02
Done.
| |
| 13 servePackages((builder) { | |
| 14 builder.serve("foo", "1.2.3", | |
| 15 deps: {'baz': '2.2.2'}, | |
|
nweiz
2015/06/10 22:33:59
We don't do argument alignment like this. It'll al
Lasse Reichstein Nielsen
2015/06/11 11:21:02
Arguments fixed to match formatter.
The d.dir bel
nweiz
2015/06/12 23:48:08
Yeah, I think Bob is working on better support for
Bob Nystrom
2015/06/12 23:49:15
Yup. It's landed on master in the dart_style repo
| |
| 16 contents: [d.dir("lib", [])]); | |
| 17 builder.serve("bar", "3.2.1", | |
| 18 contents: [d.dir("lib", [])]); | |
| 19 builder.serve("baz", "2.2.2", | |
| 20 deps: {"bar": "3.2.1"}, | |
| 21 contents: [d.dir("lib", [])]); | |
| 22 }); | |
| 23 | |
| 24 d.appDir({"foo": "1.2.3"}).create(); | |
| 25 | |
| 26 pubGet(); | |
| 27 | |
| 28 d.dir(appPath, [d.dotPackagesFile({"foo": "1.2.3", | |
|
nweiz
2015/06/10 22:33:59
This should contain a link back to the application
Lasse Reichstein Nielsen
2015/06/11 11:21:03
True. Updating test to check fail if there are mor
| |
| 29 "bar": "3.2.1", | |
| 30 "baz": "3.2.1"})]).validate(); | |
| 31 }); | |
| 32 } | |
| 33 | |
| OLD | NEW |