| 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 testCanonicalize(); | 13 testCanonicalize(); |
| 13 testJoinAppend(); | 14 testJoinAppend(); |
| 14 testRelativeTo(); | 15 testRelativeTo(); |
| 15 testWindowsShare(); | 16 testWindowsShare(); |
| 16 } | 17 } |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 Expect.isTrue(canonical.toString().startsWith('/share/a')); | 295 Expect.isTrue(canonical.toString().startsWith('/share/a')); |
| 295 Expect.isTrue(canonical.toNativePath().startsWith(r'\\share\a')); | 296 Expect.isTrue(canonical.toNativePath().startsWith(r'\\share\a')); |
| 296 Expect.listEquals(['share', 'a', 'c'], canonical.segments()); | 297 Expect.listEquals(['share', 'a', 'c'], canonical.segments()); |
| 297 var appended = canonical.append('d'); | 298 var appended = canonical.append('d'); |
| 298 Expect.isTrue(appended.isAbsolute); | 299 Expect.isTrue(appended.isAbsolute); |
| 299 Expect.isTrue(appended.isWindowsShare); | 300 Expect.isTrue(appended.isWindowsShare); |
| 300 var directoryPath = canonical.directoryPath; | 301 var directoryPath = canonical.directoryPath; |
| 301 Expect.isTrue(directoryPath.isAbsolute); | 302 Expect.isTrue(directoryPath.isAbsolute); |
| 302 Expect.isTrue(directoryPath.isWindowsShare); | 303 Expect.isTrue(directoryPath.isWindowsShare); |
| 303 } | 304 } |
| OLD | NEW |