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

Side by Side Diff: test/codegen/expect/language/generic_field_mixin2_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/generic_field_mixin2_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__generic_field_mixin2_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 generic_field_mixin2_test = Object.create(null);
11 let M = () => (M = dart.constFn(generic_field_mixin2_test.M$()))();
12 let A = () => (A = dart.constFn(generic_field_mixin2_test.A$()))();
13 let C1 = () => (C1 = dart.constFn(generic_field_mixin2_test.C1$()))();
14 let C1Ofint = () => (C1Ofint = dart.constFn(generic_field_mixin2_test.C1$(core .int)))();
15 let C1OfString = () => (C1OfString = dart.constFn(generic_field_mixin2_test.C1 $(core.String)))();
16 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
17 generic_field_mixin2_test.M$ = dart.generic(T => {
18 class M extends core.Object {
19 new() {
20 this.field = dart.wrapType(T);
21 }
22 }
23 dart.addTypeTests(M);
24 return M;
25 });
26 generic_field_mixin2_test.M = M();
27 generic_field_mixin2_test.A$ = dart.generic(U => {
28 class A extends core.Object {}
29 dart.addTypeTests(A);
30 return A;
31 });
32 generic_field_mixin2_test.A = A();
33 generic_field_mixin2_test.C1$ = dart.generic(V => {
34 class C1 extends dart.mixin(core.Object, generic_field_mixin2_test.M$(V)) {}
35 return C1;
36 });
37 generic_field_mixin2_test.C1 = C1();
38 generic_field_mixin2_test.C2 = class C2 extends dart.mixin(core.Object, generi c_field_mixin2_test.M$(core.int)) {};
39 generic_field_mixin2_test.C3 = class C3 extends dart.mixin(core.Object, generi c_field_mixin2_test.M$(core.String)) {};
40 generic_field_mixin2_test.main = function() {
41 expect$.Expect.equals(dart.wrapType(core.int), new (C1Ofint())().field);
42 expect$.Expect.equals(dart.wrapType(core.String), new (C1OfString())().field );
43 expect$.Expect.equals(dart.wrapType(core.int), new generic_field_mixin2_test .C2().field);
44 expect$.Expect.equals(dart.wrapType(core.String), new generic_field_mixin2_t est.C3().field);
45 };
46 dart.fn(generic_field_mixin2_test.main, VoidTodynamic());
47 // Exports:
48 exports.generic_field_mixin2_test = generic_field_mixin2_test;
49 });
OLDNEW
« no previous file with comments | « test/codegen/expect/language/generic_deep_test.js ('k') | test/codegen/expect/language/generic_field_mixin3_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698