Index: test/directory_watcher/shared.dart |
diff --git a/test/directory_watcher/shared.dart b/test/directory_watcher/shared.dart |
index 86324014bf173392cfd75233c5c93d1fa2567b75..a4cec5e11654aef8553b79ee9f5cfc7e7635a823 100644 |
--- a/test/directory_watcher/shared.dart |
+++ b/test/directory_watcher/shared.dart |
@@ -121,6 +121,18 @@ void sharedTests() { |
renameFile("dir/old.txt", "new.txt"); |
expectRemoveEvent("dir/old.txt"); |
}); |
+ |
+ test('notifies when a file is moved onto an existing one', () { |
+ writeFile("from.txt"); |
+ writeFile("to.txt"); |
+ startWatcher(); |
+ |
+ renameFile("from.txt", "to.txt"); |
+ inAnyOrder([ |
+ isRemoveEvent("from.txt"), |
+ isModifyEvent("to.txt") |
+ ]); |
+ }); |
}); |
// Most of the time, when multiple filesystem actions happen in sequence, |