| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 import 'package:scheduled_test/scheduled_test.dart'; | |
| 6 | |
| 7 import '../descriptor.dart' as d; | |
| 8 import '../test_pub.dart'; | |
| 9 | |
| 10 main() { | |
| 11 initConfig(); | |
| 12 | |
| 13 integration("includes assets from the 'lib' directory of dependencies", () { | |
| 14 // Dart2js can take a long time to compile dart code, so we increase the | |
| 15 // timeout to cope with that. | |
| 16 currentSchedule.timeout *= 3; | |
| 17 | |
| 18 d.dir( | |
| 19 "foo", | |
| 20 [ | |
| 21 d.libPubspec("foo", "0.0.1"), | |
| 22 d.dir( | |
| 23 "lib", | |
| 24 [ | |
| 25 d.file("foo.txt", "foo"), | |
| 26 d.dir("sub", [d.file("bar.txt", "bar"),])])]).create(); | |
| 27 | |
| 28 d.dir(appPath, [d.appPubspec({ | |
| 29 "foo": { | |
| 30 "path": "../foo" | |
| 31 } | |
| 32 }), | |
| 33 d.dir("example", [d.file("index.html", "html"),]), | |
| 34 d.dir( | |
| 35 "web", | |
| 36 [ | |
| 37 d.file("index.html", "html"), | |
| 38 d.dir("sub", [d.file("index.html", "html")])])]).create(); | |
| 39 | |
| 40 schedulePub( | |
| 41 args: ["build", "--all"], | |
| 42 output: new RegExp(r'Built 7 files to "build".')); | |
| 43 | |
| 44 d.dir( | |
| 45 appPath, | |
| 46 [ | |
| 47 d.dir( | |
| 48 'build', | |
| 49 [ | |
| 50 d.dir( | |
| 51 'example', | |
| 52 [ | |
| 53 d.file("index.html", "html"), | |
| 54 d.dir( | |
| 55 'packages', | |
| 56 [ | |
| 57 d.dir( | |
| 58 'foo', | |
| 59 [d.file('foo.txt', 'foo'), d.dir('sub',
[d.file('bar.txt', 'bar'),]),])])]), | |
| 60 d.dir( | |
| 61 'web', | |
| 62 [ | |
| 63 d.file("index.html", "html"), | |
| 64 d.dir( | |
| 65 'packages', | |
| 66 [ | |
| 67 d.dir( | |
| 68 'foo', | |
| 69 [d.file('foo.txt', 'foo'), d.dir('sub',
[d.file('bar.txt', 'bar'),]),])]), | |
| 70 d.dir( | |
| 71 "sub", | |
| 72 [ | |
| 73 d.file("index.html", "html"), | |
| 74 // "packages" should *only* be created in th
e top-level directory. | |
| 75 d.nothing("packages")])])])]).validate(); | |
| 76 }); | |
| 77 } | |
| OLD | NEW |