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

Side by Side Diff: test/codegen/expect/language/map_literal7_test.js

Issue 2128353002: Check in codegen test expectations. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 dart_library.library('language/map_literal7_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__map_literal7_test(exports, dart_sdk, expect) {
5 'use strict';
6 const core = dart_sdk.core;
7 const dart = dart_sdk.dart;
8 const dartx = dart_sdk.dartx;
9 const expect$ = expect.expect;
10 const map_literal7_test = Object.create(null);
11 let MapOfString$int = () => (MapOfString$int = dart.constFn(core.Map$(core.Str ing, core.int)))();
12 let MapOfint$dynamic = () => (MapOfint$dynamic = dart.constFn(core.Map$(core.i nt, dart.dynamic)))();
13 let MapOfdynamic$String = () => (MapOfdynamic$String = dart.constFn(core.Map$( dart.dynamic, core.String)))();
14 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da rt.void, [])))();
15 let const$;
16 let const$0;
17 map_literal7_test.main = function() {
18 let m1 = const$ || (const$ = dart.const(dart.map({"0": 0, "1": 1})));
19 expect$.Expect.isTrue(core.Map.is(m1));
20 expect$.Expect.isTrue(MapOfString$int().is(m1));
21 expect$.Expect.isTrue(MapOfint$dynamic().is(m1));
22 expect$.Expect.isTrue(MapOfdynamic$String().is(m1));
23 let m2 = const$0 || (const$0 = dart.const(dart.map({"0": 0, "1": 1}, core.St ring, core.int)));
24 expect$.Expect.isTrue(core.Map.is(m2));
25 expect$.Expect.isTrue(MapOfString$int().is(m2));
26 expect$.Expect.isFalse(MapOfint$dynamic().is(m2));
27 expect$.Expect.isFalse(MapOfdynamic$String().is(m2));
28 };
29 dart.fn(map_literal7_test.main, VoidTovoid());
30 // Exports:
31 exports.map_literal7_test = map_literal7_test;
32 });
OLDNEW
« no previous file with comments | « test/codegen/expect/language/map_literal6_test.js ('k') | test/codegen/expect/language/map_literal8_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698