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

Side by Side Diff: test/codegen/expect/corelib/map_index_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('corelib/map_index_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__map_index_test(exports, dart_sdk, expect) {
5 'use strict';
6 const core = dart_sdk.core;
7 const _interceptors = dart_sdk._interceptors;
8 const dart = dart_sdk.dart;
9 const dartx = dart_sdk.dartx;
10 const expect$ = expect.expect;
11 const map_index_test = Object.create(null);
12 let MapOfB$B = () => (MapOfB$B = dart.constFn(core.Map$(map_index_test.B, map_ index_test.B)))();
13 let JSArrayOfB = () => (JSArrayOfB = dart.constFn(_interceptors.JSArray$(map_i ndex_test.B)))();
14 let JSArrayOfMapOfB$B = () => (JSArrayOfMapOfB$B = dart.constFn(_interceptors. JSArray$(MapOfB$B())))();
15 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
16 map_index_test.A = class A extends core.Object {
17 new() {
18 }
19 };
20 dart.setSignature(map_index_test.A, {
21 constructors: () => ({new: dart.definiteFunctionType(map_index_test.A, [])})
22 });
23 map_index_test.B = class B extends map_index_test.A {
24 new() {
25 super.new();
26 }
27 };
28 dart.setSignature(map_index_test.B, {
29 constructors: () => ({new: dart.definiteFunctionType(map_index_test.B, [])})
30 });
31 let const$;
32 let const$0;
33 let const$1;
34 map_index_test.main = function() {
35 let map1 = MapOfB$B().new();
36 map1[dartx.set](const$ || (const$ = dart.const(new map_index_test.B())), con st$0 || (const$0 = dart.const(new map_index_test.B())));
37 let map2 = MapOfB$B().new();
38 let list = JSArrayOfB().of([const$1 || (const$1 = dart.const(new map_index_t est.B()))]);
39 let maps = JSArrayOfMapOfB$B().of([map1, map2]);
40 for (let map of maps) {
41 expect$.Expect.isNull(map[dartx.get](new map_index_test.A()));
42 }
43 };
44 dart.fn(map_index_test.main, VoidTodynamic());
45 // Exports:
46 exports.map_index_test = map_index_test;
47 });
OLDNEW
« no previous file with comments | « test/codegen/expect/corelib/map_from_test.js ('k') | test/codegen/expect/corelib/map_keys2_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698