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

Side by Side Diff: test/codegen/expect/language/non_const_constructor_without_body_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/non_const_constructor_without_body_test', null, / * Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__non_const_constructor_without_body_test(exports, dart_sdk, exp ect) {
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 non_const_constructor_without_body_test = Object.create(null);
11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
12 non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest = c lass NonConstConstructorWithoutBodyTest extends core.Object {
13 new() {
14 this.x = null;
15 }
16 named() {
17 this.x = null;
18 }
19 initializers() {
20 this.x = 1;
21 }
22 parameters(x) {
23 this.x = dart.notNull(x) + 1;
24 }
25 fieldParameter(x) {
26 this.x = x;
27 }
28 redirection() {
29 NonConstConstructorWithoutBodyTest.prototype.initializers.call(this);
30 }
31 static testMain() {
32 expect$.Expect.equals(null, new non_const_constructor_without_body_test.No nConstConstructorWithoutBodyTest().x);
33 expect$.Expect.equals(null, new non_const_constructor_without_body_test.No nConstConstructorWithoutBodyTest.named().x);
34 expect$.Expect.equals(1, new non_const_constructor_without_body_test.NonCo nstConstructorWithoutBodyTest.initializers().x);
35 expect$.Expect.equals(2, new non_const_constructor_without_body_test.NonCo nstConstructorWithoutBodyTest.parameters(1).x);
36 expect$.Expect.equals(2, new non_const_constructor_without_body_test.NonCo nstConstructorWithoutBodyTest.fieldParameter(2).x);
37 expect$.Expect.equals(1, new non_const_constructor_without_body_test.NonCo nstConstructorWithoutBodyTest.redirection().x);
38 }
39 };
40 dart.defineNamedConstructor(non_const_constructor_without_body_test.NonConstCo nstructorWithoutBodyTest, 'named');
41 dart.defineNamedConstructor(non_const_constructor_without_body_test.NonConstCo nstructorWithoutBodyTest, 'initializers');
42 dart.defineNamedConstructor(non_const_constructor_without_body_test.NonConstCo nstructorWithoutBodyTest, 'parameters');
43 dart.defineNamedConstructor(non_const_constructor_without_body_test.NonConstCo nstructorWithoutBodyTest, 'fieldParameter');
44 dart.defineNamedConstructor(non_const_constructor_without_body_test.NonConstCo nstructorWithoutBodyTest, 'redirection');
45 dart.setSignature(non_const_constructor_without_body_test.NonConstConstructorW ithoutBodyTest, {
46 constructors: () => ({
47 new: dart.definiteFunctionType(non_const_constructor_without_body_test.Non ConstConstructorWithoutBodyTest, []),
48 named: dart.definiteFunctionType(non_const_constructor_without_body_test.N onConstConstructorWithoutBodyTest, []),
49 initializers: dart.definiteFunctionType(non_const_constructor_without_body _test.NonConstConstructorWithoutBodyTest, []),
50 parameters: dart.definiteFunctionType(non_const_constructor_without_body_t est.NonConstConstructorWithoutBodyTest, [core.int]),
51 fieldParameter: dart.definiteFunctionType(non_const_constructor_without_bo dy_test.NonConstConstructorWithoutBodyTest, [core.int]),
52 redirection: dart.definiteFunctionType(non_const_constructor_without_body_ test.NonConstConstructorWithoutBodyTest, [])
53 }),
54 statics: () => ({testMain: dart.definiteFunctionType(dart.dynamic, [])}),
55 names: ['testMain']
56 });
57 non_const_constructor_without_body_test.main = function() {
58 non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest.t estMain();
59 };
60 dart.fn(non_const_constructor_without_body_test.main, VoidTodynamic());
61 // Exports:
62 exports.non_const_constructor_without_body_test = non_const_constructor_withou t_body_test;
63 });
OLDNEW
« no previous file with comments | « test/codegen/expect/language/no_such_method_test.js ('k') | test/codegen/expect/language/non_const_super_negative_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698