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

Side by Side Diff: test/codegen/expect/language/getters_setters2_test_none_multi.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/getters_setters2_test_none_multi', null, /* Impor ts */[
2 'dart_sdk',
3 'expect'
4 ], function load__getters_setters2_test_none_multi(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 getters_setters2_test_none_multi = Object.create(null);
11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
12 getters_setters2_test_none_multi.A = class A extends core.Object {
13 a() {
14 return 37;
15 }
16 };
17 dart.setSignature(getters_setters2_test_none_multi.A, {
18 methods: () => ({a: dart.definiteFunctionType(core.int, [])})
19 });
20 getters_setters2_test_none_multi.B = class B extends getters_setters2_test_non e_multi.A {
21 b() {
22 return 38;
23 }
24 };
25 dart.setSignature(getters_setters2_test_none_multi.B, {
26 methods: () => ({b: dart.definiteFunctionType(core.int, [])})
27 });
28 getters_setters2_test_none_multi.C = class C extends core.Object {};
29 getters_setters2_test_none_multi.T1 = class T1 extends core.Object {
30 new() {
31 this.getterField = null;
32 }
33 get field() {
34 return this.getterField;
35 }
36 set field(arg) {
37 this.getterField = arg;
38 }
39 };
40 getters_setters2_test_none_multi.T2 = class T2 extends core.Object {
41 new() {
42 this.getterField = null;
43 this.setterField = null;
44 }
45 get field() {
46 return this.getterField;
47 }
48 };
49 getters_setters2_test_none_multi.T3 = class T3 extends core.Object {
50 new() {
51 this.getterField = null;
52 }
53 get field() {
54 return this.getterField;
55 }
56 set field(arg) {
57 this.getterField = getters_setters2_test_none_multi.B._check(arg);
58 }
59 };
60 getters_setters2_test_none_multi.main = function() {
61 let instance1 = new getters_setters2_test_none_multi.T1();
62 let instance3 = new getters_setters2_test_none_multi.T3();
63 instance1.field = new getters_setters2_test_none_multi.B();
64 let resultA = instance1.field;
65 let resultB = getters_setters2_test_none_multi.B._check(instance1.field);
66 let result = null;
67 result = instance1.field.a();
68 expect$.Expect.equals(37, result);
69 instance3.field = new getters_setters2_test_none_multi.B();
70 result = instance3.field.a();
71 expect$.Expect.equals(37, result);
72 result = instance3.field.b();
73 expect$.Expect.equals(38, result);
74 };
75 dart.fn(getters_setters2_test_none_multi.main, VoidTodynamic());
76 // Exports:
77 exports.getters_setters2_test_none_multi = getters_setters2_test_none_multi;
78 });
OLDNEW
« no previous file with comments | « test/codegen/expect/language/getters_setters2_test_03_multi.js ('k') | test/codegen/expect/language/getters_setters_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698