Chromium Code Reviews| Index: tests/standalone/io/file_windows_test.dart |
| diff --git a/tests/standalone/io/file_windows_test.dart b/tests/standalone/io/file_windows_test.dart |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e37d088f58854a0a6de4887bee5348be10c7ed16 |
| --- /dev/null |
| +++ b/tests/standalone/io/file_windows_test.dart |
| @@ -0,0 +1,22 @@ |
| +// Copyright (c) 2013, 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 'dart:io'; |
| + |
| +import "package:expect/expect.dart"; |
| + |
| +void testDeleteLongPathPrefix() { |
| + var dir = Directory.systemTemp.createTempSync('dart_file_win'); |
| + var prefixDir = new Directory('\\\\?\\${dir.path}'); |
|
Søren Gjesse
2014/02/04 13:53:05
Please create a number of sub directories so the l
Anders Johnsen
2014/02/04 14:00:21
Done.
|
| + Expect.isTrue(prefixDir.existsSync()); |
| + prefixDir.deleteSync(recursive: true); |
| + Expect.isFalse(dir.existsSync()); |
| + Expect.isFalse(prefixDir.existsSync()); |
| +} |
| + |
| + |
| +void main() { |
| + // if (!Platform.isWindows) return; |
|
Søren Gjesse
2014/02/04 13:53:05
Remember to un-comment this line.
Anders Johnsen
2014/02/04 14:00:21
Done.
|
| + testDeleteLongPathPrefix(); |
| +} |