Chromium Code Reviews| Index: pkg/watcher/test/directory_watcher/windows_test.dart |
| diff --git a/pkg/watcher/test/directory_watcher/windows_test.dart b/pkg/watcher/test/directory_watcher/windows_test.dart |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3a16be6f75b5ae5ad703c10b0e6c741df3383557 |
| --- /dev/null |
| +++ b/pkg/watcher/test/directory_watcher/windows_test.dart |
| @@ -0,0 +1,26 @@ |
| +// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| +// for details. All rights reserved. Use of this source code is governed by a |
| +// BSD-style license that can be found in the LICENSE file. |
| + |
| +import 'package:scheduled_test/scheduled_test.dart'; |
| +import 'package:watcher/src/directory_watcher/windows.dart'; |
| +import 'package:watcher/watcher.dart'; |
| + |
| +import 'shared.dart'; |
| +import '../utils.dart'; |
| + |
| +main() { |
| + initConfig(); |
| + |
| + watcherFactory = (dir) => new WindowsDirectoryWatcher(dir); |
| + |
| + setUp(createSandbox); |
| + |
| + sharedTests(); |
| + |
|
Bob Nystrom
2014/06/03 17:37:01
Add a test that watches the root drive of the temp
Anders Johnsen
2014/06/04 08:46:47
Tried, but it started scanning my entire computer
|
| + test('DirectoryWatcher creates a WindowsDirectoryWatcher on Windows', () { |
| + expect(new DirectoryWatcher('.'), |
| + new isInstanceOf<WindowsDirectoryWatcher>()); |
| + }); |
| +} |
| + |