Index: test/codegen/expect/language/enum_private_test_none_multi.js |
diff --git a/test/codegen/expect/language/enum_private_test_none_multi.js b/test/codegen/expect/language/enum_private_test_none_multi.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b3c0e895a3bee1c9171db1b58a67bcbd7b261e12 |
--- /dev/null |
+++ b/test/codegen/expect/language/enum_private_test_none_multi.js |
@@ -0,0 +1,48 @@ |
+dart_library.library('language/enum_private_test_none_multi', null, /* Imports */[ |
+ 'dart_sdk', |
+ 'expect' |
+], function load__enum_private_test_none_multi(exports, dart_sdk, expect) { |
+ 'use strict'; |
+ const core = dart_sdk.core; |
+ const dart = dart_sdk.dart; |
+ const dartx = dart_sdk.dartx; |
+ const expect$ = expect.expect; |
+ const enum_private_test_none_multi = Object.create(null); |
+ const enum_private_lib = Object.create(null); |
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))(); |
+ enum_private_test_none_multi.Enum1 = class Enum1 extends core.Object { |
+ new(index) { |
+ this.index = index; |
+ } |
+ toString() { |
+ return { |
+ 0: "Enum1._A", |
+ 1: "Enum1._B" |
+ }[this.index]; |
+ } |
+ }; |
+ enum_private_test_none_multi.Enum1._A = dart.const(new enum_private_test_none_multi.Enum1(0)); |
+ enum_private_test_none_multi.Enum1._B = dart.const(new enum_private_test_none_multi.Enum1(1)); |
+ enum_private_test_none_multi.Enum1.values = dart.constList([enum_private_test_none_multi.Enum1._A, enum_private_test_none_multi.Enum1._B], enum_private_test_none_multi.Enum1); |
+ enum_private_test_none_multi.main = function() { |
+ expect$.Expect.equals('Enum1._A,Enum1._B', enum_private_test_none_multi.Enum1.values[dartx.join](',')); |
+ }; |
+ dart.fn(enum_private_test_none_multi.main, VoidTodynamic()); |
+ enum_private_lib.Enum2 = class Enum2 extends core.Object { |
+ new(index) { |
+ this.index = index; |
+ } |
+ toString() { |
+ return { |
+ 0: "Enum2._A", |
+ 1: "Enum2._B" |
+ }[this.index]; |
+ } |
+ }; |
+ enum_private_lib.Enum2._A = dart.const(new enum_private_lib.Enum2(0)); |
+ enum_private_lib.Enum2._B = dart.const(new enum_private_lib.Enum2(1)); |
+ enum_private_lib.Enum2.values = dart.constList([enum_private_lib.Enum2._A, enum_private_lib.Enum2._B], enum_private_lib.Enum2); |
+ // Exports: |
+ exports.enum_private_test_none_multi = enum_private_test_none_multi; |
+ exports.enum_private_lib = enum_private_lib; |
+}); |