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

Side by Side Diff: test/codegen/expect/language/execute_finally4_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/execute_finally4_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__execute_finally4_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 execute_finally4_test = Object.create(null);
11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
12 execute_finally4_test.Helper = class Helper extends core.Object {
13 new() {
14 this.i = 0;
15 }
16 f1() {
17 try {
18 let j = null;
19 j = execute_finally4_test.Helper.func();
20 this.i = 1;
21 } finally {
22 this.i = dart.notNull(this.i) + 10;
23 }
24 return dart.notNull(this.i) + 200;
25 try {
26 let j = null;
27 j = execute_finally4_test.Helper.func();
28 } finally {
29 this.i = dart.notNull(this.i) + 10;
30 }
31 }
32 static func() {
33 let i = 0;
34 while (i < 10) {
35 i++;
36 }
37 return i;
38 }
39 };
40 dart.setSignature(execute_finally4_test.Helper, {
41 constructors: () => ({new: dart.definiteFunctionType(execute_finally4_test.H elper, [])}),
42 methods: () => ({f1: dart.definiteFunctionType(core.int, [])}),
43 statics: () => ({func: dart.definiteFunctionType(core.int, [])}),
44 names: ['func']
45 });
46 execute_finally4_test.ExecuteFinally4Test = class ExecuteFinally4Test extends core.Object {
47 static testMain() {
48 let obj = new execute_finally4_test.Helper();
49 expect$.Expect.equals(211, obj.f1());
50 expect$.Expect.equals(11, obj.i);
51 }
52 };
53 dart.setSignature(execute_finally4_test.ExecuteFinally4Test, {
54 statics: () => ({testMain: dart.definiteFunctionType(dart.dynamic, [])}),
55 names: ['testMain']
56 });
57 execute_finally4_test.main = function() {
58 execute_finally4_test.ExecuteFinally4Test.testMain();
59 };
60 dart.fn(execute_finally4_test.main, VoidTodynamic());
61 // Exports:
62 exports.execute_finally4_test = execute_finally4_test;
63 });
OLDNEW
« no previous file with comments | « test/codegen/expect/language/execute_finally3_test.js ('k') | test/codegen/expect/language/execute_finally5_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698