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

Side by Side Diff: pkg/path/test/path_windows_test.dart

Issue 11647003: Move path ("pathos") to pkg/. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Typo. Created 8 years 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 | « pkg/path/test/path_test.dart ('k') | tools/create_sdk.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library path_test; 5 library path_test;
6 6
7 import 'dart:io' as io; 7 import 'dart:io' as io;
8 8
9 import '../../../../pkg/unittest/lib/unittest.dart'; 9 // TODO(rnystrom): Use "package:" path when #7491 is fixed.
10 import '../../../pub/path.dart' as path; 10 import '../../unittest/lib/unittest.dart';
11 import '../lib/path.dart' as path;
11 12
12 main() { 13 main() {
13 var builder = new path.Builder(style: path.Style.windows, 14 var builder = new path.Builder(style: path.Style.windows,
14 root: r'C:\root\path'); 15 root: r'C:\root\path');
15 16
16 if (new path.Builder().style == path.Style.windows) { 17 if (new path.Builder().style == path.Style.windows) {
17 group('absolute', () { 18 group('absolute', () {
18 expect(path.absolute(r'a\b.txt'), path.join(path.current, r'a\b.txt')); 19 expect(path.absolute(r'a\b.txt'), path.join(path.current, r'a\b.txt'));
19 expect(path.absolute(r'C:\a\b.txt'), r'C:\a\b.txt'); 20 expect(path.absolute(r'C:\a\b.txt'), r'C:\a\b.txt');
20 expect(path.absolute(r'\\a\b.txt'), r'\\a\b.txt'); 21 expect(path.absolute(r'\\a\b.txt'), r'\\a\b.txt');
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 expect(builder.withoutExtension(r'a\b\'), r'a\b\'); 387 expect(builder.withoutExtension(r'a\b\'), r'a\b\');
387 expect(builder.withoutExtension(r'a\.'), r'a\.'); 388 expect(builder.withoutExtension(r'a\.'), r'a\.');
388 expect(builder.withoutExtension(r'a\.b'), r'a\.b'); 389 expect(builder.withoutExtension(r'a\.b'), r'a\.b');
389 expect(builder.withoutExtension(r'a.b\c'), r'a.b\c'); 390 expect(builder.withoutExtension(r'a.b\c'), r'a.b\c');
390 expect(builder.withoutExtension(r'a/b.c/d'), r'a/b.c/d'); 391 expect(builder.withoutExtension(r'a/b.c/d'), r'a/b.c/d');
391 expect(builder.withoutExtension(r'a\b/c'), r'a\b/c'); 392 expect(builder.withoutExtension(r'a\b/c'), r'a\b/c');
392 expect(builder.withoutExtension(r'a\b/c.d'), r'a\b/c'); 393 expect(builder.withoutExtension(r'a\b/c.d'), r'a\b/c');
393 expect(builder.withoutExtension(r'a.b/c'), r'a.b/c'); 394 expect(builder.withoutExtension(r'a.b/c'), r'a.b/c');
394 }); 395 });
395 } 396 }
OLDNEW
« no previous file with comments | « pkg/path/test/path_test.dart ('k') | tools/create_sdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698