mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 16:41:07 +00:00
Strong mode fix for uri_query_test.dart
The local function test() in testQueryParameters() expects its map to have type Map<String, String>. Most of the time this happens automatically by type inference, but when we create the map using `var map = new Map()` we need to specify the type arguments explicitly. Change-Id: I2c6c868af776c3fbd25d862ac8a5bfb9147715dc Reviewed-on: https://dart-review.googlesource.com/19454 Commit-Queue: Paul Berry <paulberry@google.com> Reviewed-by: Bob Nystrom <rnystrom@google.com>
This commit is contained in:
parent
1712abdeec
commit
6a31d08d59
|
@ -206,7 +206,6 @@ list_removeat_test: RuntimeError # Issue 29921
|
|||
list_replace_range_test: RuntimeError # Issue 29921
|
||||
list_set_all_test: RuntimeError # Issue 29921
|
||||
json_map_test: RuntimeError # Issue 29921
|
||||
uri_query_test: RuntimeError # Issue 29921 - runtime cast failure
|
||||
int_parse_radix_test/01: RuntimeError # Issue 29921
|
||||
int_parse_radix_test/02: RuntimeError # Issue 29921
|
||||
integer_to_radix_string_test: RuntimeError # Issue 29921
|
||||
|
|
|
@ -105,7 +105,7 @@ void testQueryParameters() {
|
|||
test("a=$encodedStr", {"a": unencodedStr});
|
||||
test("a=$encodedStr&b=$encodedStr", {"a": unencodedStr, "b": unencodedStr});
|
||||
|
||||
var map = new Map();
|
||||
var map = <String, String>{};
|
||||
map[unencodedStr] = unencodedStr;
|
||||
test("$encodedStr=$encodedStr", map);
|
||||
test("$encodedStr=$allEncoded", map, "$encodedStr=$encodedStr");
|
||||
|
|
Loading…
Reference in a new issue