Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: tests/standalone/io/file_windows_test.dart

Issue 145623011: Allow paths up to 32767 characters on Windows (so '\\?\' can be used). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix test. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/bin/directory_win.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 dirPath = "\\\\?\\${dir.path}";
12 var subPath = dirPath;
13 for (int i = 0; i < 16; i++) {
14 subPath += "\\a-long-path-segment";
15 dir = new Directory(subPath)..createSync();
16 }
17 Expect.isTrue(dir.path.length > 256);
18 var prefixDir = new Directory(dirPath);
19 Expect.isTrue(prefixDir.existsSync());
20 prefixDir.deleteSync(recursive: true);
21 Expect.isFalse(dir.existsSync());
22 Expect.isFalse(prefixDir.existsSync());
23 }
24
25
26 void main() {
27 if (!Platform.isWindows) return;
28 testDeleteLongPathPrefix();
29 }
OLDNEW
« no previous file with comments | « runtime/bin/directory_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698