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

Side by Side Diff: test/codegen/expect/language/mixin_override_regression_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/mixin_override_regression_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__mixin_override_regression_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 mixin_override_regression_test = Object.create(null);
11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
12 mixin_override_regression_test.C0 = class C0 extends core.Object {
13 m1() {
14 return 5;
15 }
16 m2() {
17 return this.m1();
18 }
19 };
20 dart.setSignature(mixin_override_regression_test.C0, {
21 methods: () => ({
22 m1: dart.definiteFunctionType(core.int, []),
23 m2: dart.definiteFunctionType(core.int, [])
24 })
25 });
26 mixin_override_regression_test.C1 = class C1 extends dart.mixin(core.Object, m ixin_override_regression_test.C0) {};
27 mixin_override_regression_test.D = class D extends core.Object {
28 m1() {
29 return 7;
30 }
31 };
32 dart.setSignature(mixin_override_regression_test.D, {
33 methods: () => ({m1: dart.definiteFunctionType(core.int, [])})
34 });
35 mixin_override_regression_test.E0 = class E0 extends dart.mixin(mixin_override _regression_test.C0, mixin_override_regression_test.D) {};
36 mixin_override_regression_test.E1 = class E1 extends dart.mixin(mixin_override _regression_test.C1, mixin_override_regression_test.D) {};
37 mixin_override_regression_test.main = function() {
38 expect$.Expect.equals(7, new mixin_override_regression_test.E0().m2());
39 expect$.Expect.equals(7, new mixin_override_regression_test.E1().m2());
40 };
41 dart.fn(mixin_override_regression_test.main, VoidTodynamic());
42 // Exports:
43 exports.mixin_override_regression_test = mixin_override_regression_test;
44 });
OLDNEW
« no previous file with comments | « test/codegen/expect/language/mixin_only_for_rti_test.js ('k') | test/codegen/expect/language/mixin_prefix_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698