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

Side by Side Diff: test/codegen/expect/language/mixin_illegal_super_use_test_none_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/mixin_illegal_super_use_test_none_multi', null, / * Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__mixin_illegal_super_use_test_none_multi(exports, dart_sdk, exp ect) {
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 mixin_illegal_super_use_test_none_multi = Object.create(null);
11 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da rt.void, [])))();
12 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
13 mixin_illegal_super_use_test_none_multi.M = class M extends core.Object {};
14 mixin_illegal_super_use_test_none_multi.P0 = class P0 extends core.Object {
15 foo() {
16 function inner() {
17 }
18 dart.fn(inner, VoidTovoid());
19 inner();
20 dart.fn(() => {
21 }, VoidTodynamic())();
22 return 42;
23 }
24 };
25 dart.setSignature(mixin_illegal_super_use_test_none_multi.P0, {
26 methods: () => ({foo: dart.definiteFunctionType(dart.dynamic, [])})
27 });
28 mixin_illegal_super_use_test_none_multi.P1 = class P1 extends core.Object {
29 bar() {
30 return 87;
31 }
32 test() {
33 new mixin_illegal_super_use_test_none_multi.C();
34 let d = new mixin_illegal_super_use_test_none_multi.D();
35 let e = new mixin_illegal_super_use_test_none_multi.E();
36 let f = new mixin_illegal_super_use_test_none_multi.F();
37 expect$.Expect.equals(42, d.foo());
38 expect$.Expect.equals(87, e.bar());
39 expect$.Expect.equals(99, f.baz());
40 }
41 };
42 dart.setSignature(mixin_illegal_super_use_test_none_multi.P1, {
43 methods: () => ({
44 bar: dart.definiteFunctionType(dart.dynamic, []),
45 test: dart.definiteFunctionType(dart.dynamic, [])
46 })
47 });
48 mixin_illegal_super_use_test_none_multi.P2 = class P2 extends core.Object {
49 baz() {
50 return 99;
51 }
52 };
53 dart.setSignature(mixin_illegal_super_use_test_none_multi.P2, {
54 methods: () => ({baz: dart.definiteFunctionType(dart.dynamic, [])})
55 });
56 mixin_illegal_super_use_test_none_multi.C = class C extends dart.mixin(core.Ob ject, mixin_illegal_super_use_test_none_multi.M) {};
57 mixin_illegal_super_use_test_none_multi.D = class D extends dart.mixin(core.Ob ject, mixin_illegal_super_use_test_none_multi.P0) {};
58 mixin_illegal_super_use_test_none_multi.E = class E extends dart.mixin(core.Ob ject, mixin_illegal_super_use_test_none_multi.M, mixin_illegal_super_use_test_no ne_multi.P1) {};
59 mixin_illegal_super_use_test_none_multi.F = class F extends dart.mixin(core.Ob ject, mixin_illegal_super_use_test_none_multi.P2, mixin_illegal_super_use_test_n one_multi.M) {};
60 mixin_illegal_super_use_test_none_multi.main = function() {
61 let p1 = new mixin_illegal_super_use_test_none_multi.P1();
62 let p2 = new mixin_illegal_super_use_test_none_multi.P2();
63 expect$.Expect.equals(87, p1.bar());
64 p1.test();
65 expect$.Expect.equals(99, p2.baz());
66 };
67 dart.fn(mixin_illegal_super_use_test_none_multi.main, VoidTodynamic());
68 // Exports:
69 exports.mixin_illegal_super_use_test_none_multi = mixin_illegal_super_use_test _none_multi;
70 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698