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

Unified Diff: test/codegen/expect/language/mixin_type_parameter6_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_type_parameter6_test.js
diff --git a/test/codegen/expect/language/mixin_type_parameter6_test.js b/test/codegen/expect/language/mixin_type_parameter6_test.js
new file mode 100644
index 0000000000000000000000000000000000000000..5062d0177e8b73fd048007ed4daec14bf9082f80
--- /dev/null
+++ b/test/codegen/expect/language/mixin_type_parameter6_test.js
@@ -0,0 +1,44 @@
+dart_library.library('language/mixin_type_parameter6_test', null, /* Imports */[
+ 'dart_sdk'
+], function load__mixin_type_parameter6_test(exports, dart_sdk) {
+ 'use strict';
+ const core = dart_sdk.core;
+ const _interceptors = dart_sdk._interceptors;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const mixin_type_parameter6_test = Object.create(null);
+ let A = () => (A = dart.constFn(mixin_type_parameter6_test.A$()))();
+ let B = () => (B = dart.constFn(mixin_type_parameter6_test.B$()))();
+ let JSArrayOfString = () => (JSArrayOfString = dart.constFn(_interceptors.JSArray$(core.String)))();
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ mixin_type_parameter6_test.A$ = dart.generic(T => {
+ class A extends core.Object {}
+ dart.addTypeTests(A);
+ return A;
+ });
+ mixin_type_parameter6_test.A = A();
+ mixin_type_parameter6_test.B$ = dart.generic(S => {
+ class B extends core.Object {
+ foo(s) {
+ S._check(s);
+ return null;
+ }
+ }
+ dart.addTypeTests(B);
+ dart.setSignature(B, {
+ methods: () => ({foo: dart.definiteFunctionType(core.int, [S])})
+ });
+ return B;
+ });
+ mixin_type_parameter6_test.B = B();
+ mixin_type_parameter6_test.C = class C extends dart.mixin(mixin_type_parameter6_test.A$(core.int), mixin_type_parameter6_test.B$(core.String)) {};
+ dart.addSimpleTypeTests(mixin_type_parameter6_test.C);
+ mixin_type_parameter6_test.main = function() {
+ let list = JSArrayOfString().of(['foo']);
+ let c = new mixin_type_parameter6_test.C();
+ list[dartx.map](core.int)(dart.bind(c, 'foo'));
+ };
+ dart.fn(mixin_type_parameter6_test.main, VoidTodynamic());
+ // Exports:
+ exports.mixin_type_parameter6_test = mixin_type_parameter6_test;
+});

Powered by Google App Engine
This is Rietveld 408576698