OLD | NEW |
(Empty) | |
| 1 import 'package:scheduled_test/scheduled_test.dart'; |
| 2 import '../descriptor.dart' as d; |
| 3 import '../test_pub.dart'; |
| 4 main() { |
| 5 initConfig(); |
| 6 integration("includes assets from the 'lib' directory of dependencies", () { |
| 7 currentSchedule.timeout *= 3; |
| 8 d.dir( |
| 9 "foo", |
| 10 [ |
| 11 d.libPubspec("foo", "0.0.1"), |
| 12 d.dir( |
| 13 "lib", |
| 14 [ |
| 15 d.file("foo.txt", "foo"), |
| 16 d.dir("sub", [d.file("bar.txt", "bar")])])]).create(); |
| 17 d.dir(appPath, [d.appPubspec({ |
| 18 "foo": { |
| 19 "path": "../foo" |
| 20 } |
| 21 }), |
| 22 d.dir("example", [d.file("index.html", "html")]), |
| 23 d.dir( |
| 24 "web", |
| 25 [ |
| 26 d.file("index.html", "html"), |
| 27 d.dir("sub", [d.file("index.html", "html")])])]).create(); |
| 28 schedulePub( |
| 29 args: ["build", "--all"], |
| 30 output: new RegExp(r'Built 7 files to "build".')); |
| 31 d.dir( |
| 32 appPath, |
| 33 [ |
| 34 d.dir( |
| 35 'build', |
| 36 [ |
| 37 d.dir( |
| 38 'example', |
| 39 [ |
| 40 d.file("index.html", "html"), |
| 41 d.dir( |
| 42 'packages', |
| 43 [ |
| 44 d.dir( |
| 45 'foo', |
| 46 [d.file('foo.txt', 'foo'), d.dir('sub',
[d.file('bar.txt', 'bar')])])])]), |
| 47 d.dir( |
| 48 'web', |
| 49 [ |
| 50 d.file("index.html", "html"), |
| 51 d.dir( |
| 52 'packages', |
| 53 [ |
| 54 d.dir( |
| 55 'foo', |
| 56 [d.file('foo.txt', 'foo'), d.dir('sub',
[d.file('bar.txt', 'bar')])])]), |
| 57 d.dir( |
| 58 "sub", |
| 59 [d.file("index.html", "html"), d.nothing("packag
es")])])])]).validate(); |
| 60 }); |
| 61 } |
OLD | NEW |