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

Side by Side Diff: test/codegen/expect/language/execute_finally8_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_finally8_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__execute_finally8_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_finally8_test = Object.create(null);
11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
12 execute_finally8_test.Hello = class Hello extends core.Object {
13 static foo() {
14 execute_finally8_test.Hello.sum = 0;
15 try {
16 execute_finally8_test.Hello.sum = dart.dsend(execute_finally8_test.Hello .sum, '+', 1);
17 return 'hi';
18 } finally {
19 execute_finally8_test.Hello.sum = dart.dsend(execute_finally8_test.Hello .sum, '+', 1);
20 dart.throw('ball');
21 execute_finally8_test.Hello.sum = dart.dsend(execute_finally8_test.Hello .sum, '+', 1);
22 }
23 }
24 static foo1() {
25 let loop = true;
26 execute_finally8_test.Hello.sum = 0;
27 L:
28 while (loop) {
29 try {
30 execute_finally8_test.Hello.sum = dart.dsend(execute_finally8_test.H ello.sum, '+', 1);
31 return 'hi';
32 } finally {
33 execute_finally8_test.Hello.sum = dart.dsend(execute_finally8_test.H ello.sum, '+', 1);
34 break L;
35 execute_finally8_test.Hello.sum = dart.dsend(execute_finally8_test.H ello.sum, '+', 1);
36 }
37 }
38 }
39 static foo2() {
40 let loop = true;
41 execute_finally8_test.Hello.sum = 0;
42 try {
43 execute_finally8_test.Hello.sum = dart.dsend(execute_finally8_test.Hello .sum, '+', 1);
44 return 'hi';
45 } finally {
46 execute_finally8_test.Hello.sum = dart.dsend(execute_finally8_test.Hello .sum, '+', 1);
47 return 10;
48 execute_finally8_test.Hello.sum = dart.dsend(execute_finally8_test.Hello .sum, '+', 1);
49 }
50 }
51 static foo3() {
52 execute_finally8_test.Hello.sum = 0;
53 try {
54 execute_finally8_test.Hello.sum = dart.dsend(execute_finally8_test.Hello .sum, '+', 1);
55 return 'hi';
56 } finally {
57 execute_finally8_test.Hello.sum = dart.dsend(execute_finally8_test.Hello .sum, '+', 1);
58 return 10;
59 execute_finally8_test.Hello.sum = dart.dsend(execute_finally8_test.Hello .sum, '+', 1);
60 }
61 }
62 static main() {
63 execute_finally8_test.Hello.foo1();
64 expect$.Expect.equals(2, execute_finally8_test.Hello.sum);
65 execute_finally8_test.Hello.foo2();
66 expect$.Expect.equals(2, execute_finally8_test.Hello.sum);
67 execute_finally8_test.Hello.foo3();
68 expect$.Expect.equals(2, execute_finally8_test.Hello.sum);
69 try {
70 execute_finally8_test.Hello.foo();
71 } catch (e) {
72 }
73
74 expect$.Expect.equals(2, execute_finally8_test.Hello.sum);
75 }
76 };
77 dart.setSignature(execute_finally8_test.Hello, {
78 statics: () => ({
79 foo: dart.definiteFunctionType(dart.dynamic, []),
80 foo1: dart.definiteFunctionType(dart.dynamic, []),
81 foo2: dart.definiteFunctionType(dart.dynamic, []),
82 foo3: dart.definiteFunctionType(dart.dynamic, []),
83 main: dart.definiteFunctionType(dart.void, [])
84 }),
85 names: ['foo', 'foo1', 'foo2', 'foo3', 'main']
86 });
87 execute_finally8_test.Hello.sum = null;
88 execute_finally8_test.main = function() {
89 execute_finally8_test.Hello.main();
90 };
91 dart.fn(execute_finally8_test.main, VoidTodynamic());
92 // Exports:
93 exports.execute_finally8_test = execute_finally8_test;
94 });
OLDNEW
« no previous file with comments | « test/codegen/expect/language/execute_finally7_test.js ('k') | test/codegen/expect/language/execute_finally9_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698