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

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

Powered by Google App Engine
This is Rietveld 408576698