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

Unified Diff: test/codegen/expect/language/flatten_test_10_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 side-by-side diff with in-line comments
Download patch
Index: test/codegen/expect/language/flatten_test_10_multi.js
diff --git a/test/codegen/expect/language/flatten_test_10_multi.js b/test/codegen/expect/language/flatten_test_10_multi.js
new file mode 100644
index 0000000000000000000000000000000000000000..e67c9d2608f57a9a687cc45b2d3643e68eecef39
--- /dev/null
+++ b/test/codegen/expect/language/flatten_test_10_multi.js
@@ -0,0 +1,65 @@
+dart_library.library('language/flatten_test_10_multi', null, /* Imports */[
+ 'dart_sdk'
+], function load__flatten_test_10_multi(exports, dart_sdk) {
+ 'use strict';
+ const core = dart_sdk.core;
+ const async = dart_sdk.async;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const flatten_test_10_multi = Object.create(null);
+ let Derived = () => (Derived = dart.constFn(flatten_test_10_multi.Derived$()))();
+ let FixedPoint = () => (FixedPoint = dart.constFn(flatten_test_10_multi.FixedPoint$()))();
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ flatten_test_10_multi.Derived$ = dart.generic(T => {
+ let FutureOfT = () => (FutureOfT = dart.constFn(async.Future$(T)))();
+ const Derived = dart.callableClass(function Derived(...args) {
+ const self = this;
+ function call(...args) {
+ return self.call.apply(self, args);
+ }
+ call.__proto__ = this.__proto__;
+ call.new.apply(call, args);
+ return call;
+ }, class Derived extends core.Object {
+ noSuchMethod(invocation) {
+ return super.noSuchMethod(invocation);
+ }
+ });
+ dart.addTypeTests(Derived);
+ Derived[dart.implements] = () => [FutureOfT()];
+ return Derived;
+ });
+ flatten_test_10_multi.Derived = Derived();
+ flatten_test_10_multi.FixedPoint$ = dart.generic(T => {
+ let FixedPointOfT = () => (FixedPointOfT = dart.constFn(flatten_test_10_multi.FixedPoint$(T)))();
+ let FutureOfFixedPointOfT = () => (FutureOfFixedPointOfT = dart.constFn(async.Future$(FixedPointOfT())))();
+ const FixedPoint = dart.callableClass(function FixedPoint(...args) {
+ const self = this;
+ function call(...args) {
+ return self.call.apply(self, args);
+ }
+ call.__proto__ = this.__proto__;
+ call.new.apply(call, args);
+ return call;
+ }, class FixedPoint extends core.Object {
+ noSuchMethod(invocation) {
+ return super.noSuchMethod(invocation);
+ }
+ });
+ dart.addTypeTests(FixedPoint);
+ FixedPoint[dart.implements] = () => [FutureOfFixedPointOfT()];
+ return FixedPoint;
+ });
+ flatten_test_10_multi.FixedPoint = FixedPoint();
+ flatten_test_10_multi.test = function() {
+ return dart.async(function*() {
+ }, dart.dynamic);
+ };
+ dart.fn(flatten_test_10_multi.test, VoidTodynamic());
+ flatten_test_10_multi.main = function() {
+ flatten_test_10_multi.test();
+ };
+ dart.fn(flatten_test_10_multi.main, VoidTodynamic());
+ // Exports:
+ exports.flatten_test_10_multi = flatten_test_10_multi;
+});
« no previous file with comments | « test/codegen/expect/language/flatten_test_09_multi.js ('k') | test/codegen/expect/language/flatten_test_11_multi.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698