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

Unified Diff: test/codegen/expect/language/mixin_regress_11398_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/mixin_regress_11398_test.js
diff --git a/test/codegen/expect/language/mixin_regress_11398_test.js b/test/codegen/expect/language/mixin_regress_11398_test.js
new file mode 100644
index 0000000000000000000000000000000000000000..b11e8fa7bbdc75042a62a62f4f1158833d91e44e
--- /dev/null
+++ b/test/codegen/expect/language/mixin_regress_11398_test.js
@@ -0,0 +1,69 @@
+dart_library.library('language/mixin_regress_11398_test', null, /* Imports */[
+ 'dart_sdk',
+ 'expect'
+], function load__mixin_regress_11398_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 mixin_regress_11398_test = Object.create(null);
+ let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [])))();
+ mixin_regress_11398_test.main = function() {
+ let hva = new mixin_regress_11398_test.HasValueA();
+ hva.value = '42';
+ expect$.Expect.equals('42', hva.value);
+ let hvb = new mixin_regress_11398_test.HasValueB();
+ hvb.value = '87';
+ expect$.Expect.equals('87', hvb.value);
+ let hvc = new mixin_regress_11398_test.HasValueC();
+ hvc.value = '99';
+ expect$.Expect.equals('99', hvc.value);
+ };
+ dart.fn(mixin_regress_11398_test.main, VoidTovoid());
+ mixin_regress_11398_test.Delegate = class Delegate extends core.Object {};
+ mixin_regress_11398_test.DelegateMixin = class DelegateMixin extends core.Object {
+ invoke(value) {
+ return value;
+ }
+ };
+ dart.setSignature(mixin_regress_11398_test.DelegateMixin, {
+ methods: () => ({invoke: dart.definiteFunctionType(core.String, [core.String])})
+ });
+ const _value = Symbol('_value');
+ mixin_regress_11398_test.HasValueMixin = class HasValueMixin extends core.Object {
+ new() {
+ this[_value] = null;
+ }
+ set value(value) {
+ this[_value] = this.invoke(value);
+ }
+ get value() {
+ return this[_value];
+ }
+ };
+ mixin_regress_11398_test.HasValueMixin[dart.implements] = () => [mixin_regress_11398_test.Delegate];
+ mixin_regress_11398_test.HasValueA = class HasValueA extends dart.mixin(core.Object, mixin_regress_11398_test.HasValueMixin, mixin_regress_11398_test.DelegateMixin) {
+ new() {
+ super.new();
+ }
+ };
+ mixin_regress_11398_test.HasValueB = class HasValueB extends dart.mixin(core.Object, mixin_regress_11398_test.DelegateMixin, mixin_regress_11398_test.HasValueMixin) {
+ new() {
+ super.new();
+ }
+ };
+ mixin_regress_11398_test.HasValueC = class HasValueC extends dart.mixin(core.Object, mixin_regress_11398_test.HasValueMixin) {
+ new() {
+ super.new();
+ }
+ invoke(value) {
+ return value;
+ }
+ };
+ dart.setSignature(mixin_regress_11398_test.HasValueC, {
+ methods: () => ({invoke: dart.definiteFunctionType(core.String, [core.String])})
+ });
+ // Exports:
+ exports.mixin_regress_11398_test = mixin_regress_11398_test;
+});
« no previous file with comments | « test/codegen/expect/language/mixin_prefix_test.js ('k') | test/codegen/expect/language/mixin_regress_13688_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698