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

Side by Side Diff: test/codegen/expect/language/enum_duplicate_test_02_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 unified diff | Download patch
OLDNEW
(Empty)
1 dart_library.library('language/enum_duplicate_test_02_multi', null, /* Imports * /[
2 'dart_sdk',
3 'expect'
4 ], function load__enum_duplicate_test_02_multi(exports, dart_sdk, expect) {
5 'use strict';
6 const core = dart_sdk.core;
7 const _interceptors = dart_sdk._interceptors;
8 const dart = dart_sdk.dart;
9 const dartx = dart_sdk.dartx;
10 const expect$ = expect.expect;
11 const enum_duplicate_test_02_multi = Object.create(null);
12 const enum_duplicate_lib = Object.create(null);
13 let JSArrayOfString = () => (JSArrayOfString = dart.constFn(_interceptors.JSAr ray$(core.String)))();
14 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
15 enum_duplicate_test_02_multi.Enum1 = class Enum1 extends core.Object {
16 new(index) {
17 this.index = index;
18 }
19 toString() {
20 return {
21 0: "Enum1.A",
22 1: "Enum1.B"
23 }[this.index];
24 }
25 };
26 enum_duplicate_test_02_multi.Enum1.A = dart.const(new enum_duplicate_test_02_m ulti.Enum1(0));
27 enum_duplicate_test_02_multi.Enum1.B = dart.const(new enum_duplicate_test_02_m ulti.Enum1(1));
28 enum_duplicate_test_02_multi.Enum1.values = dart.constList([enum_duplicate_tes t_02_multi.Enum1.A, enum_duplicate_test_02_multi.Enum1.B], enum_duplicate_test_0 2_multi.Enum1);
29 enum_duplicate_test_02_multi.Enum2 = class Enum2 extends core.Object {
30 new(index) {
31 this.index = index;
32 }
33 toString() {
34 return {
35 0: "Enum2.A",
36 1: "Enum2.B"
37 }[this.index];
38 }
39 };
40 enum_duplicate_test_02_multi.Enum2.A = dart.const(new enum_duplicate_test_02_m ulti.Enum2(0));
41 enum_duplicate_test_02_multi.Enum2.B = dart.const(new enum_duplicate_test_02_m ulti.Enum2(1));
42 enum_duplicate_test_02_multi.Enum2.values = dart.constList([enum_duplicate_tes t_02_multi.Enum2.A, enum_duplicate_test_02_multi.Enum2.B], enum_duplicate_test_0 2_multi.Enum2);
43 enum_duplicate_test_02_multi.main = function() {
44 expect$.Expect.equals('Enum1.A,Enum1.B', enum_duplicate_test_02_multi.Enum1. values[dartx.join](','));
45 expect$.Expect.equals('Enum2.A,Enum2.B', enum_duplicate_test_02_multi.Enum2. values[dartx.join](','));
46 expect$.Expect.equals('Enum2.A,Enum2.B', enum_duplicate_lib.Enum2.values[dar tx.join](','));
47 };
48 dart.fn(enum_duplicate_test_02_multi.main, VoidTodynamic());
49 enum_duplicate_lib.Enum1 = class Enum1 extends core.Object {
50 new(index) {
51 this.index = index;
52 }
53 toString() {
54 return {
55 0: "Enum1.A",
56 1: "Enum1.B"
57 }[this.index];
58 }
59 };
60 enum_duplicate_lib.Enum1.A = dart.const(new enum_duplicate_lib.Enum1(0));
61 enum_duplicate_lib.Enum1.B = dart.const(new enum_duplicate_lib.Enum1(1));
62 enum_duplicate_lib.Enum1.values = dart.constList([enum_duplicate_lib.Enum1.A, enum_duplicate_lib.Enum1.B], enum_duplicate_lib.Enum1);
63 enum_duplicate_lib.Enum2 = class Enum2 extends core.Object {
64 static get values() {
65 return JSArrayOfString().of(['Enum2.A', 'Enum2.B']);
66 }
67 };
68 // Exports:
69 exports.enum_duplicate_test_02_multi = enum_duplicate_test_02_multi;
70 exports.enum_duplicate_lib = enum_duplicate_lib;
71 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698