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

Side by Side Diff: test/codegen/expect/language/enum_duplicate_test_none_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_none_multi', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__enum_duplicate_test_none_multi(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 enum_duplicate_test_none_multi = Object.create(null);
11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
12 enum_duplicate_test_none_multi.Enum1 = class Enum1 extends core.Object {
13 new(index) {
14 this.index = index;
15 }
16 toString() {
17 return {
18 0: "Enum1.A",
19 1: "Enum1.B"
20 }[this.index];
21 }
22 };
23 enum_duplicate_test_none_multi.Enum1.A = dart.const(new enum_duplicate_test_no ne_multi.Enum1(0));
24 enum_duplicate_test_none_multi.Enum1.B = dart.const(new enum_duplicate_test_no ne_multi.Enum1(1));
25 enum_duplicate_test_none_multi.Enum1.values = dart.constList([enum_duplicate_t est_none_multi.Enum1.A, enum_duplicate_test_none_multi.Enum1.B], enum_duplicate_ test_none_multi.Enum1);
26 enum_duplicate_test_none_multi.Enum2 = class Enum2 extends core.Object {
27 new(index) {
28 this.index = index;
29 }
30 toString() {
31 return {
32 0: "Enum2.A",
33 1: "Enum2.B"
34 }[this.index];
35 }
36 };
37 enum_duplicate_test_none_multi.Enum2.A = dart.const(new enum_duplicate_test_no ne_multi.Enum2(0));
38 enum_duplicate_test_none_multi.Enum2.B = dart.const(new enum_duplicate_test_no ne_multi.Enum2(1));
39 enum_duplicate_test_none_multi.Enum2.values = dart.constList([enum_duplicate_t est_none_multi.Enum2.A, enum_duplicate_test_none_multi.Enum2.B], enum_duplicate_ test_none_multi.Enum2);
40 enum_duplicate_test_none_multi.main = function() {
41 expect$.Expect.equals('Enum1.A,Enum1.B', enum_duplicate_test_none_multi.Enum 1.values[dartx.join](','));
42 expect$.Expect.equals('Enum2.A,Enum2.B', enum_duplicate_test_none_multi.Enum 2.values[dartx.join](','));
43 };
44 dart.fn(enum_duplicate_test_none_multi.main, VoidTodynamic());
45 // Exports:
46 exports.enum_duplicate_test_none_multi = enum_duplicate_test_none_multi;
47 });
OLDNEW
« no previous file with comments | « test/codegen/expect/language/enum_duplicate_test_02_multi.js ('k') | test/codegen/expect/language/enum_index_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698