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

Unified Diff: test/codegen/expect/language/switch_try_catch_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/codegen/expect/language/switch_test.js ('k') | test/codegen/expect/language/symbol_conflict_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/language/switch_try_catch_test.js
diff --git a/test/codegen/expect/language/switch_try_catch_test.js b/test/codegen/expect/language/switch_try_catch_test.js
new file mode 100644
index 0000000000000000000000000000000000000000..a765e9c137c8e1f1aa7d08c0dcc4eecc73d7b78a
--- /dev/null
+++ b/test/codegen/expect/language/switch_try_catch_test.js
@@ -0,0 +1,54 @@
+dart_library.library('language/switch_try_catch_test', null, /* Imports */[
+ 'dart_sdk',
+ 'expect'
+], function load__switch_try_catch_test(exports, dart_sdk, expect) {
+ 'use strict';
+ const core = dart_sdk.core;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const expect$ = expect.expect;
+ const switch_try_catch_test = Object.create(null);
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [])))();
+ let dynamicTobool = () => (dynamicTobool = dart.constFn(dart.definiteFunctionType(core.bool, [dart.dynamic])))();
+ switch_try_catch_test.test_switch = function() {
+ switch (0) {
+ case 0:
+ {
+ // Unimplemented case labels: [_0:]
+ core.print("_0");
+ continue _5;
+ }
+ case 1:
+ {
+ // Unimplemented case labels: [_1:]
+ try {
+ core.print("bunny");
+ continue _6;
+ } catch (e) {
+ }
+
+ break;
+ }
+ case 5:
+ {
+ // Unimplemented case labels: [_5:]
+ core.print("_5");
+ continue _6;
+ }
+ case 6:
+ {
+ // Unimplemented case labels: [_6:]
+ core.print("_6");
+ dart.throw(555);
+ }
+ }
+ };
+ dart.fn(switch_try_catch_test.test_switch, VoidTodynamic());
+ switch_try_catch_test.main = function() {
+ expect$.Expect.throws(dart.fn(() => switch_try_catch_test.test_switch(), VoidTovoid()), dart.fn(e => dart.equals(e, 555), dynamicTobool()));
+ };
+ dart.fn(switch_try_catch_test.main, VoidTodynamic());
+ // Exports:
+ exports.switch_try_catch_test = switch_try_catch_test;
+});
« no previous file with comments | « test/codegen/expect/language/switch_test.js ('k') | test/codegen/expect/language/symbol_conflict_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698