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

Side by Side Diff: test/codegen/expect/language/mixin_mixin5_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_mixin5_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__mixin_mixin5_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_mixin5_test = Object.create(null);
11 let I = () => (I = dart.constFn(mixin_mixin5_test.I$()))();
12 let J = () => (J = dart.constFn(mixin_mixin5_test.J$()))();
13 let K = () => (K = dart.constFn(mixin_mixin5_test.K$()))();
14 let S = () => (S = dart.constFn(mixin_mixin5_test.S$()))();
15 let M = () => (M = dart.constFn(mixin_mixin5_test.M$()))();
16 let A = () => (A = dart.constFn(mixin_mixin5_test.A$()))();
17 let B = () => (B = dart.constFn(mixin_mixin5_test.B$()))();
18 let C = () => (C = dart.constFn(mixin_mixin5_test.C$()))();
19 let COfint = () => (COfint = dart.constFn(mixin_mixin5_test.C$(core.int)))();
20 let KOfint = () => (KOfint = dart.constFn(mixin_mixin5_test.K$(core.int)))();
21 let ListOfint = () => (ListOfint = dart.constFn(core.List$(core.int)))();
22 let JOfListOfint = () => (JOfListOfint = dart.constFn(mixin_mixin5_test.J$(Lis tOfint())))();
23 let SetOfListOfint = () => (SetOfListOfint = dart.constFn(core.Set$(ListOfint( ))))();
24 let IOfSetOfListOfint = () => (IOfSetOfListOfint = dart.constFn(mixin_mixin5_t est.I$(SetOfListOfint())))();
25 let SOfListOfint = () => (SOfListOfint = dart.constFn(mixin_mixin5_test.S$(Lis tOfint())))();
26 let AOfListOfint$SetOfListOfint = () => (AOfListOfint$SetOfListOfint = dart.co nstFn(mixin_mixin5_test.A$(ListOfint(), SetOfListOfint())))();
27 let MapOfListOfint$SetOfListOfint = () => (MapOfListOfint$SetOfListOfint = dar t.constFn(core.Map$(ListOfint(), SetOfListOfint())))();
28 let MOfMapOfListOfint$SetOfListOfint = () => (MOfMapOfListOfint$SetOfListOfint = dart.constFn(mixin_mixin5_test.M$(MapOfListOfint$SetOfListOfint())))();
29 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
30 mixin_mixin5_test.I$ = dart.generic(T => {
31 class I extends core.Object {}
32 dart.addTypeTests(I);
33 return I;
34 });
35 mixin_mixin5_test.I = I();
36 mixin_mixin5_test.J$ = dart.generic(T => {
37 class J extends core.Object {}
38 dart.addTypeTests(J);
39 return J;
40 });
41 mixin_mixin5_test.J = J();
42 mixin_mixin5_test.K$ = dart.generic(T => {
43 class K extends core.Object {}
44 dart.addTypeTests(K);
45 return K;
46 });
47 mixin_mixin5_test.K = K();
48 mixin_mixin5_test.S$ = dart.generic(T => {
49 class S extends core.Object {}
50 dart.addTypeTests(S);
51 return S;
52 });
53 mixin_mixin5_test.S = S();
54 mixin_mixin5_test.M$ = dart.generic(T => {
55 class M extends core.Object {
56 m() {
57 return dart.wrapType(T);
58 }
59 }
60 dart.addTypeTests(M);
61 dart.setSignature(M, {
62 methods: () => ({m: dart.definiteFunctionType(dart.dynamic, [])})
63 });
64 return M;
65 });
66 mixin_mixin5_test.M = M();
67 mixin_mixin5_test.A$ = dart.generic((U, V) => {
68 class A extends dart.mixin(core.Object, mixin_mixin5_test.M$(core.Map$(U, V) )) {}
69 return A;
70 });
71 mixin_mixin5_test.A = A();
72 mixin_mixin5_test.B$ = dart.generic(T => {
73 class B extends dart.mixin(core.Object, mixin_mixin5_test.A$(T, core.Set$(T) )) {}
74 return B;
75 });
76 mixin_mixin5_test.B = B();
77 mixin_mixin5_test.C$ = dart.generic(T => {
78 class C extends dart.mixin(mixin_mixin5_test.S$(core.List$(T)), mixin_mixin5 _test.B$(core.List$(T))) {
79 new() {
80 super.new();
81 }
82 }
83 return C;
84 });
85 mixin_mixin5_test.C = C();
86 mixin_mixin5_test.main = function() {
87 let c = new (COfint())();
88 expect$.Expect.equals("Map<List<int>, Set<List<int>>>", dart.toString(c.m()) );
89 expect$.Expect.isTrue(KOfint().is(c));
90 expect$.Expect.isTrue(JOfListOfint().is(c));
91 expect$.Expect.isTrue(IOfSetOfListOfint().is(c));
92 expect$.Expect.isTrue(SOfListOfint().is(c));
93 expect$.Expect.isTrue(AOfListOfint$SetOfListOfint().is(c));
94 expect$.Expect.isTrue(MOfMapOfListOfint$SetOfListOfint().is(c));
95 };
96 dart.fn(mixin_mixin5_test.main, VoidTodynamic());
97 // Exports:
98 exports.mixin_mixin5_test = mixin_mixin5_test;
99 });
OLDNEW
« no previous file with comments | « test/codegen/expect/language/mixin_mixin4_test.js ('k') | test/codegen/expect/language/mixin_mixin6_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698