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

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

Powered by Google App Engine
This is Rietveld 408576698