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

Side by Side Diff: tests/corelib_2/uri_normalize_test.dart

Issue 2983123002: Migrate test block 30 + corelib portion of block 31 to Dart 2.0. (Closed)
Patch Set: Addressed Bob's comments Created 3 years, 5 months 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
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « tests/corelib_2/uri_normalize_path_test.dart ('k') | tests/corelib_2/uri_parameters_all_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698