blob: 3696f9cb91f2e4c0653e5a16c5d43382186d7285 [file] [log] [blame]
// 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.
@TestOn('windows')
import 'package:test/test.dart';
import 'package:watcher/src/directory_watcher/windows.dart';
import 'package:watcher/watcher.dart';
import 'shared.dart';
import '../utils.dart';
void main() {
watcherFactory = (dir) => new WindowsDirectoryWatcher(dir);
// TODO(grouma) - renable when https://github.com/dart-lang/sdk/issues/31760
// is resolved.
group("Shared Tests:", () {
sharedTests();
}, skip: "SDK issue see - https://github.com/dart-lang/sdk/issues/31760");
test('DirectoryWatcher creates a WindowsDirectoryWatcher on Windows', () {
expect(
new DirectoryWatcher('.'), new isInstanceOf<WindowsDirectoryWatcher>());
});
}