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

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

Powered by Google App Engine
This is Rietveld 408576698