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

Side by Side Diff: test/codegen/expect/language/inference_mixin_field_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/inference_mixin_field_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__inference_mixin_field_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 inference_mixin_field_test = Object.create(null);
11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
12 inference_mixin_field_test.Mixin = class Mixin extends core.Object {
13 new() {
14 this.field = null;
15 }
16 createIt() {
17 if (this.field == null) this.field = 42;
18 }
19 };
20 dart.setSignature(inference_mixin_field_test.Mixin, {
21 methods: () => ({createIt: dart.definiteFunctionType(dart.dynamic, [])})
22 });
23 inference_mixin_field_test.A = class A extends core.Object {
24 new(foo) {
25 }
26 };
27 dart.setSignature(inference_mixin_field_test.A, {
28 constructors: () => ({new: dart.definiteFunctionType(inference_mixin_field_t est.A, [dart.dynamic])})
29 });
30 inference_mixin_field_test.B = class B extends dart.mixin(inference_mixin_fiel d_test.A, inference_mixin_field_test.Mixin) {
31 new(foo) {
32 super.new(foo);
33 }
34 };
35 dart.setSignature(inference_mixin_field_test.B, {
36 constructors: () => ({new: dart.definiteFunctionType(inference_mixin_field_t est.B, [dart.dynamic])})
37 });
38 inference_mixin_field_test.main = function() {
39 let a = new inference_mixin_field_test.B(42);
40 a.createIt();
41 expect$.Expect.equals(42, a.field);
42 };
43 dart.fn(inference_mixin_field_test.main, VoidTodynamic());
44 // Exports:
45 exports.inference_mixin_field_test = inference_mixin_field_test;
46 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698