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

Side by Side Diff: test/codegen/expect/language/resolve_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/resolve_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__resolve_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 resolve_test = Object.create(null);
11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
12 resolve_test.A = class A extends core.Object {
13 static staticCall() {
14 return 4;
15 }
16 dynamicCall() {
17 return 5;
18 }
19 ovrDynamicCall() {
20 return 6;
21 }
22 };
23 dart.setSignature(resolve_test.A, {
24 methods: () => ({
25 dynamicCall: dart.definiteFunctionType(dart.dynamic, []),
26 ovrDynamicCall: dart.definiteFunctionType(dart.dynamic, [])
27 }),
28 statics: () => ({staticCall: dart.definiteFunctionType(dart.dynamic, [])}),
29 names: ['staticCall']
30 });
31 resolve_test.B = class B extends resolve_test.A {
32 ovrDynamicCall() {
33 return -6;
34 }
35 };
36 resolve_test.ResolveTest = class ResolveTest extends core.Object {
37 static testMain() {
38 let b = new resolve_test.B();
39 expect$.Expect.equals(3, dart.dsend(dart.dsend(b.dynamicCall(), '+', resol ve_test.A.staticCall()), '+', b.ovrDynamicCall()));
40 }
41 };
42 dart.setSignature(resolve_test.ResolveTest, {
43 statics: () => ({testMain: dart.definiteFunctionType(dart.dynamic, [])}),
44 names: ['testMain']
45 });
46 resolve_test.main = function() {
47 resolve_test.ResolveTest.testMain();
48 };
49 dart.fn(resolve_test.main, VoidTodynamic());
50 // Exports:
51 exports.resolve_test = resolve_test;
52 });
OLDNEW
« no previous file with comments | « test/codegen/expect/language/resolution_test.js ('k') | test/codegen/expect/language/rethrow_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698