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

Unified Diff: test/codegen_expected/language/map_literal10_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
Index: test/codegen_expected/language/map_literal10_test.js
diff --git a/test/codegen_expected/language/map_literal10_test.js b/test/codegen_expected/language/map_literal10_test.js
index 9cddcf53476cb01dc4304c1a86245523d0b4a762..e64b5b1fa7afc0e6c51ab46ab87261813af5c7bf 100644
--- a/test/codegen_expected/language/map_literal10_test.js
+++ b/test/codegen_expected/language/map_literal10_test.js
@@ -17,25 +17,25 @@ dart_library.library('language/map_literal10_test', null, /* Imports */[
let const$1;
let const$2;
map_literal10_test.main = function() {
- let m1 = const$ || (const$ = dart.const(dart.map(["__proto__", 0, 1, 1])));
+ let m1 = const$ || (const$ = dart.const(dart.map(["__proto__", 0, 1, 1], core.Object, core.int)));
expect$.Expect.isTrue(m1[dartx.containsKey]("__proto__"));
expect$.Expect.equals(0, m1[dartx.get]("__proto__"));
expect$.Expect.isTrue(m1[dartx.containsKey](1));
expect$.Expect.equals(1, m1[dartx.get](1));
expect$.Expect.listEquals(JSArrayOfObject().of(["__proto__", 1]), m1[dartx.keys][dartx.toList]());
- let m2 = const$0 || (const$0 = dart.const(dart.map([1, 0, "__proto__", 1])));
+ let m2 = const$0 || (const$0 = dart.const(dart.map([1, 0, "__proto__", 1], core.Object, core.int)));
expect$.Expect.isTrue(m2[dartx.containsKey](1));
expect$.Expect.equals(0, m2[dartx.get](1));
expect$.Expect.isTrue(m2[dartx.containsKey]("__proto__"));
expect$.Expect.equals(1, m2[dartx.get]("__proto__"));
expect$.Expect.listEquals(JSArrayOfObject().of([1, "__proto__"]), m2[dartx.keys][dartx.toList]());
- let m3 = const$1 || (const$1 = dart.const(dart.map({"1": 0, __proto__: 1})));
+ let m3 = const$1 || (const$1 = dart.const(dart.map({"1": 0, __proto__: 1}, core.String, core.int)));
expect$.Expect.isTrue(m3[dartx.containsKey]("1"));
expect$.Expect.equals(0, m3[dartx.get]("1"));
expect$.Expect.isTrue(m3[dartx.containsKey]("__proto__"));
expect$.Expect.equals(1, m3[dartx.get]("__proto__"));
expect$.Expect.listEquals(JSArrayOfString().of(["1", "__proto__"]), m3[dartx.keys][dartx.toList]());
- let m4 = const$2 || (const$2 = dart.const(dart.map({__proto__: 1, "1": 2})));
+ let m4 = const$2 || (const$2 = dart.const(dart.map({__proto__: 1, "1": 2}, core.String, core.int)));
expect$.Expect.isTrue(m4[dartx.containsKey]("1"));
expect$.Expect.equals(2, m4[dartx.get]("1"));
expect$.Expect.isTrue(m4[dartx.containsKey]("__proto__"));
« no previous file with comments | « test/codegen_expected/language/list_tracer_in_map_test.js ('k') | test/codegen_expected/language/map_literal11_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698