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

Unified Diff: test/codegen/expect/language/private_mixin_exception_throw_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
Index: test/codegen/expect/language/private_mixin_exception_throw_test.js
diff --git a/test/codegen/expect/language/private_mixin_exception_throw_test.js b/test/codegen/expect/language/private_mixin_exception_throw_test.js
new file mode 100644
index 0000000000000000000000000000000000000000..5490fdf8c08a228718d4e86e47ea81ed9fce1591
--- /dev/null
+++ b/test/codegen/expect/language/private_mixin_exception_throw_test.js
@@ -0,0 +1,42 @@
+dart_library.library('language/private_mixin_exception_throw_test', null, /* Imports */[
+ 'dart_sdk'
+], function load__private_mixin_exception_throw_test(exports, dart_sdk) {
+ 'use strict';
+ const core = dart_sdk.core;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const private_mixin_exception_throw_test = Object.create(null);
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ private_mixin_exception_throw_test._C = class _C extends core.Object {};
+ private_mixin_exception_throw_test._E = class _E extends core.Object {
+ throwIt() {
+ return dart.throw("it");
+ }
+ };
+ dart.setSignature(private_mixin_exception_throw_test._E, {
+ methods: () => ({throwIt: dart.definiteFunctionType(dart.dynamic, [])})
+ });
+ private_mixin_exception_throw_test._F = class _F extends core.Object {
+ throwIt() {
+ return dart.throw("IT");
+ }
+ };
+ dart.setSignature(private_mixin_exception_throw_test._F, {
+ methods: () => ({throwIt: dart.definiteFunctionType(dart.dynamic, [])})
+ });
+ private_mixin_exception_throw_test._D = class _D extends dart.mixin(private_mixin_exception_throw_test._C, private_mixin_exception_throw_test._E, private_mixin_exception_throw_test._F) {};
+ private_mixin_exception_throw_test.main = function() {
+ let d = new private_mixin_exception_throw_test._D();
+ try {
+ d.throwIt();
+ } catch (e) {
+ let s = dart.stackTrace(e);
+ core.print(dart.str`Exception: ${e}`);
+ core.print(dart.str`Stacktrace:\n${s}`);
+ }
+
+ };
+ dart.fn(private_mixin_exception_throw_test.main, VoidTodynamic());
+ // Exports:
+ exports.private_mixin_exception_throw_test = private_mixin_exception_throw_test;
+});
« no previous file with comments | « test/codegen/expect/language/private_mixin2_test.js ('k') | test/codegen/expect/language/private_selector_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698