OLD | NEW |
(Empty) | |
| 1 import 'package:scheduled_test/scheduled_test.dart'; |
| 2 import 'package:path/path.dart' as path; |
| 3 import '../descriptor.dart' as d; |
| 4 import '../test_pub.dart'; |
| 5 main() { |
| 6 initConfig(); |
| 7 integration("handles long relative paths", () { |
| 8 currentSchedule.timeout *= 3; |
| 9 d.dir( |
| 10 "some_long_dependency_name", |
| 11 [ |
| 12 d.libPubspec("foo", "0.0.1"), |
| 13 d.dir("lib", [d.file("foo.txt", "foo")])]).create(); |
| 14 var longPath = ""; |
| 15 for (var i = 0; i < 100; i++) { |
| 16 longPath = path.join(longPath, "..", "some_long_dependency_name"); |
| 17 } |
| 18 d.dir(appPath, [d.appPubspec({ |
| 19 "foo": { |
| 20 "path": longPath |
| 21 } |
| 22 }), d.dir("web", [d.file("index.html", "html")])]).create(); |
| 23 schedulePub( |
| 24 args: ["build"], |
| 25 output: new RegExp(r'Built 2 files to "build".')); |
| 26 d.dir( |
| 27 appPath, |
| 28 [ |
| 29 d.dir( |
| 30 'build', |
| 31 [ |
| 32 d.dir( |
| 33 'web', |
| 34 [ |
| 35 d.file("index.html", "html"), |
| 36 d.dir('packages', [d.dir('foo', [d.file('foo.txt', '
foo')])])])])]).validate(); |
| 37 }); |
| 38 } |
OLD | NEW |