OLD | NEW |
1 dart_library.library('corelib/iterable_join_test', null, /* Imports */[ | 1 dart_library.library('corelib/iterable_join_test', null, /* Imports */[ |
2 'dart_sdk', | 2 'dart_sdk', |
3 'expect' | 3 'expect' |
4 ], function load__iterable_join_test(exports, dart_sdk, expect) { | 4 ], function load__iterable_join_test(exports, dart_sdk, expect) { |
5 'use strict'; | 5 'use strict'; |
6 const core = dart_sdk.core; | 6 const core = dart_sdk.core; |
7 const _interceptors = dart_sdk._interceptors; | 7 const _interceptors = dart_sdk._interceptors; |
8 const dart = dart_sdk.dart; | 8 const dart = dart_sdk.dart; |
9 const dartx = dart_sdk.dartx; | 9 const dartx = dart_sdk.dartx; |
10 const expect$ = expect.expect; | 10 const expect$ = expect.expect; |
11 const iterable_join_test = Object.create(null); | 11 const iterable_join_test = Object.create(null); |
12 let JSArrayOfint = () => (JSArrayOfint = dart.constFn(_interceptors.JSArray$(c
ore.int)))(); | 12 let JSArrayOfint = () => (JSArrayOfint = dart.constFn(_interceptors.JSArray$(c
ore.int)))(); |
13 let JSArrayOfString = () => (JSArrayOfString = dart.constFn(_interceptors.JSAr
ray$(core.String)))(); | 13 let JSArrayOfString = () => (JSArrayOfString = dart.constFn(_interceptors.JSAr
ray$(core.String)))(); |
14 let JSArrayOfIC = () => (JSArrayOfIC = dart.constFn(_interceptors.JSArray$(ite
rable_join_test.IC)))(); | 14 let JSArrayOfIC = () => (JSArrayOfIC = dart.constFn(_interceptors.JSArray$(ite
rable_join_test.IC)))(); |
| 15 let ListOfString = () => (ListOfString = dart.constFn(core.List$(core.String))
)(); |
15 let JSArrayOfStringable = () => (JSArrayOfStringable = dart.constFn(_intercept
ors.JSArray$(iterable_join_test.Stringable)))(); | 16 let JSArrayOfStringable = () => (JSArrayOfStringable = dart.constFn(_intercept
ors.JSArray$(iterable_join_test.Stringable)))(); |
16 let JSArrayOfObject = () => (JSArrayOfObject = dart.constFn(_interceptors.JSAr
ray$(core.Object)))(); | 17 let JSArrayOfObject = () => (JSArrayOfObject = dart.constFn(_interceptors.JSAr
ray$(core.Object)))(); |
17 let StringAndIterable__Todynamic = () => (StringAndIterable__Todynamic = dart.
constFn(dart.definiteFunctionType(dart.dynamic, [core.String, core.Iterable], [c
ore.String])))(); | 18 let StringAndIterable__Todynamic = () => (StringAndIterable__Todynamic = dart.
constFn(dart.definiteFunctionType(dart.dynamic, [core.String, core.Iterable], [c
ore.String])))(); |
18 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun
ctionType(dart.dynamic, [dart.dynamic])))(); | 19 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun
ctionType(dart.dynamic, [dart.dynamic])))(); |
19 let dynamicTovoid = () => (dynamicTovoid = dart.constFn(dart.definiteFunctionT
ype(dart.void, [dart.dynamic])))(); | 20 let dynamicTovoid = () => (dynamicTovoid = dart.constFn(dart.definiteFunctionT
ype(dart.void, [dart.dynamic])))(); |
20 let StringToString = () => (StringToString = dart.constFn(dart.definiteFunctio
nType(core.String, [core.String])))(); | 21 let StringToString = () => (StringToString = dart.constFn(dart.definiteFunctio
nType(core.String, [core.String])))(); |
21 let intToint = () => (intToint = dart.constFn(dart.definiteFunctionType(core.i
nt, [core.int])))(); | 22 let intToint = () => (intToint = dart.constFn(dart.definiteFunctionType(core.i
nt, [core.int])))(); |
22 let ICToIC = () => (ICToIC = dart.constFn(dart.definiteFunctionType(iterable_j
oin_test.IC, [iterable_join_test.IC])))(); | 23 let ICToIC = () => (ICToIC = dart.constFn(dart.definiteFunctionType(iterable_j
oin_test.IC, [iterable_join_test.IC])))(); |
23 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); | 24 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
24 let intToString = () => (intToString = dart.constFn(dart.definiteFunctionType(
core.String, [core.int])))(); | 25 let intToString = () => (intToString = dart.constFn(dart.definiteFunctionType(
core.String, [core.int])))(); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 dart.fn(iterable_join_test.testCollections, VoidTodynamic()); | 117 dart.fn(iterable_join_test.testCollections, VoidTodynamic()); |
117 iterable_join_test.testStringVariants = function() { | 118 iterable_join_test.testStringVariants = function() { |
118 iterable_join_test.testJoin("axbxcxd", JSArrayOfString().of(["a", "b", "c",
"d"]), "x"); | 119 iterable_join_test.testJoin("axbxcxd", JSArrayOfString().of(["a", "b", "c",
"d"]), "x"); |
119 iterable_join_test.testJoin("a b c d", JSArrayOfString().of(["a", "b", "c",
"d"]), " "); | 120 iterable_join_test.testJoin("a b c d", JSArrayOfString().of(["a", "b", "c",
"d"]), " "); |
120 iterable_join_test.testJoin("abcd", JSArrayOfString().of(["a", "b", "c", "d"
]), ""); | 121 iterable_join_test.testJoin("abcd", JSArrayOfString().of(["a", "b", "c", "d"
]), ""); |
121 iterable_join_test.testJoin("abcd", JSArrayOfString().of(["a", "b", "c", "d"
])); | 122 iterable_join_test.testJoin("abcd", JSArrayOfString().of(["a", "b", "c", "d"
])); |
122 iterable_join_test.testJoin("axbxcx ", JSArrayOfString().of(["a", "b", "c",
" "]), "x"); | 123 iterable_join_test.testJoin("axbxcx ", JSArrayOfString().of(["a", "b", "c",
" "]), "x"); |
123 iterable_join_test.testJoin("a b c ", JSArrayOfString().of(["a", "b", "c",
" "]), " "); | 124 iterable_join_test.testJoin("a b c ", JSArrayOfString().of(["a", "b", "c",
" "]), " "); |
124 iterable_join_test.testJoin("abc ", JSArrayOfString().of(["a", "b", "c", " "
]), ""); | 125 iterable_join_test.testJoin("abc ", JSArrayOfString().of(["a", "b", "c", " "
]), ""); |
125 iterable_join_test.testJoin("abc ", JSArrayOfString().of(["a", "b", "c", " "
])); | 126 iterable_join_test.testJoin("abc ", JSArrayOfString().of(["a", "b", "c", " "
])); |
126 iterable_join_test.testJoin("ax"[dartx['*']](255) + "a", core.List.generate(
256, dart.fn(_ => "a", intToString())), "x"); | 127 iterable_join_test.testJoin("ax"[dartx['*']](255) + "a", ListOfString().gene
rate(256, dart.fn(_ => "a", intToString())), "x"); |
127 iterable_join_test.testJoin("a"[dartx['*']](256), core.List.generate(256, da
rt.fn(_ => "a", intToString()))); | 128 iterable_join_test.testJoin("a"[dartx['*']](256), ListOfString().generate(25
6, dart.fn(_ => "a", intToString()))); |
128 iterable_join_test.testJoin("a "[dartx['*']](255) + "a", core.List.generate(
256, dart.fn(_ => "a", intToString())), " "); | 129 iterable_join_test.testJoin("a "[dartx['*']](255) + "a", ListOfString().gene
rate(256, dart.fn(_ => "a", intToString())), " "); |
129 iterable_join_test.testJoin(" "[dartx['*']](256), core.List.generate(256, da
rt.fn(_ => " ", intToString()))); | 130 iterable_join_test.testJoin(" "[dartx['*']](256), ListOfString().generate(25
6, dart.fn(_ => " ", intToString()))); |
130 iterable_join_test.testJoin(" x"[dartx['*']](255) + " ", core.List.generate(
256, dart.fn(_ => " ", intToString())), "x"); | 131 iterable_join_test.testJoin(" x"[dartx['*']](255) + " ", ListOfString().gene
rate(256, dart.fn(_ => " ", intToString())), "x"); |
131 let o1 = new iterable_join_test.Stringable("x"); | 132 let o1 = new iterable_join_test.Stringable("x"); |
132 let o2 = new iterable_join_test.Stringable(""); | 133 let o2 = new iterable_join_test.Stringable(""); |
133 iterable_join_test.testJoin("xa"[dartx['*']](3) + "x", JSArrayOfStringable()
.of([o1, o1, o1, o1]), "a"); | 134 iterable_join_test.testJoin("xa"[dartx['*']](3) + "x", JSArrayOfStringable()
.of([o1, o1, o1, o1]), "a"); |
134 iterable_join_test.testJoin("x"[dartx['*']](4), JSArrayOfStringable().of([o1
, o1, o1, o1]), ""); | 135 iterable_join_test.testJoin("x"[dartx['*']](4), JSArrayOfStringable().of([o1
, o1, o1, o1]), ""); |
135 iterable_join_test.testJoin("x"[dartx['*']](4), JSArrayOfStringable().of([o1
, o1, o1, o1])); | 136 iterable_join_test.testJoin("x"[dartx['*']](4), JSArrayOfStringable().of([o1
, o1, o1, o1])); |
136 iterable_join_test.testJoin("x"[dartx['*']](3) + "", JSArrayOfStringable()
.of([o2, o2, o2, o2]), "x"); | 137 iterable_join_test.testJoin("x"[dartx['*']](3) + "", JSArrayOfStringable()
.of([o2, o2, o2, o2]), "x"); |
137 iterable_join_test.testJoin(""[dartx['*']](4), JSArrayOfStringable().of([o2
, o2, o2, o2]), ""); | 138 iterable_join_test.testJoin(""[dartx['*']](4), JSArrayOfStringable().of([o2
, o2, o2, o2]), ""); |
138 iterable_join_test.testJoin(""[dartx['*']](4), JSArrayOfStringable().of([o2
, o2, o2, o2])); | 139 iterable_join_test.testJoin(""[dartx['*']](4), JSArrayOfStringable().of([o2
, o2, o2, o2])); |
139 iterable_join_test.testJoin("a x", JSArrayOfObject().of(["a", " ", o1, o2])
); | 140 iterable_join_test.testJoin("a x", JSArrayOfObject().of(["a", " ", o1, o2])
); |
140 iterable_join_test.testJoin("a x", JSArrayOfObject().of(["a", " ", o2, o1])
); | 141 iterable_join_test.testJoin("a x", JSArrayOfObject().of(["a", " ", o2, o1])
); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 constructors: () => ({new: dart.definiteFunctionType(iterable_join_test.Stri
ngable, [core.String])}) | 175 constructors: () => ({new: dart.definiteFunctionType(iterable_join_test.Stri
ngable, [core.String])}) |
175 }); | 176 }); |
176 iterable_join_test.main = function() { | 177 iterable_join_test.main = function() { |
177 iterable_join_test.testCollections(); | 178 iterable_join_test.testCollections(); |
178 iterable_join_test.testStringVariants(); | 179 iterable_join_test.testStringVariants(); |
179 }; | 180 }; |
180 dart.fn(iterable_join_test.main, VoidTodynamic()); | 181 dart.fn(iterable_join_test.main, VoidTodynamic()); |
181 // Exports: | 182 // Exports: |
182 exports.iterable_join_test = iterable_join_test; | 183 exports.iterable_join_test = iterable_join_test; |
183 }); | 184 }); |
OLD | NEW |