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

Side by Side Diff: test/codegen/expect/language/try_catch_on_syntax_test_11_multi.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/try_catch_on_syntax_test_11_multi', null, /* Impo rts */[
2 'dart_sdk',
3 'expect'
4 ], function load__try_catch_on_syntax_test_11_multi(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 try_catch_on_syntax_test_11_multi = Object.create(null);
11 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da rt.void, [])))();
12 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
13 try_catch_on_syntax_test_11_multi.MyException = class MyException extends core .Object {};
14 try_catch_on_syntax_test_11_multi.MyException1 = class MyException1 extends tr y_catch_on_syntax_test_11_multi.MyException {};
15 try_catch_on_syntax_test_11_multi.MyException2 = class MyException2 extends tr y_catch_on_syntax_test_11_multi.MyException {};
16 try_catch_on_syntax_test_11_multi.test1 = function() {
17 let foo = 0;
18 try {
19 dart.throw(new try_catch_on_syntax_test_11_multi.MyException1());
20 } catch (e$) {
21 if (try_catch_on_syntax_test_11_multi.MyException2.is(e$)) {
22 let e = e$;
23 foo = 1;
24 } else if (try_catch_on_syntax_test_11_multi.MyException1.is(e$)) {
25 let e = e$;
26 foo = 2;
27 } else if (try_catch_on_syntax_test_11_multi.MyException.is(e$)) {
28 let e = e$;
29 foo = 3;
30 } else {
31 let e = e$;
32 foo = 4;
33 }
34 }
35
36 expect$.Expect.equals(2, foo);
37 };
38 dart.fn(try_catch_on_syntax_test_11_multi.test1, VoidTovoid());
39 try_catch_on_syntax_test_11_multi.testFinal = function() {
40 try {
41 dart.throw("catch this!");
42 } catch (e) {
43 let s = dart.stackTrace(e);
44 s = null;
45 }
46
47 };
48 dart.fn(try_catch_on_syntax_test_11_multi.testFinal, VoidTodynamic());
49 try_catch_on_syntax_test_11_multi.main = function() {
50 try_catch_on_syntax_test_11_multi.test1();
51 try_catch_on_syntax_test_11_multi.testFinal();
52 };
53 dart.fn(try_catch_on_syntax_test_11_multi.main, VoidTodynamic());
54 // Exports:
55 exports.try_catch_on_syntax_test_11_multi = try_catch_on_syntax_test_11_multi;
56 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698