| Index: sdk/lib/_internal/pub_generated/test/serve/native_watch_replaced_file_test.dart
|
| diff --git a/sdk/lib/_internal/pub/test/serve/native_watch_replaced_file_test.dart b/sdk/lib/_internal/pub_generated/test/serve/native_watch_replaced_file_test.dart
|
| similarity index 69%
|
| copy from sdk/lib/_internal/pub/test/serve/native_watch_replaced_file_test.dart
|
| copy to sdk/lib/_internal/pub_generated/test/serve/native_watch_replaced_file_test.dart
|
| index 8a01ae1114a0c57218adcdf6f38d4dc5d00dd299..b25721690f0fce764f6cf15bf87bc116470fdd34 100644
|
| --- a/sdk/lib/_internal/pub/test/serve/native_watch_replaced_file_test.dart
|
| +++ b/sdk/lib/_internal/pub_generated/test/serve/native_watch_replaced_file_test.dart
|
| @@ -18,21 +18,17 @@ main() {
|
| // This is a regression test for http://dartbug.com/21402.
|
| initConfig();
|
| withBarbackVersions("any", () {
|
| - integration("picks up files replaced after serving started when using the "
|
| - "native watcher", () {
|
| - d.dir(appPath, [
|
| - d.pubspec({
|
| + integration(
|
| + "picks up files replaced after serving started when using the "
|
| + "native watcher",
|
| + () {
|
| + d.dir(appPath, [d.pubspec({
|
| "name": "myapp",
|
| "transformers": ["myapp/src/transformer"]
|
| }),
|
| - d.dir("lib", [d.dir("src", [
|
| - d.file("transformer.dart", REWRITE_TRANSFORMER)
|
| - ])]),
|
| - d.dir("web", [
|
| - d.file("file.txt", "before"),
|
| - ]),
|
| - d.file("other", "after")
|
| - ]).create();
|
| + d.dir("lib", [d.dir("src", [d.file("transformer.dart", REWRITE_TRANSFORMER)])]),
|
| + d.dir("web", [d.file("file.txt", "before"),]),
|
| + d.file("other", "after")]).create();
|
|
|
| createLockFile("myapp", pkg: ["barback"]);
|
|
|
| @@ -42,8 +38,11 @@ main() {
|
|
|
| schedule(() {
|
| // Replace file.txt by renaming other on top of it.
|
| - return new File(p.join(sandboxDir, appPath, "other"))
|
| - .rename(p.join(sandboxDir, appPath, "web", "file.txt"));
|
| + return new File(
|
| + p.join(
|
| + sandboxDir,
|
| + appPath,
|
| + "other")).rename(p.join(sandboxDir, appPath, "web", "file.txt"));
|
| });
|
|
|
| // Read the transformed file to ensure the change is actually noticed by
|
|
|