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

Side by Side Diff: test/codegen/expect/language/conditional_property_assignment_test_25_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/conditional_property_assignment_test_25_multi', n ull, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__conditional_property_assignment_test_25_multi(exports, dart_sd k, 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 conditional_property_assignment_test_25_multi = Object.create(null);
11 const conditional_access_helper = Object.create(null);
12 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
13 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun ctionType(dart.dynamic, [dart.dynamic])))();
14 let VoidToC = () => (VoidToC = dart.constFn(dart.definiteFunctionType(conditio nal_property_assignment_test_25_multi.C, [])))();
15 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da rt.void, [])))();
16 let VoidToC$ = () => (VoidToC$ = dart.constFn(dart.definiteFunctionType(condit ional_access_helper.C, [])))();
17 conditional_property_assignment_test_25_multi.bad = function() {
18 expect$.Expect.fail('Should not be executed');
19 };
20 dart.fn(conditional_property_assignment_test_25_multi.bad, VoidTodynamic());
21 conditional_property_assignment_test_25_multi.noMethod = function(e) {
22 return core.NoSuchMethodError.is(e);
23 };
24 dart.fn(conditional_property_assignment_test_25_multi.noMethod, dynamicTodynam ic());
25 conditional_property_assignment_test_25_multi.B = class B extends core.Object {};
26 conditional_property_assignment_test_25_multi.C = class C extends conditional_ property_assignment_test_25_multi.B {
27 new(v) {
28 this.v = v;
29 }
30 };
31 dart.setSignature(conditional_property_assignment_test_25_multi.C, {
32 constructors: () => ({new: dart.definiteFunctionType(conditional_property_as signment_test_25_multi.C, [core.int])})
33 });
34 conditional_property_assignment_test_25_multi.C.staticInt = null;
35 conditional_property_assignment_test_25_multi.D = class D extends core.Object {
36 new(v) {
37 this.v = v;
38 }
39 };
40 dart.setSignature(conditional_property_assignment_test_25_multi.D, {
41 constructors: () => ({new: dart.definiteFunctionType(conditional_property_as signment_test_25_multi.D, [conditional_property_assignment_test_25_multi.E])})
42 });
43 conditional_property_assignment_test_25_multi.D.staticE = null;
44 conditional_property_assignment_test_25_multi.E = class E extends core.Object {
45 ['+'](i) {
46 return new conditional_property_assignment_test_25_multi.I();
47 }
48 };
49 dart.setSignature(conditional_property_assignment_test_25_multi.E, {
50 methods: () => ({'+': dart.definiteFunctionType(conditional_property_assignm ent_test_25_multi.G, [core.int])})
51 });
52 conditional_property_assignment_test_25_multi.F = class F extends core.Object {};
53 conditional_property_assignment_test_25_multi.G = class G extends conditional_ property_assignment_test_25_multi.E {};
54 conditional_property_assignment_test_25_multi.G[dart.implements] = () => [cond itional_property_assignment_test_25_multi.F];
55 conditional_property_assignment_test_25_multi.H = class H extends core.Object {};
56 conditional_property_assignment_test_25_multi.I = class I extends conditional_ property_assignment_test_25_multi.G {};
57 conditional_property_assignment_test_25_multi.I[dart.implements] = () => [cond itional_property_assignment_test_25_multi.H];
58 conditional_property_assignment_test_25_multi.nullC = function() {
59 return null;
60 };
61 dart.fn(conditional_property_assignment_test_25_multi.nullC, VoidToC());
62 conditional_property_assignment_test_25_multi.main = function() {
63 let l = conditional_property_assignment_test_25_multi.nullC();
64 l == null ? null : l.v = 1;
65 {
66 conditional_property_assignment_test_25_multi.D.staticE = new conditional_ property_assignment_test_25_multi.E();
67 let g = new conditional_property_assignment_test_25_multi.G();
68 let f = conditional_property_assignment_test_25_multi.D == null ? null : c onditional_property_assignment_test_25_multi.D.staticE = g;
69 expect$.Expect.identical(f, g);
70 }
71 };
72 dart.fn(conditional_property_assignment_test_25_multi.main, VoidTodynamic());
73 conditional_access_helper.topLevelVar = null;
74 conditional_access_helper.topLevelFunction = function() {
75 };
76 dart.fn(conditional_access_helper.topLevelFunction, VoidTovoid());
77 conditional_access_helper.C = class C extends core.Object {
78 static staticF(callback) {
79 return callback();
80 }
81 static staticG(callback) {
82 return callback();
83 }
84 };
85 dart.setSignature(conditional_access_helper.C, {
86 statics: () => ({
87 staticF: dart.definiteFunctionType(dart.dynamic, [dart.functionType(dart.d ynamic, [])]),
88 staticG: dart.definiteFunctionType(core.int, [dart.functionType(core.int, [])])
89 }),
90 names: ['staticF', 'staticG']
91 });
92 conditional_access_helper.C.staticInt = null;
93 conditional_access_helper.nullC = function() {
94 return null;
95 };
96 dart.fn(conditional_access_helper.nullC, VoidToC$());
97 conditional_access_helper.D = class D extends core.Object {};
98 conditional_access_helper.D.staticE = null;
99 conditional_access_helper.E = class E extends core.Object {
100 ['+'](i) {
101 return new conditional_access_helper.I();
102 }
103 ['-'](i) {
104 return new conditional_access_helper.I();
105 }
106 };
107 dart.setSignature(conditional_access_helper.E, {
108 methods: () => ({
109 '+': dart.definiteFunctionType(conditional_access_helper.G, [core.int]),
110 '-': dart.definiteFunctionType(conditional_access_helper.G, [core.int])
111 })
112 });
113 conditional_access_helper.F = class F extends core.Object {};
114 conditional_access_helper.G = class G extends conditional_access_helper.E {};
115 conditional_access_helper.G[dart.implements] = () => [conditional_access_helpe r.F];
116 conditional_access_helper.H = class H extends core.Object {};
117 conditional_access_helper.I = class I extends conditional_access_helper.G {};
118 conditional_access_helper.I[dart.implements] = () => [conditional_access_helpe r.H];
119 // Exports:
120 exports.conditional_property_assignment_test_25_multi = conditional_property_a ssignment_test_25_multi;
121 exports.conditional_access_helper = conditional_access_helper;
122 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698