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

Unified Diff: test/codegen_expected/corelib/uri_parameters_all_test.js

Issue 2211293002: Reify type params on map literals (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Remove unnecessary null check Created 4 years, 4 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 | « test/codegen_expected/corelib/uri_http_test.js ('k') | test/codegen_expected/corelib/uri_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen_expected/corelib/uri_parameters_all_test.js
diff --git a/test/codegen_expected/corelib/uri_parameters_all_test.js b/test/codegen_expected/corelib/uri_parameters_all_test.js
index 08b48ed47f07c8eedb40aa596f3c429972dc7e62..77d23c9a9f55d5ba36b02985356b6fd3db6cc84f 100644
--- a/test/codegen_expected/corelib/uri_parameters_all_test.js
+++ b/test/codegen_expected/corelib/uri_parameters_all_test.js
@@ -10,6 +10,7 @@ dart_library.library('corelib/uri_parameters_all_test', null, /* Imports */[
const expect$ = expect.expect;
const uri_parameters_all_test = Object.create(null);
let JSArrayOfString = () => (JSArrayOfString = dart.constFn(_interceptors.JSArray$(core.String)))();
+ let ListOfString = () => (ListOfString = dart.constFn(core.List$(core.String)))();
let MapOfString$dynamic = () => (MapOfString$dynamic = dart.constFn(core.Map$(core.String, dart.dynamic)))();
let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
let ListTodynamic = () => (ListTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [core.List])))();
@@ -20,14 +21,14 @@ dart_library.library('corelib/uri_parameters_all_test', null, /* Imports */[
uri_parameters_all_test.testAll(JSArrayOfString().of(["a"]));
uri_parameters_all_test.testAll(JSArrayOfString().of(["", ""]));
uri_parameters_all_test.testAll(JSArrayOfString().of(["baz"]));
- uri_parameters_all_test.testParse("z&y&w&z", dart.map({z: JSArrayOfString().of(["", ""]), y: JSArrayOfString().of([""]), w: JSArrayOfString().of([""])}));
- uri_parameters_all_test.testParse("x=42&y=42&x=37&y=37", dart.map({x: JSArrayOfString().of(["42", "37"]), y: JSArrayOfString().of(["42", "37"])}));
- uri_parameters_all_test.testParse("x&x&x&x&x", dart.map({x: JSArrayOfString().of(["", "", "", "", ""])}));
- uri_parameters_all_test.testParse("x=&&y", dart.map({x: JSArrayOfString().of([""]), y: JSArrayOfString().of([""])}));
+ uri_parameters_all_test.testParse("z&y&w&z", dart.map({z: JSArrayOfString().of(["", ""]), y: JSArrayOfString().of([""]), w: JSArrayOfString().of([""])}, core.String, ListOfString()));
+ uri_parameters_all_test.testParse("x=42&y=42&x=37&y=37", dart.map({x: JSArrayOfString().of(["42", "37"]), y: JSArrayOfString().of(["42", "37"])}, core.String, ListOfString()));
+ uri_parameters_all_test.testParse("x&x&x&x&x", dart.map({x: JSArrayOfString().of(["", "", "", "", ""])}, core.String, ListOfString()));
+ uri_parameters_all_test.testParse("x=&&y", dart.map({x: JSArrayOfString().of([""]), y: JSArrayOfString().of([""])}, core.String, ListOfString()));
};
dart.fn(uri_parameters_all_test.main, VoidTodynamic());
uri_parameters_all_test.testAll = function(values) {
- let uri = core.Uri.new({scheme: "foo", path: "bar", queryParameters: dart.map({baz: values})});
+ let uri = core.Uri.new({scheme: "foo", path: "bar", queryParameters: dart.map({baz: values}, core.String, dart.dynamic)});
let list = uri.queryParametersAll[dartx.get]("baz");
expect$.Expect.listEquals(values, list);
};
« no previous file with comments | « test/codegen_expected/corelib/uri_http_test.js ('k') | test/codegen_expected/corelib/uri_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698