Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 import 'dart:io'; | |
| 6 | |
| 7 import "package:expect/expect.dart"; | |
| 8 | |
| 9 void testDeleteLongPathPrefix() { | |
| 10 var dir = Directory.systemTemp.createTempSync('dart_file_win'); | |
| 11 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.
| |
| 12 Expect.isTrue(prefixDir.existsSync()); | |
| 13 prefixDir.deleteSync(recursive: true); | |
| 14 Expect.isFalse(dir.existsSync()); | |
| 15 Expect.isFalse(prefixDir.existsSync()); | |
| 16 } | |
| 17 | |
| 18 | |
| 19 void main() { | |
| 20 // 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.
| |
| 21 testDeleteLongPathPrefix(); | |
| 22 } | |
| OLD | NEW |