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