Chromium Code Reviews| 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 import 'package:scheduled_test/scheduled_test.dart'; | 5 import 'package:scheduled_test/scheduled_test.dart'; |
| 6 | 6 |
| 7 import 'descriptor.dart' as d; | 7 import 'descriptor.dart' as d; |
| 8 import 'test_pub.dart'; | 8 import 'test_pub.dart'; |
| 9 | 9 |
| 10 main() { | 10 main() { |
| 11 initConfig(); | 11 initConfig(); |
| 12 | 12 |
| 13 setUp(() { | 13 setUp(() { |
| 14 servePackages([ | 14 servePackages((builder) { |
| 15 packageMap("normal", "1.2.3", { | 15 builder.serve("normal", "1.2.3", pubspec: { |
|
Bob Nystrom
2014/08/21 16:44:17
In some of the other test functions, we have a "de
nweiz
2014/08/21 18:28:51
Done.
| |
| 16 "transitive": "any", | 16 "dependencies": { |
| 17 "circular_a": "any" | 17 "transitive": "any", |
| 18 }), | 18 "circular_a": "any" |
| 19 packageMap("transitive", "1.2.3", { | 19 } |
| 20 "shared": "any" | 20 }); |
| 21 }), | 21 builder.serve("transitive", "1.2.3", pubspec: { |
| 22 packageMap("shared", "1.2.3", { | 22 "dependencies": {"shared": "any"} |
| 23 "other": "any" | 23 }); |
| 24 }), | 24 builder.serve("shared", "1.2.3", pubspec: { |
| 25 packageMap("unittest", "1.2.3", { | 25 "dependencies": {"other": "any"} |
| 26 "shared": "any" | 26 }); |
| 27 }), | 27 builder.serve("unittest", "1.2.3", pubspec: { |
| 28 packageMap("other", "1.0.0"), | 28 "dependencies": {"shared": "any"} |
| 29 packageMap("overridden", "1.0.0"), | 29 }); |
| 30 packageMap("overridden", "2.0.0"), | 30 builder.serve("other", "1.0.0"); |
| 31 packageMap("override_only", "1.2.3"), | 31 builder.serve("overridden", "1.0.0"); |
| 32 packageMap("circular_a", "1.2.3", { | 32 builder.serve("overridden", "2.0.0"); |
| 33 "circular_b": "any" | 33 builder.serve("override_only", "1.2.3"); |
| 34 }), | 34 builder.serve("circular_a", "1.2.3", pubspec: { |
| 35 packageMap("circular_b", "1.2.3", { | 35 "dependencies": {"circular_b": "any"} |
| 36 "circular_a": "any" | 36 }); |
| 37 }) | 37 builder.serve("circular_b", "1.2.3", pubspec: { |
| 38 ]); | 38 "dependencies": {"circular_a": "any"} |
| 39 }); | |
| 40 }); | |
| 39 | 41 |
| 40 d.dir("from_path", [ | 42 d.dir("from_path", [ |
| 41 d.libDir("from_path"), | 43 d.libDir("from_path"), |
| 42 d.libPubspec("from_path", "1.2.3") | 44 d.libPubspec("from_path", "1.2.3") |
| 43 ]).create(); | 45 ]).create(); |
| 44 | 46 |
| 45 d.dir(appPath, [ | 47 d.dir(appPath, [ |
| 46 d.pubspec({ | 48 d.pubspec({ |
| 47 "name": "myapp", | 49 "name": "myapp", |
| 48 "dependencies": { | 50 "dependencies": { |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 132 | '-- transitive 1.2.3 | 134 | '-- transitive 1.2.3 |
| 133 | '-- shared... | 135 | '-- shared... |
| 134 |-- overridden 2.0.0 | 136 |-- overridden 2.0.0 |
| 135 |-- override_only 1.2.3 | 137 |-- override_only 1.2.3 |
| 136 '-- unittest 1.2.3 | 138 '-- unittest 1.2.3 |
| 137 '-- shared 1.2.3 | 139 '-- shared 1.2.3 |
| 138 '-- other 1.0.0 | 140 '-- other 1.0.0 |
| 139 '''); | 141 '''); |
| 140 }); | 142 }); |
| 141 } | 143 } |
| OLD | NEW |