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

Side by Side Diff: test/codegen/expect/language/regress_23650_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 unified diff | Download patch
OLDNEW
(Empty)
1 dart_library.library('language/regress_23650_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__regress_23650_test(exports, dart_sdk, expect) {
5 'use strict';
6 const core = dart_sdk.core;
7 const dart = dart_sdk.dart;
8 const dartx = dart_sdk.dartx;
9 const expect$ = expect.expect;
10 const regress_23650_test = Object.create(null);
11 let C = () => (C = dart.constFn(regress_23650_test.C$()))();
12 let COfint = () => (COfint = dart.constFn(regress_23650_test.C$(core.int)))();
13 let COfString = () => (COfString = dart.constFn(regress_23650_test.C$(core.Str ing)))();
14 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
15 regress_23650_test.C$ = dart.generic(T => {
16 let COfT = () => (COfT = dart.constFn(regress_23650_test.C$(T)))();
17 class C extends core.Object {
18 foo() {
19 }
20 static new() {
21 try {
22 return new (COfT()).foo();
23 } finally {
24 }
25 }
26 }
27 dart.addTypeTests(C);
28 dart.defineNamedConstructor(C, 'foo');
29 dart.setSignature(C, {
30 constructors: () => ({
31 foo: dart.definiteFunctionType(regress_23650_test.C$(T), []),
32 new: dart.definiteFunctionType(regress_23650_test.C$(T), [])
33 })
34 });
35 return C;
36 });
37 regress_23650_test.C = C();
38 regress_23650_test.main = function() {
39 let c = COfint().new();
40 expect$.Expect.isTrue(COfint().is(c));
41 expect$.Expect.isFalse(COfString().is(c));
42 };
43 dart.fn(regress_23650_test.main, VoidTodynamic());
44 // Exports:
45 exports.regress_23650_test = regress_23650_test;
46 });
OLDNEW
« no previous file with comments | « test/codegen/expect/language/regress_23537_test.js ('k') | test/codegen/expect/language/regress_r24720_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698