| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 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 | 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 import "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; |
| 6 | 6 |
| 7 testNormalizePath() { | 7 testNormalizePath() { |
| 8 test(String expected, String path, {String scheme, String host}) { | 8 test(String expected, String path, {String scheme, String host}) { |
| 9 var uri = new Uri(scheme: scheme, host: host, path: path); | 9 var uri = new Uri(scheme: scheme, host: host, path: path); |
| 10 Expect.equals(expected, uri.toString()); | 10 Expect.equals(expected, uri.toString()); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 test("../a/b/c/", "./../a/b/c/"); | 68 test("../a/b/c/", "./../a/b/c/"); |
| 69 test("../a/b/c/", "./../a/b/c/."); | 69 test("../a/b/c/", "./../a/b/c/."); |
| 70 test("../a/b/c/", "./../a/b/c/z/./.."); | 70 test("../a/b/c/", "./../a/b/c/z/./.."); |
| 71 test("/", "/a/.."); | 71 test("/", "/a/.."); |
| 72 test("./", "a/.."); | 72 test("./", "a/.."); |
| 73 } | 73 } |
| 74 | 74 |
| 75 main() { | 75 main() { |
| 76 testNormalizePath(); | 76 testNormalizePath(); |
| 77 } | 77 } |
| OLD | NEW |