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

Side by Side Diff: test/codegen/expect/language/canonical_const_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/canonical_const_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__canonical_const_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 canonical_const_test = Object.create(null);
11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
12 let const$;
13 let const$0;
14 let const$1;
15 let const$2;
16 let const$3;
17 let const$4;
18 let const$5;
19 let const$6;
20 let const$7;
21 let const$8;
22 let const$9;
23 let const$10;
24 let const$11;
25 let const$12;
26 let const$13;
27 let const$14;
28 let const$15;
29 let const$16;
30 let const$17;
31 let const$18;
32 let const$19;
33 let const$20;
34 canonical_const_test.CanonicalConstTest = class CanonicalConstTest extends cor e.Object {
35 static testMain() {
36 expect$.Expect.identical(null, null);
37 expect$.Expect.isFalse(core.identical(null, 0));
38 expect$.Expect.identical(1, 1);
39 expect$.Expect.isFalse(core.identical(1, 2));
40 expect$.Expect.identical(true, true);
41 expect$.Expect.identical("so", "so");
42 expect$.Expect.identical(const$ || (const$ = dart.const(new core.Object()) ), const$0 || (const$0 = dart.const(new core.Object())));
43 expect$.Expect.isFalse(core.identical(const$1 || (const$1 = dart.const(new core.Object())), const$2 || (const$2 = dart.const(new canonical_const_test.C1() ))));
44 expect$.Expect.identical(const$3 || (const$3 = dart.const(new canonical_co nst_test.C1())), const$4 || (const$4 = dart.const(new canonical_const_test.C1()) ));
45 expect$.Expect.identical(canonical_const_test.CanonicalConstTest.A, const$ 5 || (const$5 = dart.const(new canonical_const_test.C1())));
46 expect$.Expect.isFalse(core.identical(const$6 || (const$6 = dart.const(new canonical_const_test.C1())), const$7 || (const$7 = dart.const(new canonical_con st_test.C2()))));
47 expect$.Expect.identical(canonical_const_test.CanonicalConstTest.B, const$ 8 || (const$8 = dart.const(new canonical_const_test.C2())));
48 expect$.Expect.isFalse(core.identical(const$9 || (const$9 = dart.constList ([2, 1], core.int)), const$10 || (const$10 = dart.constList([1, 2], core.int)))) ;
49 expect$.Expect.identical(const$11 || (const$11 = dart.constList([1, 2], co re.int)), const$12 || (const$12 = dart.constList([1, 2], core.int)));
50 expect$.Expect.identical(const$13 || (const$13 = dart.constList([1, 2], co re.Object)), const$14 || (const$14 = dart.constList([1, 2], core.Object)));
51 expect$.Expect.isFalse(core.identical(const$15 || (const$15 = dart.constLi st([1, 2], core.int)), const$16 || (const$16 = dart.constList([1.0, 2.0], core.d ouble))));
52 expect$.Expect.identical(const$17 || (const$17 = dart.const(dart.map({a: 1 , b: 2}))), const$18 || (const$18 = dart.const(dart.map({a: 1, b: 2}))));
53 expect$.Expect.isFalse(core.identical(const$19 || (const$19 = dart.const(d art.map({a: 1, b: 2}))), const$20 || (const$20 = dart.const(dart.map({a: 2, b: 2 })))));
54 }
55 };
56 dart.setSignature(canonical_const_test.CanonicalConstTest, {
57 statics: () => ({testMain: dart.definiteFunctionType(dart.dynamic, [])}),
58 names: ['testMain']
59 });
60 dart.defineLazy(canonical_const_test.CanonicalConstTest, {
61 get A() {
62 return dart.const(new canonical_const_test.C1());
63 },
64 get B() {
65 return dart.const(new canonical_const_test.C2());
66 }
67 });
68 canonical_const_test.C1 = class C1 extends core.Object {
69 new() {
70 }
71 };
72 dart.setSignature(canonical_const_test.C1, {
73 constructors: () => ({new: dart.definiteFunctionType(canonical_const_test.C1 , [])})
74 });
75 canonical_const_test.C2 = class C2 extends canonical_const_test.C1 {
76 new() {
77 super.new();
78 }
79 };
80 dart.setSignature(canonical_const_test.C2, {
81 constructors: () => ({new: dart.definiteFunctionType(canonical_const_test.C2 , [])})
82 });
83 canonical_const_test.main = function() {
84 canonical_const_test.CanonicalConstTest.testMain();
85 };
86 dart.fn(canonical_const_test.main, VoidTodynamic());
87 // Exports:
88 exports.canonical_const_test = canonical_const_test;
89 });
OLDNEW
« no previous file with comments | « test/codegen/expect/language/canonical_const3_test.js ('k') | test/codegen/expect/language/cascade2_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698