| Index: pkg/watcher/test/directory_watcher/shared.dart
|
| diff --git a/pkg/watcher/test/directory_watcher/shared.dart b/pkg/watcher/test/directory_watcher/shared.dart
|
| index 849cea00dcc1580c90e2680c9f6a1327b50985db..d3575ea4d4380193444bf97d8cf2eb4144a09162 100644
|
| --- a/pkg/watcher/test/directory_watcher/shared.dart
|
| +++ b/pkg/watcher/test/directory_watcher/shared.dart
|
| @@ -78,6 +78,20 @@ sharedTests() {
|
| ]);
|
| });
|
|
|
| + test('when the watched directory is moved, removes all files', () {
|
| + writeFile("dir/a.txt");
|
| + writeFile("dir/b.txt");
|
| +
|
| + startWatcher(dir: "dir");
|
| +
|
| + renameDir("dir", "moved_dir");
|
| + createDir("dir");
|
| + inAnyOrder([
|
| + isRemoveEvent("dir/a.txt"),
|
| + isRemoveEvent("dir/b.txt")
|
| + ]);
|
| + });
|
| +
|
| group("moves", () {
|
| test('notifies when a file is moved within the watched directory', () {
|
| writeFile("old.txt");
|
|
|