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

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

Powered by Google App Engine
This is Rietveld 408576698