| Index: sdk/lib/_internal/pub_generated/test/build/handles_long_paths_test.dart
|
| diff --git a/sdk/lib/_internal/pub/test/build/handles_long_paths_test.dart b/sdk/lib/_internal/pub_generated/test/build/handles_long_paths_test.dart
|
| similarity index 66%
|
| copy from sdk/lib/_internal/pub/test/build/handles_long_paths_test.dart
|
| copy to sdk/lib/_internal/pub_generated/test/build/handles_long_paths_test.dart
|
| index 3b8b17b60e42b010a5811eccead0111cddef2dc4..094938e9d4a41fc3de406b26f7a087d8826976ef 100644
|
| --- a/sdk/lib/_internal/pub/test/build/handles_long_paths_test.dart
|
| +++ b/sdk/lib/_internal/pub_generated/test/build/handles_long_paths_test.dart
|
| @@ -31,43 +31,38 @@ main() {
|
| // timeout to cope with that.
|
| currentSchedule.timeout *= 3;
|
|
|
| - d.dir("some_long_dependency_name", [
|
| - d.libPubspec("foo", "0.0.1"),
|
| - d.dir("lib", [
|
| - d.file("foo.txt", "foo")
|
| - ])
|
| - ]).create();
|
| + d.dir(
|
| + "some_long_dependency_name",
|
| + [
|
| + d.libPubspec("foo", "0.0.1"),
|
| + d.dir("lib", [d.file("foo.txt", "foo")])]).create();
|
|
|
| // Build a 2,800 character (non-canonicalized) path.
|
| var longPath = "";
|
| - for (var i = 0; i < 100; i++)
|
| - {
|
| + for (var i = 0; i < 100; i++) {
|
| longPath = path.join(longPath, "..", "some_long_dependency_name");
|
| }
|
|
|
| - d.dir(appPath, [
|
| - d.appPubspec({
|
| - "foo": {"path": longPath}
|
| - }),
|
| - d.dir("web", [
|
| - d.file("index.html", "html"),
|
| - ])
|
| - ]).create();
|
| + d.dir(appPath, [d.appPubspec({
|
| + "foo": {
|
| + "path": longPath
|
| + }
|
| + }), d.dir("web", [d.file("index.html", "html"),])]).create();
|
|
|
| - schedulePub(args: ["build"],
|
| + schedulePub(
|
| + args: ["build"],
|
| output: new RegExp(r'Built 2 files to "build".'));
|
|
|
| - d.dir(appPath, [
|
| - d.dir('build', [
|
| - d.dir('web', [
|
| - d.file("index.html", "html"),
|
| - d.dir('packages', [
|
| - d.dir('foo', [
|
| - d.file('foo.txt', 'foo')
|
| - ])
|
| - ])
|
| - ])
|
| - ])
|
| - ]).validate();
|
| + d.dir(
|
| + appPath,
|
| + [
|
| + d.dir(
|
| + 'build',
|
| + [
|
| + d.dir(
|
| + 'web',
|
| + [
|
| + d.file("index.html", "html"),
|
| + d.dir('packages', [d.dir('foo', [d.file('foo.txt', 'foo')])])])])]).validate();
|
| });
|
| }
|
|
|