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

Unified Diff: test/codegen_expected/corelib/map_from_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/json_map_test.js ('k') | test/codegen_expected/corelib/map_keys2_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen_expected/corelib/map_from_test.js
diff --git a/test/codegen_expected/corelib/map_from_test.js b/test/codegen_expected/corelib/map_from_test.js
index 634b4836040e524bb447373c50f25c6be7266f25..e35be340a078cebc7ac2397d3cda19438c4b55b2 100644
--- a/test/codegen_expected/corelib/map_from_test.js
+++ b/test/codegen_expected/corelib/map_from_test.js
@@ -21,7 +21,7 @@ dart_library.library('corelib/map_from_test', null, /* Imports */[
dart.fn(map_from_test.main, VoidTodynamic());
let const$;
map_from_test.testWithConstMap = function() {
- let map = const$ || (const$ = dart.const(dart.map({b: 42, a: 43})));
+ let map = const$ || (const$ = dart.const(dart.map({b: 42, a: 43}, core.String, core.int)));
let otherMap = core.Map.from(map);
expect$.Expect.isTrue(core.Map.is(otherMap));
expect$.Expect.isTrue(collection.HashMap.is(otherMap));
@@ -41,7 +41,7 @@ dart_library.library('corelib/map_from_test', null, /* Imports */[
};
dart.fn(map_from_test.testWithConstMap, VoidTodynamic());
map_from_test.testWithNonConstMap = function() {
- let map = dart.map({b: 42, a: 43});
+ let map = dart.map({b: 42, a: 43}, core.String, core.int);
let otherMap = core.Map.from(map);
expect$.Expect.isTrue(core.Map.is(otherMap));
expect$.Expect.isTrue(collection.HashMap.is(otherMap));
@@ -74,7 +74,7 @@ dart_library.library('corelib/map_from_test', null, /* Imports */[
dart.fn(map_from_test.testWithNonConstMap, VoidTodynamic());
let const$0;
map_from_test.testWithHashMap = function() {
- let map = const$0 || (const$0 = dart.const(dart.map({b: 1, a: 2, c: 3})));
+ let map = const$0 || (const$0 = dart.const(dart.map({b: 1, a: 2, c: 3}, core.String, core.int)));
let otherMap = collection.HashMap.from(map);
expect$.Expect.isTrue(core.Map.is(otherMap));
expect$.Expect.isTrue(collection.HashMap.is(otherMap));
@@ -87,7 +87,7 @@ dart_library.library('corelib/map_from_test', null, /* Imports */[
dart.fn(map_from_test.testWithHashMap, VoidTodynamic());
let const$1;
map_from_test.testWithLinkedMap = function() {
- let map = const$1 || (const$1 = dart.const(dart.map({b: 1, a: 2, c: 3})));
+ let map = const$1 || (const$1 = dart.const(dart.map({b: 1, a: 2, c: 3}, core.String, core.int)));
let otherMap = collection.LinkedHashMap.from(map);
expect$.Expect.isTrue(core.Map.is(otherMap));
expect$.Expect.isTrue(collection.HashMap.is(otherMap));
« no previous file with comments | « test/codegen_expected/corelib/json_map_test.js ('k') | test/codegen_expected/corelib/map_keys2_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698