OLD | NEW |
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 // Test the Path class in dart:io. | 5 // Test the Path class in dart:io. |
6 | 6 |
| 7 import "package:expect/expect.dart"; |
7 import "dart:io"; | 8 import "dart:io"; |
8 | 9 |
9 void main() { | 10 void main() { |
10 testBaseFunctions(); | 11 testBaseFunctions(); |
11 testRaw(); | 12 testRaw(); |
12 testToNativePath(); | 13 testToNativePath(); |
13 testCanonicalize(); | 14 testCanonicalize(); |
14 testJoinAppend(); | 15 testJoinAppend(); |
15 testRelativeTo(); | 16 testRelativeTo(); |
16 testWindowsShare(); | 17 testWindowsShare(); |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 Expect.equals('../../c', CPath.relativeTo(cPath).toString()); | 332 Expect.equals('../../c', CPath.relativeTo(cPath).toString()); |
332 Expect.equals('../b/d', cPath.relativeTo(CPath).toString()); | 333 Expect.equals('../b/d', cPath.relativeTo(CPath).toString()); |
333 Expect.equals('.', DPath.relativeTo(DPath).toString()); | 334 Expect.equals('.', DPath.relativeTo(DPath).toString()); |
334 Expect.equals('.', NoPath.relativeTo(NoPath).toString()); | 335 Expect.equals('.', NoPath.relativeTo(NoPath).toString()); |
335 Expect.equals('.', C2Path.relativeTo(cPath).toString()); | 336 Expect.equals('.', C2Path.relativeTo(cPath).toString()); |
336 Expect.equals('..', C3Path.relativeTo(cPath).toString()); | 337 Expect.equals('..', C3Path.relativeTo(cPath).toString()); |
337 Expect.equals('d', cPath.relativeTo(C3Path).toString()); | 338 Expect.equals('d', cPath.relativeTo(C3Path).toString()); |
338 Expect.equals('a/b/d', cPath.relativeTo(C4Path).toString()); | 339 Expect.equals('a/b/d', cPath.relativeTo(C4Path).toString()); |
339 Expect.equals('../../../', C4Path.relativeTo(cPath).toString()); | 340 Expect.equals('../../../', C4Path.relativeTo(cPath).toString()); |
340 } | 341 } |
OLD | NEW |