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

Side by Side Diff: test/codegen/expect/language/many_calls_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/many_calls_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__many_calls_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 many_calls_test = Object.create(null);
11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
12 many_calls_test.A = class A extends core.Object {
13 new() {
14 }
15 f1() {
16 return 1;
17 }
18 f2() {
19 return 2;
20 }
21 f3() {
22 return 3;
23 }
24 f4() {
25 return 4;
26 }
27 f5() {
28 return 5;
29 }
30 f6() {
31 return 6;
32 }
33 f7() {
34 return 7;
35 }
36 f8() {
37 return 8;
38 }
39 f9() {
40 return 9;
41 }
42 f11() {
43 return 11;
44 }
45 f12() {
46 return 12;
47 }
48 f13() {
49 return 13;
50 }
51 f14() {
52 return 14;
53 }
54 f15() {
55 return 15;
56 }
57 f16() {
58 return 16;
59 }
60 f17() {
61 return 17;
62 }
63 f18() {
64 return 18;
65 }
66 f19() {
67 return 19;
68 }
69 f20() {
70 return 20;
71 }
72 f21() {
73 return 21;
74 }
75 f22() {
76 return 22;
77 }
78 f23() {
79 return 23;
80 }
81 f24() {
82 return 24;
83 }
84 f25() {
85 return 25;
86 }
87 f26() {
88 return 26;
89 }
90 f27() {
91 return 27;
92 }
93 f28() {
94 return 28;
95 }
96 f29() {
97 return 29;
98 }
99 f30() {
100 return 30;
101 }
102 f31() {
103 return 31;
104 }
105 f32() {
106 return 32;
107 }
108 f33() {
109 return 33;
110 }
111 f34() {
112 return 34;
113 }
114 f35() {
115 return 35;
116 }
117 f36() {
118 return 36;
119 }
120 f37() {
121 return 37;
122 }
123 f38() {
124 return 38;
125 }
126 f39() {
127 return 39;
128 }
129 };
130 dart.setSignature(many_calls_test.A, {
131 constructors: () => ({new: dart.definiteFunctionType(many_calls_test.A, [])} ),
132 methods: () => ({
133 f1: dart.definiteFunctionType(dart.dynamic, []),
134 f2: dart.definiteFunctionType(dart.dynamic, []),
135 f3: dart.definiteFunctionType(dart.dynamic, []),
136 f4: dart.definiteFunctionType(dart.dynamic, []),
137 f5: dart.definiteFunctionType(dart.dynamic, []),
138 f6: dart.definiteFunctionType(dart.dynamic, []),
139 f7: dart.definiteFunctionType(dart.dynamic, []),
140 f8: dart.definiteFunctionType(dart.dynamic, []),
141 f9: dart.definiteFunctionType(dart.dynamic, []),
142 f11: dart.definiteFunctionType(dart.dynamic, []),
143 f12: dart.definiteFunctionType(dart.dynamic, []),
144 f13: dart.definiteFunctionType(dart.dynamic, []),
145 f14: dart.definiteFunctionType(dart.dynamic, []),
146 f15: dart.definiteFunctionType(dart.dynamic, []),
147 f16: dart.definiteFunctionType(dart.dynamic, []),
148 f17: dart.definiteFunctionType(dart.dynamic, []),
149 f18: dart.definiteFunctionType(dart.dynamic, []),
150 f19: dart.definiteFunctionType(dart.dynamic, []),
151 f20: dart.definiteFunctionType(dart.dynamic, []),
152 f21: dart.definiteFunctionType(dart.dynamic, []),
153 f22: dart.definiteFunctionType(dart.dynamic, []),
154 f23: dart.definiteFunctionType(dart.dynamic, []),
155 f24: dart.definiteFunctionType(dart.dynamic, []),
156 f25: dart.definiteFunctionType(dart.dynamic, []),
157 f26: dart.definiteFunctionType(dart.dynamic, []),
158 f27: dart.definiteFunctionType(dart.dynamic, []),
159 f28: dart.definiteFunctionType(dart.dynamic, []),
160 f29: dart.definiteFunctionType(dart.dynamic, []),
161 f30: dart.definiteFunctionType(dart.dynamic, []),
162 f31: dart.definiteFunctionType(dart.dynamic, []),
163 f32: dart.definiteFunctionType(dart.dynamic, []),
164 f33: dart.definiteFunctionType(dart.dynamic, []),
165 f34: dart.definiteFunctionType(dart.dynamic, []),
166 f35: dart.definiteFunctionType(dart.dynamic, []),
167 f36: dart.definiteFunctionType(dart.dynamic, []),
168 f37: dart.definiteFunctionType(dart.dynamic, []),
169 f38: dart.definiteFunctionType(dart.dynamic, []),
170 f39: dart.definiteFunctionType(dart.dynamic, [])
171 })
172 });
173 many_calls_test.B = class B extends many_calls_test.A {
174 new() {
175 super.new();
176 }
177 };
178 dart.setSignature(many_calls_test.B, {
179 constructors: () => ({new: dart.definiteFunctionType(many_calls_test.B, [])} )
180 });
181 many_calls_test.ManyCallsTest = class ManyCallsTest extends core.Object {
182 static testMain() {
183 let list = core.List.new(10);
184 for (let i = 0; i < (dart.notNull(list[dartx.length]) / 2)[dartx.truncate] (); i++) {
185 list[dartx.set](i, new many_calls_test.A());
186 }
187 for (let i = (dart.notNull(list[dartx.length]) / 2)[dartx.truncate](); i < dart.notNull(list[dartx.length]); i++) {
188 list[dartx.set](i, new many_calls_test.B());
189 }
190 for (let loop = 0; loop < 7; loop++) {
191 for (let i = 0; i < dart.notNull(list[dartx.length]); i++) {
192 expect$.Expect.equals(1, dart.dsend(list[dartx.get](i), 'f1'));
193 expect$.Expect.equals(2, dart.dsend(list[dartx.get](i), 'f2'));
194 expect$.Expect.equals(3, dart.dsend(list[dartx.get](i), 'f3'));
195 expect$.Expect.equals(4, dart.dsend(list[dartx.get](i), 'f4'));
196 expect$.Expect.equals(5, dart.dsend(list[dartx.get](i), 'f5'));
197 expect$.Expect.equals(6, dart.dsend(list[dartx.get](i), 'f6'));
198 expect$.Expect.equals(7, dart.dsend(list[dartx.get](i), 'f7'));
199 expect$.Expect.equals(8, dart.dsend(list[dartx.get](i), 'f8'));
200 expect$.Expect.equals(9, dart.dsend(list[dartx.get](i), 'f9'));
201 expect$.Expect.equals(11, dart.dsend(list[dartx.get](i), 'f11'));
202 expect$.Expect.equals(12, dart.dsend(list[dartx.get](i), 'f12'));
203 expect$.Expect.equals(13, dart.dsend(list[dartx.get](i), 'f13'));
204 expect$.Expect.equals(14, dart.dsend(list[dartx.get](i), 'f14'));
205 expect$.Expect.equals(15, dart.dsend(list[dartx.get](i), 'f15'));
206 expect$.Expect.equals(16, dart.dsend(list[dartx.get](i), 'f16'));
207 expect$.Expect.equals(17, dart.dsend(list[dartx.get](i), 'f17'));
208 expect$.Expect.equals(18, dart.dsend(list[dartx.get](i), 'f18'));
209 expect$.Expect.equals(19, dart.dsend(list[dartx.get](i), 'f19'));
210 expect$.Expect.equals(20, dart.dsend(list[dartx.get](i), 'f20'));
211 expect$.Expect.equals(21, dart.dsend(list[dartx.get](i), 'f21'));
212 expect$.Expect.equals(22, dart.dsend(list[dartx.get](i), 'f22'));
213 expect$.Expect.equals(23, dart.dsend(list[dartx.get](i), 'f23'));
214 expect$.Expect.equals(24, dart.dsend(list[dartx.get](i), 'f24'));
215 expect$.Expect.equals(25, dart.dsend(list[dartx.get](i), 'f25'));
216 expect$.Expect.equals(26, dart.dsend(list[dartx.get](i), 'f26'));
217 expect$.Expect.equals(27, dart.dsend(list[dartx.get](i), 'f27'));
218 expect$.Expect.equals(28, dart.dsend(list[dartx.get](i), 'f28'));
219 expect$.Expect.equals(29, dart.dsend(list[dartx.get](i), 'f29'));
220 expect$.Expect.equals(30, dart.dsend(list[dartx.get](i), 'f30'));
221 expect$.Expect.equals(31, dart.dsend(list[dartx.get](i), 'f31'));
222 expect$.Expect.equals(32, dart.dsend(list[dartx.get](i), 'f32'));
223 expect$.Expect.equals(33, dart.dsend(list[dartx.get](i), 'f33'));
224 expect$.Expect.equals(34, dart.dsend(list[dartx.get](i), 'f34'));
225 expect$.Expect.equals(35, dart.dsend(list[dartx.get](i), 'f35'));
226 expect$.Expect.equals(36, dart.dsend(list[dartx.get](i), 'f36'));
227 expect$.Expect.equals(37, dart.dsend(list[dartx.get](i), 'f37'));
228 expect$.Expect.equals(38, dart.dsend(list[dartx.get](i), 'f38'));
229 expect$.Expect.equals(39, dart.dsend(list[dartx.get](i), 'f39'));
230 }
231 }
232 }
233 };
234 dart.setSignature(many_calls_test.ManyCallsTest, {
235 statics: () => ({testMain: dart.definiteFunctionType(dart.dynamic, [])}),
236 names: ['testMain']
237 });
238 many_calls_test.main = function() {
239 many_calls_test.ManyCallsTest.testMain();
240 };
241 dart.fn(many_calls_test.main, VoidTodynamic());
242 // Exports:
243 exports.many_calls_test = many_calls_test;
244 });
OLDNEW
« no previous file with comments | « test/codegen/expect/language/malformed_type_test.js ('k') | test/codegen/expect/language/many_generic_instanceof_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698