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

Side by Side Diff: test/codegen/expect/language/closure_call_wrong_argument_count_negative_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/closure_call_wrong_argument_count_negative_test', null, /* Imports */[
2 'dart_sdk'
3 ], function load__closure_call_wrong_argument_count_negative_test(exports, dart_ sdk) {
4 'use strict';
5 const core = dart_sdk.core;
6 const dart = dart_sdk.dart;
7 const dartx = dart_sdk.dartx;
8 const closure_call_wrong_argument_count_negative_test = Object.create(null);
9 let intAndintTodynamic = () => (intAndintTodynamic = dart.constFn(dart.definit eFunctionType(dart.dynamic, [core.int, core.int])))();
10 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
11 closure_call_wrong_argument_count_negative_test.ClosureCallWrongArgumentCountN egativeTest = class ClosureCallWrongArgumentCountNegativeTest extends core.Objec t {
12 static melke(f) {
13 return core.int._check(dart.dcall(f, 1, 2, 3));
14 }
15 static testMain() {
16 function kuh(a, b) {
17 return dart.notNull(a) + dart.notNull(b);
18 }
19 dart.fn(kuh, intAndintTodynamic());
20 closure_call_wrong_argument_count_negative_test.ClosureCallWrongArgumentCo untNegativeTest.melke(kuh);
21 }
22 };
23 dart.setSignature(closure_call_wrong_argument_count_negative_test.ClosureCallW rongArgumentCountNegativeTest, {
24 statics: () => ({
25 melke: dart.definiteFunctionType(core.int, [dart.dynamic]),
26 testMain: dart.definiteFunctionType(dart.void, [])
27 }),
28 names: ['melke', 'testMain']
29 });
30 closure_call_wrong_argument_count_negative_test.main = function() {
31 closure_call_wrong_argument_count_negative_test.ClosureCallWrongArgumentCoun tNegativeTest.testMain();
32 };
33 dart.fn(closure_call_wrong_argument_count_negative_test.main, VoidTodynamic()) ;
34 // Exports:
35 exports.closure_call_wrong_argument_count_negative_test = closure_call_wrong_a rgument_count_negative_test;
36 });
OLDNEW
« no previous file with comments | « test/codegen/expect/language/closure_break_test.js ('k') | test/codegen/expect/language/closure_cycles_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698