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

Unified Diff: test/codegen/expect/language/interface_inherit_field_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/interface_inherit_field_test.js
diff --git a/test/codegen/expect/language/interface_inherit_field_test.js b/test/codegen/expect/language/interface_inherit_field_test.js
new file mode 100644
index 0000000000000000000000000000000000000000..03eada1136117551cf7a9178fc6475130f10c8f3
--- /dev/null
+++ b/test/codegen/expect/language/interface_inherit_field_test.js
@@ -0,0 +1,38 @@
+dart_library.library('language/interface_inherit_field_test', null, /* Imports */[
+ 'dart_sdk'
+], function load__interface_inherit_field_test(exports, dart_sdk) {
+ 'use strict';
+ const core = dart_sdk.core;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const interface_inherit_field_test = Object.create(null);
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ interface_inherit_field_test.IA = class IA extends core.Object {
+ new() {
+ this.foo = null;
+ }
+ };
+ interface_inherit_field_test.IB = class IB extends core.Object {
+ new() {
+ this.foo = null;
+ }
+ };
+ interface_inherit_field_test.IB[dart.implements] = () => [interface_inherit_field_test.IA];
+ const _f = Symbol('_f');
+ interface_inherit_field_test.B = class B extends core.Object {
+ new() {
+ this[_f] = 123;
+ }
+ get foo() {
+ return this[_f];
+ }
+ };
+ interface_inherit_field_test.B[dart.implements] = () => [interface_inherit_field_test.IB];
+ interface_inherit_field_test.main = function() {
+ let b = new interface_inherit_field_test.B();
+ core.print(dart.str`b.foo = ${b.foo}`);
+ };
+ dart.fn(interface_inherit_field_test.main, VoidTodynamic());
+ // Exports:
+ exports.interface_inherit_field_test = interface_inherit_field_test;
+});

Powered by Google App Engine
This is Rietveld 408576698