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

Side by Side Diff: test/codegen/expect/language/compile_time_constant10_test_none_multi.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/compile_time_constant10_test_none_multi', null, / * Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__compile_time_constant10_test_none_multi(exports, dart_sdk, exp ect) {
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 compile_time_constant10_test_none_multi = Object.create(null);
11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
12 compile_time_constant10_test_none_multi.C = class C extends core.Object {
13 new(x) {
14 this.x = x;
15 }
16 static f3() {}
17 static f4() {}
18 };
19 dart.setSignature(compile_time_constant10_test_none_multi.C, {
20 constructors: () => ({new: dart.definiteFunctionType(compile_time_constant10 _test_none_multi.C, [dart.dynamic])}),
21 statics: () => ({
22 f3: dart.definiteFunctionType(dart.dynamic, []),
23 f4: dart.definiteFunctionType(dart.dynamic, [])
24 }),
25 names: ['f3', 'f4']
26 });
27 compile_time_constant10_test_none_multi.i1 = 1;
28 compile_time_constant10_test_none_multi.i2 = 2;
29 compile_time_constant10_test_none_multi.d1 = 1.5;
30 compile_time_constant10_test_none_multi.d2 = 2.5;
31 compile_time_constant10_test_none_multi.b1 = true;
32 compile_time_constant10_test_none_multi.b2 = false;
33 compile_time_constant10_test_none_multi.s1 = "1";
34 compile_time_constant10_test_none_multi.s2 = "2";
35 compile_time_constant10_test_none_multi.l1 = dart.constList([1, 2], core.int);
36 compile_time_constant10_test_none_multi.l2 = dart.constList([2, 3], core.int);
37 compile_time_constant10_test_none_multi.m1 = dart.const(dart.map({x: 1}));
38 compile_time_constant10_test_none_multi.m2 = dart.const(dart.map({x: 2}));
39 compile_time_constant10_test_none_multi.c1 = dart.const(new compile_time_const ant10_test_none_multi.C(1));
40 compile_time_constant10_test_none_multi.c2 = dart.const(new compile_time_const ant10_test_none_multi.C(2));
41 compile_time_constant10_test_none_multi.f1 = function() {
42 };
43 dart.fn(compile_time_constant10_test_none_multi.f1, VoidTodynamic());
44 compile_time_constant10_test_none_multi.f2 = function() {
45 };
46 dart.fn(compile_time_constant10_test_none_multi.f2, VoidTodynamic());
47 compile_time_constant10_test_none_multi.id = core.identical;
48 compile_time_constant10_test_none_multi.CT = class CT extends core.Object {
49 new(x1, x2) {
50 this.x1 = x1;
51 this.x2 = x2;
52 this.id = core.identical(x1, x2);
53 }
54 test(expect, name) {
55 dart.dcall(expect, this.id, dart.str`${name}: identical(${this.x1},${this. x2})`);
56 }
57 };
58 dart.setSignature(compile_time_constant10_test_none_multi.CT, {
59 constructors: () => ({new: dart.definiteFunctionType(compile_time_constant10 _test_none_multi.CT, [dart.dynamic, dart.dynamic])}),
60 methods: () => ({test: dart.definiteFunctionType(dart.void, [dart.functionTy pe(dart.void, [dart.dynamic, dart.dynamic]), dart.dynamic])})
61 });
62 compile_time_constant10_test_none_multi.trueTests = dart.constList([dart.const (new compile_time_constant10_test_none_multi.CT(2 - 1, compile_time_constant10_t est_none_multi.i1)), dart.const(new compile_time_constant10_test_none_multi.CT(1 + 1, compile_time_constant10_test_none_multi.i2)), dart.const(new compile_time_ constant10_test_none_multi.CT(2.5 - 1.0, compile_time_constant10_test_none_multi .d1)), dart.const(new compile_time_constant10_test_none_multi.CT(1.5 + 1.0, comp ile_time_constant10_test_none_multi.d2)), dart.const(new compile_time_constant10 _test_none_multi.CT(false || true, compile_time_constant10_test_none_multi.b1)), dart.const(new compile_time_constant10_test_none_multi.CT(true && false, compil e_time_constant10_test_none_multi.b2)), dart.const(new compile_time_constant10_t est_none_multi.CT(dart.str`${compile_time_constant10_test_none_multi.i1}`, compi le_time_constant10_test_none_multi.s1)), dart.const(new compile_time_constant10_ test_none_multi.CT(dart.str`${compile_time_constant10_test_none_multi.i2}`, comp ile_time_constant10_test_none_multi.s2)), dart.const(new compile_time_constant10 _test_none_multi.CT(dart.constList([compile_time_constant10_test_none_multi.i1, 2], core.int), compile_time_constant10_test_none_multi.l1)), dart.const(new comp ile_time_constant10_test_none_multi.CT(dart.constList([compile_time_constant10_t est_none_multi.i2, 3], core.int), compile_time_constant10_test_none_multi.l2)), dart.const(new compile_time_constant10_test_none_multi.CT(dart.const(dart.map({x : compile_time_constant10_test_none_multi.i1})), compile_time_constant10_test_no ne_multi.m1)), dart.const(new compile_time_constant10_test_none_multi.CT(dart.co nst(dart.map({x: compile_time_constant10_test_none_multi.i2})), compile_time_con stant10_test_none_multi.m2)), dart.const(new compile_time_constant10_test_none_m ulti.CT(dart.const(new compile_time_constant10_test_none_multi.C(compile_time_co nstant10_test_none_multi.i1)), compile_time_constant10_test_none_multi.c1)), dar t.const(new compile_time_constant10_test_none_multi.CT(dart.const(new compile_ti me_constant10_test_none_multi.C(compile_time_constant10_test_none_multi.i2)), co mpile_time_constant10_test_none_multi.c2)), dart.const(new compile_time_constant 10_test_none_multi.CT(compile_time_constant10_test_none_multi.f1, compile_time_c onstant10_test_none_multi.f1)), dart.const(new compile_time_constant10_test_none _multi.CT(compile_time_constant10_test_none_multi.f2, compile_time_constant10_te st_none_multi.f2)), dart.const(new compile_time_constant10_test_none_multi.CT(co mpile_time_constant10_test_none_multi.C.f3, compile_time_constant10_test_none_mu lti.C.f3)), dart.const(new compile_time_constant10_test_none_multi.CT(compile_ti me_constant10_test_none_multi.C.f4, compile_time_constant10_test_none_multi.C.f4 )), dart.const(new compile_time_constant10_test_none_multi.CT(compile_time_const ant10_test_none_multi.id, core.identical))], compile_time_constant10_test_none_m ulti.CT);
63 compile_time_constant10_test_none_multi.falseTests = dart.constList([dart.cons t(new compile_time_constant10_test_none_multi.CT(compile_time_constant10_test_no ne_multi.i1, compile_time_constant10_test_none_multi.i2)), dart.const(new compil e_time_constant10_test_none_multi.CT(compile_time_constant10_test_none_multi.d1, compile_time_constant10_test_none_multi.d2)), dart.const(new compile_time_const ant10_test_none_multi.CT(compile_time_constant10_test_none_multi.b1, compile_tim e_constant10_test_none_multi.b2)), dart.const(new compile_time_constant10_test_n one_multi.CT(compile_time_constant10_test_none_multi.s1, compile_time_constant10 _test_none_multi.s2)), dart.const(new compile_time_constant10_test_none_multi.CT (compile_time_constant10_test_none_multi.l1, compile_time_constant10_test_none_m ulti.l2)), dart.const(new compile_time_constant10_test_none_multi.CT(compile_tim e_constant10_test_none_multi.m1, compile_time_constant10_test_none_multi.m2)), d art.const(new compile_time_constant10_test_none_multi.CT(compile_time_constant10 _test_none_multi.c1, compile_time_constant10_test_none_multi.c2)), dart.const(ne w compile_time_constant10_test_none_multi.CT(compile_time_constant10_test_none_m ulti.f1, compile_time_constant10_test_none_multi.f2)), dart.const(new compile_ti me_constant10_test_none_multi.CT(compile_time_constant10_test_none_multi.i1, com pile_time_constant10_test_none_multi.d1)), dart.const(new compile_time_constant1 0_test_none_multi.CT(compile_time_constant10_test_none_multi.d1, compile_time_co nstant10_test_none_multi.b1)), dart.const(new compile_time_constant10_test_none_ multi.CT(compile_time_constant10_test_none_multi.b1, compile_time_constant10_tes t_none_multi.s1)), dart.const(new compile_time_constant10_test_none_multi.CT(com pile_time_constant10_test_none_multi.s1, compile_time_constant10_test_none_multi .l1)), dart.const(new compile_time_constant10_test_none_multi.CT(compile_time_co nstant10_test_none_multi.l1, compile_time_constant10_test_none_multi.m1)), dart. const(new compile_time_constant10_test_none_multi.CT(compile_time_constant10_tes t_none_multi.m1, compile_time_constant10_test_none_multi.c1)), dart.const(new co mpile_time_constant10_test_none_multi.CT(compile_time_constant10_test_none_multi .c1, compile_time_constant10_test_none_multi.f1)), dart.const(new compile_time_c onstant10_test_none_multi.CT(compile_time_constant10_test_none_multi.f1, compile _time_constant10_test_none_multi.C.f3)), dart.const(new compile_time_constant10_ test_none_multi.CT(compile_time_constant10_test_none_multi.C.f3, core.identical) ), dart.const(new compile_time_constant10_test_none_multi.CT(core.identical, com pile_time_constant10_test_none_multi.i1))], compile_time_constant10_test_none_mu lti.CT);
64 compile_time_constant10_test_none_multi.main = function() {
65 for (let i = 0; i < dart.notNull(compile_time_constant10_test_none_multi.tru eTests[dartx.length]); i++) {
66 compile_time_constant10_test_none_multi.trueTests[dartx.get](i).test(expec t$.Expect.isTrue, dart.str`true[${i}]`);
67 }
68 for (let i = 0; i < dart.notNull(compile_time_constant10_test_none_multi.fal seTests[dartx.length]); i++) {
69 compile_time_constant10_test_none_multi.falseTests[dartx.get](i).test(expe ct$.Expect.isFalse, dart.str`false[${i}]`);
70 }
71 };
72 dart.fn(compile_time_constant10_test_none_multi.main, VoidTodynamic());
73 // Exports:
74 exports.compile_time_constant10_test_none_multi = compile_time_constant10_test _none_multi;
75 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698