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

Side by Side Diff: test/codegen/expect/language/allocate_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/allocate_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__allocate_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 allocate_test = Object.create(null);
11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
12 allocate_test.MyAllocate = class MyAllocate extends core.Object {
13 new(value) {
14 if (value === void 0) value = 0;
15 this.value_ = value;
16 }
17 getValue() {
18 return this.value_;
19 }
20 };
21 dart.setSignature(allocate_test.MyAllocate, {
22 constructors: () => ({new: dart.definiteFunctionType(allocate_test.MyAllocat e, [], [core.int])}),
23 methods: () => ({getValue: dart.definiteFunctionType(core.int, [])})
24 });
25 allocate_test.AllocateTest = class AllocateTest extends core.Object {
26 static testMain() {
27 expect$.Expect.equals(900, new allocate_test.MyAllocate(900).getValue());
28 }
29 };
30 dart.setSignature(allocate_test.AllocateTest, {
31 statics: () => ({testMain: dart.definiteFunctionType(dart.dynamic, [])}),
32 names: ['testMain']
33 });
34 allocate_test.main = function() {
35 allocate_test.AllocateTest.testMain();
36 };
37 dart.fn(allocate_test.main, VoidTodynamic());
38 // Exports:
39 exports.allocate_test = allocate_test;
40 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698