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

Side by Side Diff: test/codegen/expect/corelib/apply4_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
« no previous file with comments | « test/codegen/expect/corelib/apply3_test.js ('k') | test/codegen/expect/corelib/apply_test.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 dart_library.library('corelib/apply4_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__apply4_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 apply4_test = Object.create(null);
12 let JSArrayOfString = () => (JSArrayOfString = dart.constFn(_interceptors.JSAr ray$(core.String)))();
13 let JSArrayOfObject = () => (JSArrayOfObject = dart.constFn(_interceptors.JSAr ray$(core.Object)))();
14 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
15 apply4_test.A = class A extends core.Object {
16 foo(x, y, z, a, b, c, d, e, f, g, h, i, j) {
17 if (y === void 0) y = null;
18 if (z === void 0) z = null;
19 if (a === void 0) a = null;
20 if (b === void 0) b = null;
21 if (c === void 0) c = null;
22 if (d === void 0) d = 99;
23 if (e === void 0) e = null;
24 if (f === void 0) f = null;
25 if (g === void 0) g = null;
26 if (h === void 0) h = null;
27 if (i === void 0) i = null;
28 if (j === void 0) j = null;
29 return dart.str`${x} ${d}`;
30 }
31 };
32 dart.setSignature(apply4_test.A, {
33 methods: () => ({foo: dart.definiteFunctionType(dart.dynamic, [dart.dynamic] , [dart.dynamic, dart.dynamic, dart.dynamic, dart.dynamic, dart.dynamic, dart.dy namic, dart.dynamic, dart.dynamic, dart.dynamic, dart.dynamic, dart.dynamic, dar t.dynamic])})
34 });
35 apply4_test.main = function() {
36 let a = new apply4_test.A();
37 let clos = dart.bind(a, 'foo');
38 expect$.Expect.equals(core.Function.apply(clos, JSArrayOfString().of(["well" ])), "well 99");
39 expect$.Expect.equals(core.Function.apply(clos, JSArrayOfObject().of(["well" , 0, 2, 4, 3, 6, 9, 10])), "well 9");
40 };
41 dart.fn(apply4_test.main, VoidTodynamic());
42 // Exports:
43 exports.apply4_test = apply4_test;
44 });
OLDNEW
« no previous file with comments | « test/codegen/expect/corelib/apply3_test.js ('k') | test/codegen/expect/corelib/apply_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698