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

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

Powered by Google App Engine
This is Rietveld 408576698