| Index: tests/standalone/io/file_system_watcher_test.dart
|
| diff --git a/tests/standalone/io/file_system_watcher_test.dart b/tests/standalone/io/file_system_watcher_test.dart
|
| index 4540b608f2d25641304806594088fa208c348976..0ea8f0be1d9514fc493665759e5d04bfa498045c 100644
|
| --- a/tests/standalone/io/file_system_watcher_test.dart
|
| +++ b/tests/standalone/io/file_system_watcher_test.dart
|
| @@ -256,6 +256,18 @@ void testWatchNonRecursive() {
|
| }
|
|
|
|
|
| +void testWatchNonExisting() {
|
| + asyncStart();
|
| + new Directory('__some_none_existing_dir__').watch()
|
| + .listen((_) {
|
| + Expect.fail('unexpected error');
|
| + }, onError: (e) {
|
| + asyncEnd();
|
| + Expect.isTrue(e is FileSystemException);
|
| + });
|
| +}
|
| +
|
| +
|
| void main() {
|
| if (!FileSystemEntity.isWatchSupported) return;
|
| testWatchCreateFile();
|
| @@ -266,4 +278,5 @@ void main() {
|
| testWatchOnlyModifyFile();
|
| testMultipleEvents();
|
| testWatchNonRecursive();
|
| + testWatchNonExisting();
|
| }
|
|
|