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

Unified Diff: tests/corelib/uri_test.dart

Issue 1895473004: Make dart:core strong-mode clean. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments. Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/core/uri.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/uri_test.dart
diff --git a/tests/corelib/uri_test.dart b/tests/corelib/uri_test.dart
index fd281c50574671bb613c49ed491ad1050f636c8b..f1dce7a9195618d791bc5907cbf7e44f15cf3a3d 100644
--- a/tests/corelib/uri_test.dart
+++ b/tests/corelib/uri_test.dart
@@ -407,7 +407,8 @@ void testReplace() {
var fragment = uri1.hasFragment ? uri1.fragment : null;
var tmp1 = uri1;
- test() {
+
+ void test() {
var tmp2 = new Uri(scheme: scheme, userInfo: userInfo, host: host,
port: port, path: path,
query: query == "" ? null : query,
@@ -452,6 +453,14 @@ void testReplace() {
var uri = Uri.parse("/no-authorty/");
uri = uri.replace(fragment: "fragment");
Expect.isFalse(uri.hasAuthority);
+
+ uri = new Uri(scheme: "foo", path: "bar");
+ uri = uri.replace(
+ queryParameters: {"x": ["42", "37"], "y": ["43", "38"]});
+ var params = uri.queryParametersAll;
+ Expect.equals(2, params.length);
+ Expect.listEquals(["42", "37"], params["x"]);
+ Expect.listEquals(["43", "38"], params["y"]);
}
main() {
« no previous file with comments | « sdk/lib/core/uri.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698