Debian Codegraph @

dojox/string/tests/BidiEngine/BidiEngineTest.js

raw symbols SCIP
1 define(["doh/runner", "dojox/string/BidiEngine"], function(doh, BidiEngine) {
2
3 var unilisrc = [
4 // 0
5 "abc def ghij",
6 // 1
7 "abc\u0020\u05d4\u05d5\u05d6\u05d7\u0020\u05d8\u05d9\u05da\u0020\u05da\u05db\u05dc\u05dd\u0020opq rstu",
8 // 2
9 "abc !\"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ def",
10 // 3
11 "abc !\"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ \u05d4\u05d5\u05d6",
12 // 4
13 ".-= abc def /\\",
14 // 5
15 ".-= abc \u05d4\u05d5\u05d6 /\\",
16 // 6
17 "abc 123",
18 // 7
19 "abc 123 401",
20 // 8
21 "abc 123 ghi",
22 // 9
23 "abc 123 401 ghi",
24 // 10
25 "abc 123 \u05d7\u05d8\u05d9",
26 // 11
27 "abc 123 401 \u05d7\u05d8\u05d9",
28 // 12
29 "abc0123",
30 // 13
31 "abc0123 401",
32 // 14
33 "abc0123ghi",
34 // 15
35 "abc0123 401ghi",
36 // 16
37 "abc0123\u05d7\u05d8\u05d9",
38 // 17
39 "abc0123 401\u05d7\u05d8\u05d9",
40 // 18
41 "abc \u05d4\u05d5\u05d6 123",
42 // 19
43 "abc \u05d4\u05d5\u05d6 123 401",
44 // 20
45 "abc \u05d4\u05d5\u05d6 123 ghi",
46 // 21
47 "abc \u05d4\u05d5\u05d6 123 401 ghi",
48 // 22
49 "abc \u05d4\u05d5\u05d6 123 \u05d7\u05d8\u05d9",
50 // 23
51 "abc \u05d4\u05d5\u05d6 123 401 \u05d7\u05d8\u05d9",
52 // 24
53 "abc \u05d4\u05d5\u05d60123",
54 // 25
55 "abc \u05d4\u05d5\u05d60123 401",
56 // 26
57 "abc \u05d4\u05d5\u05d601234ghi",
58 // 27
59 "abc \u05d4\u05d5\u05d60123 401ghi",
60 // 28
61 "abc \u05d4\u05d5\u05d601234\u05d7\u05d8\u05d9",
62 // 29
63 "abc \u05d4\u05d5\u05d60123 401\u05d7\u05d8\u05d9",
64 // 30
65 "123 401 abc def",
66 // 31
67 "abc(\u05d4\u05d5\u05d6)\u05d7\u05d8\u05d9",
68 // 32
69 "abc(\u05d4\u05d5\u05d6)ghi",
70 // 33
71 "abc(def)\u05d7\u05d8\u05d9",
72 // 34
73 "abc(def)ghi",
74 // 35
75 "abc\u05bbde\u05b8fg",
76 // 36
77 "abc\u05bb\u05d4\u05d5\u05b8fg",
78 // 37
79 "abc \u05d4\u05d5\u05d6\u05d7 \u05d8\u05d9\u05da klm",
80 // 38
81 "abc \u05d4\u05d5\u05d6\u05d7 hij klm",
82 // 39
83 "abc defg \u05d8\u05d9\u05da klm",
84 // 40
85 "abc defg hij klm",
86 // 41
87 "abc \u05d4\u05d5\u05d6\u05d7 \u05d8\u05d9\u05da klm",
88 // 42
89 "abc \u05d4\u05d5\u05d6\u05d7 hij klm",
90 // 43
91 "abc defg \u05d8\u05d9\u05da klm",
92 // 44
93 "abc defg hij klm",
94 // 45
95 "abc \u05d4\u05d5\u05d6\u05d7 ._- =\u005c\u05d8\u05d9\u05da klm",
96 // 46
97 "abc \u05d4\u05d5\u05d6\u05d7 ._- =\hij klm",
98 // 47
99 "abc defg ._- =\u005c\u05d8\u05d9\u05da klm",
100 // 48
101 "abc defg ._- =\hij klm",
102 // 49
103 "abc \u05d4\u05d5\u05d6\u05d7 ._- =\u005c\u05d8\u05d9\u05da klm",
104 // 50
105 "abc \u05d4\u05d5\u05d6\u05d7 ._- =\hij klm",
106 // 51
107 "abc defg ._- =\u005c\u05d8\u05d9\u05da klm",
108 // 52
109 "abc defg ._- =\hij klm",
110 // 53
111 " abc \u05d4\u05d5\u05d6 ghi",
112 // 54
113 ".- abc \u05d4\u05d5\u05d6 ghi",
114 // 55
115 "12 abc \u05d4\u05d5\u05d6 ghi",
116 // 56
117 "/* 012$ % 3401$ < = 12 */"
118 ];
119 var uniliout = [
120 // 0
121 "abc def ghij",
122 // 1
123 "abc \u05dd\u05dc\u05db\u05da\u0020\u05da\u05d9\u05d8\u0020\u05d7\u05d6\u05d5\u05d4 opq rstu",
124 // 2
125 "abc !\"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ def",
126 // 3
127 "abc !\"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ \u05d6\u05d5\u05d4",
128 // 4
129 ".-= abc def /\\",
130 // 5
131 ".-= abc \u05d6\u05d5\u05d4 /\\",
132 // 6
133 "abc 123",
134 // 7
135 "abc 123 401",
136 // 8
137 "abc 123 ghi",
138 // 9
139 "abc 123 401 ghi",
140 // 10
141 "abc 123 \u05d9\u05d8\u05d7",
142 // 11
143 "abc 123 401 \u05d9\u05d8\u05d7",
144 // 12
145 "abc0123",
146 // 13
147 "abc0123 401",
148 // 14
149 "abc0123ghi",
150 // 15
151 "abc0123 401ghi",
152 // 16
153 "abc0123\u05d9\u05d8\u05d7",
154 // 17
155 "abc0123 401\u05d9\u05d8\u05d7",
156 // 18
157 "abc 123 \u05d6\u05d5\u05d4",
158 // 19
159 "abc 401 123 \u05d6\u05d5\u05d4",
160 // 20
161 "abc 123 \u05d6\u05d5\u05d4 ghi",
162 // 21
163 "abc 401 123 \u05d6\u05d5\u05d4 ghi",
164 // 22
165 "abc \u05d9\u05d8\u05d7 123 \u05d6\u05d5\u05d4",
166 // 23
167 "abc \u05d9\u05d8\u05d7 401 123 \u05d6\u05d5\u05d4",
168 // 24
169 "abc 0123\u05d6\u05d5\u05d4",
170 // 25
171 "abc 401 0123\u05d6\u05d5\u05d4",
172 // 26
173 "abc 01234\u05d6\u05d5\u05d4ghi",
174 // 27
175 "abc 401 0123\u05d6\u05d5\u05d4ghi",
176 // 28
177 "abc \u05d9\u05d8\u05d701234\u05d6\u05d5\u05d4",
178 // 29
179 "abc \u05d9\u05d8\u05d7401 0123\u05d6\u05d5\u05d4",
180 // 30
181 "123 401 abc def",
182 // 31
183 "abc(\u05d9\u05d8\u05d7(\u05d6\u05d5\u05d4",
184 // 32
185 "abc(\u05d6\u05d5\u05d4)ghi",
186 // 33
187 "abc(def)\u05d9\u05d8\u05d7",
188 // 34
189 "abc(def)ghi",
190 // 35
191 "abc\u05bbde\u05b8fg",
192 // 36
193 "abc\u05bb\u05b8\u05d5\u05d4fg",
194 // 37
195 "abc \u05d7\u05d6\u05d5\u05d4 \u05da\u05d9\u05d8 klm",
196 // 38
197 "abc \u05d7\u05d6\u05d5\u05d4 hij klm",
198 // 39
199 "abc defg \u05da\u05d9\u05d8 klm",
200 // 40
201 "abc defg hij klm",
202 // 41
203 "abc \u05d7\u05d6\u05d5\u05d4 \u05da\u05d9\u05d8 klm",
204 // 42
205 "abc \u05d7\u05d6\u05d5\u05d4 hij klm",
206 // 43
207 "abc defg \u05da\u05d9\u05d8 klm",
208 // 44
209 "abc defg hij klm",
210 // 45
211 "abc -_. \u05d7\u05d6\u05d5\u05d4 \u05da\u05d9\u05d8\u005c= klm",
212 // 46
213 "abc \u05d7\u05d6\u05d5\u05d4 ._- =\hij klm",
214 // 47
215 "abc defg ._- =\u005c\u05da\u05d9\u05d8 klm",
216 // 48
217 "abc defg ._- =\hij klm",
218 // 49
219 "abc -_. \u05d7\u05d6\u05d5\u05d4 \u05da\u05d9\u05d8\u005c= klm",
220 // 50
221 "abc \u05d7\u05d6\u05d5\u05d4 ._- =\hij klm",
222 // 51
223 "abc defg ._- =\u005c\u05da\u05d9\u05d8 klm",
224 // 52
225 "abc defg ._- =\hij klm",
226 // 53
227 " abc \u05d6\u05d5\u05d4 ghi",
228 // 54
229 ".- abc \u05d6\u05d5\u05d4 ghi",
230 // 55
231 "12 abc \u05d6\u05d5\u05d4 ghi",
232 // 56
233 "/* 012$ % 3401$ < = 12 */"
234 ];
235 var unirisrc = [
236 // 0
237 "\u05d1\u05d2\u05d3\u0020\u05d4\u05d5\u05d6\u0020\u05d7\u05d8\u05d9\u05da",
238 // 1
239 "\u05d1\u05d2\u05d3 defg hij klmn \u05d6\u05d7\u05d8\u0020\u05d9\u05da\u05db\u05dc",
240 // 2
241 "\u05d1\u05d2\u05d3 #123 $234 %340 +401 -012 \u05d4\u05d5\u05d6",
242 // 3
243 "\u05d1\u05d2\u05d3 123# 234$ 340% 401+ 012- \u05d4\u05d5\u05d6",
244 // 4
245 "\u05d1\u05d2\u05d3 123#234$340%401+012-024 \u05d4\u05d5\u05d6",
246 // 5
247 "\u05d1\u05d2\u05d3 123-",
248 // 6
249 "\u05d9\u05d6 20 + 14 = 34?",
250 // 7
251 "\u05d1\u05d2\u05d3 123.",
252 // 8
253 "\u05d1\u05d2\u05d3 12,340,123.40:13:24/30/41 \u05d4\u05d5\u05d6",
254 // 9
255 "\u05d1\u05d2\u05d3 -12,340.13$ \u05d4\u05d5\u05d6",
256 // 10
257 "\u05d9\u0020\u05d3\u05dc\u05d1\u05d9\u05dd: 4.4-0.4=4.0, ok?",
258 // 11
259 "\u05d1\u05d2\u05d3 ,123 .234 :340 /401 \u05d4\u05d5\u05d6",
260 // 12
261 "\u05d1\u05d2\u05d3 123, 234. 340: 401/ \u05d4\u05d5\u05d6",
262 // 13
263 "\u05d1\u05d2\u05d3 123..40 \u05d4\u05d5\u05d6",
264 // 14
265 "\u05d1\u05d2\u05d3 123.,40 \u05d4\u05d5\u05d6",
266 // 15
267 "\u05d1\u05d2\u05d3 123/.40 \u05d4\u05d5\u05d6",
268 // 16
269 "\u05d1\u05d2\u05d3 ---123$$ \u05d4\u05d5\u05d6",
270 // 17
271 "\u05d1\u05d2\u05d3 +-123#$% \u05d4\u05d5\u05d6",
272 // 18
273 "\u05d1\u05d2\u05d3 123###234$%340%%%401+--012-++130 \u05d4\u05d5\u05d6",
274 // 19
275 "\u05d1\u05d2\u05d3 !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ \u05d4\u05d5\u05d6",
276 // 20
277 "\u05d1\u05d2\u05d3 !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ def",
278 // 21
279 ".-= \u05d1\u05d2\u05d3 \u05d4\u05d5\u05d6 /\\",
280 // 22
281 ".-= \u05d1\u05d2\u05d3 def /\\",
282 // 23
283 "\u05d1\u05d2\u05d3 123",
284 // 24
285 "\u05d1\u05d2\u05d3 123 401",
286 // 25
287 "\u05d1\u05d2\u05d3 123 \u05d7\u05d8\u05d9",
288 // 26
289 "\u05d1\u05d2\u05d3 123 401 \u05d7\u05d8\u05d9",
290 // 27
291 "\u05d1\u05d2\u05d3 123 ghi",
292 // 28
293 "\u05d1\u05d2\u05d3 123 401 ghi",
294 // 29
295 "\u05d1\u05d2\u05d30123",
296 // 30
297 "\u05d1\u05d2\u05d30123 401",
298 // 31
299 "\u05d1\u05d2\u05d301234\u05d7\u05d8\u05d9",
300 // 32
301 "\u05d1\u05d2\u05d30123 401\u05d7\u05d8\u05d9",
302 // 33
303 "\u05d1\u05d2\u05d301234ghi",
304 // 34
305 "\u05d1\u05d2\u05d30123 401ghi",
306 // 35
307 "\u05d1\u05d2\u05d3 def 123",
308 // 36
309 "\u05d1\u05d2\u05d3 def 123 401",
310 // 37
311 "\u05d1\u05d2\u05d3 def 123 \u05d7\u05d8\u05d9",
312 // 38
313 "\u05d1\u05d2\u05d3 def 123 401 \u05d7\u05d8\u05d9",
314 // 39
315 "\u05d1\u05d2\u05d3 def 123 ghi",
316 // 40
317 "\u05d1\u05d2\u05d3 def 123 401 ghi",
318 // 41
319 "\u05d1\u05d2\u05d3 def123",
320 // 42
321 "\u05d1\u05d2\u05d3 def0123 401",
322 // 43
323 "\u05d1\u05d2\u05d3 def01234\u05d7\u05d8\u05d9",
324 // 44
325 "\u05d1\u05d2\u05d3 def0123 401\u05d7\u05d8\u05d9",
326 // 45
327 "\u05d1\u05d2\u05d3 def01234ghi",
328 // 46
329 "\u05d1\u05d2\u05d3 def0123 401ghi",
330 // 47
331 "123 401 \u05d1\u05d2\u05d3 \u05d4\u05d5\u05d6",
332 // 48
333 "\u05d1\u05d2\u05d3(\u05d4\u05d5\u05d6)\u05d7\u05d8\u05d9",
334 // 49
335 "\u05d1\u05d2\u05d3(\u05d4\u05d5\u05d6)ghi",
336 // 50
337 "\u05d1\u05d2\u05d3(def)\u05d7\u05d8\u05d9",
338 // 51
339 "\u05d1\u05d2\u05d3(def)ghi",
340 // 52
341 "\u05d1\u05d2\u05d3 (\u05d4\u05d5\u05d6) [\u05d7\u05d8\u05d9] {\u05da\u05db\u05dc} <\u05dd\u05d1> \u05d2\u05d3\u05d4",
342 // 53
343 "\u05d1\u05d2\u05d3\u05bb\u05d4\u05d5\u05b8\u05d6\u05d7",
344 // 54
345 "\u05d1\u05d2\u05d3\u05bb\u0064\u05d5\u05b8\u05d6\u05d7",
346 // 55
347 "\u05bb\u05d4\u05d5",
348 // 56
349 "\u05d1\u05d2\u05d3 defg hij \u05db\u05dc\u05dd",
350 // 57
351 "\u05d1\u05d2\u05d3 defg \u05d8\u05d9\u05da \u05db\u05dc\u05dd",
352 // 58
353 "\u05d1\u05d2\u05d3 \u05d4\u05d5\u05d6\u05d7 hij \u05db\u05dc\u05dd",
354 // 59
355 "\u05d1\u05d2\u05d3 \u05d4\u05d5\u05d6\u05d7 \u05d8\u05d9\u05da \u05db\u05dc\u05dd",
356 // 60
357 "\u05d1\u05d2\u05d3 defg hij \u05db\u05dc\u05dd",
358 // 61
359 "\u05d1\u05d2\u05d3 defg \u05d8\u05d9\u05da \u05db\u05dc\u05dd",
360 // 62
361 "\u05d1\u05d2\u05d3 \u05d4\u05d5\u05d6\u05d7 hij \u05db\u05dc\u05dd",
362 // 63
363 "\u05d1\u05d2\u05d3 \u05d4\u05d5\u05d6\u05d7 \u05d8\u05d9\u05da \u05db\u05dc\u05dd",
364 // 64
365 "\u05d1\u05d2\u05d3 defg ._- =\hij \u05db\u05dc\u05dd",
366 // 65
367 "\u05d1\u05d2\u05d3 defg ._- =\u005c\u05d8\u05d9\u05da \u05db\u05dc\u05dd",
368 // 66
369 "\u05d1\u05d2\u05d3 \u05d4\u05d5\u05d6\u05d7 ._- =\hij \u05db\u05dc\u05dd",
370 // 67
371 "\u05d1\u05d2\u05d3 \u05d4\u05d5\u05d6\u05d7 ._- =\u005c\u05d8\u05d9\u05da \u05db\u05dc\u05dd",
372 // 68
373 "\u05d1\u05d2\u05d3 defg ._- =\hij \u05db\u05dc\u05dd",
374 // 69
375 "\u05d1\u05d2\u05d3 defg ._- =\u005c\u05d8\u05d9\u05da \u05db\u05dc\u05dd",
376 // 70
377 "\u05d1\u05d2\u05d3 \u05d4\u05d5\u05d6\u05d7 ._- =\hij \u05db\u05dc\u05dd",
378 // 71
379 "\u05d1\u05d2\u05d3 \u05d4\u05d5\u05d6\u05d7 ._- =\u005c\u05d8\u05d9\u05da \u05db\u05dc\u05dd",
380 // 72
381 " \u05d1\u05d2\u05d3 def \u05d7\u05d8\u05d9",
382 // 73
383 ".- \u05d1\u05d2\u05d3 def \u05d7\u05d8\u05d9",
384 // 74
385 "12 \u05d1\u05d2\u05d3 def \u05d7\u05d8\u05d9",
386 // 75
387 "1. \u05d1\u05d2\u05d3 def \u05d7\u05d8\u05d9",
388 // 76
389 "1) \u05d1\u05d2\u05d3 def \u05d7\u05d8\u05d9",
390 // 77
391 ".3 \u05d1\u05d2\u05d3 def \u05d7\u05d8\u05d9"
392 ];
393 var uniriout = [
394 // 0
395 "\u05da\u05d9\u05d8\u05d7\u0020\u05d6\u05d5\u05d4\u0020\u05d3\u05d2\u05d1",
396 // 1
397 "\u05dc\u05db\u05da\u05d9 \u05d8\u05d7\u05d6 defg hij klmn \u05d3\u05d2\u05d1",
398 // 2
399 "\u05d6\u05d5\u05d4 012- 401+ %340 $234 #123 \u05d3\u05d2\u05d1",
400 // 3
401 "\u05d6\u05d5\u05d4 -012 +401 340% 234$ 123# \u05d3\u05d2\u05d1",
402 // 4
403 "\u05d6\u05d5\u05d4 123#234$340%401+012-024 \u05d3\u05d2\u05d1",
404 // 5
405 "-123 \u05d3\u05d2\u05d1",
406 // 6
407 "?34 = 14 + 20 \u05d6\u05d9",
408 // 7
409 ".123 \u05d3\u05d2\u05d1",
410 // 8
411 "\u05d6\u05d5\u05d4 12,340,123.40:13:24/30/41 \u05d3\u05d2\u05d1",
412 // 9
413 "\u05d6\u05d5\u05d4 12,340.13$- \u05d3\u05d2\u05d1",
414 // 10
415 "?ok ,4.0=4.4-0.4 :\u05dd\u05d9\u05d1\u05dc\u05d3\u0020\u05d9",
416 // 11
417 "\u05d6\u05d5\u05d4 401/ 340: 234. 123, \u05d3\u05d2\u05d1",
418 // 12
419 "\u05d6\u05d5\u05d4 /401 :340 .234 ,123 \u05d3\u05d2\u05d1",
420 // 13
421 "\u05d6\u05d5\u05d4 40..123 \u05d3\u05d2\u05d1",
422 // 14
423 "\u05d6\u05d5\u05d4 40,.123 \u05d3\u05d2\u05d1",
424 // 15
425 "\u05d6\u05d5\u05d4 40./123 \u05d3\u05d2\u05d1",
426 // 16
427 "\u05d6\u05d5\u05d4 123$$--- \u05d3\u05d2\u05d1",
428 // 17
429 "\u05d6\u05d5\u05d4 123#$%-+ \u05d3\u05d2\u05d1",
430 // 18
431 "\u05d6\u05d5\u05d4 130++-012--+123###234$%340%%%401 \u05d3\u05d2\u05d1",
432 // 19
433 "\u05d6\u05d5\u05d4 ~{|}`_^[\\]@?<=>;:/.-,+*()'&%$#\"! \u05d3\u05d2\u05d1",
434 // 20
435 "def ~{|}`_^[\\]@?<=>;:/.-,+*()'&%$#\"! \u05d3\u05d2\u05d1",
436 // 21
437 "\\/ \u05d6\u05d5\u05d4 \u05d3\u05d2\u05d1 =-.",
438 // 22
439 "\\/ def \u05d3\u05d2\u05d1 =-.",
440 // 23
441 "123 \u05d3\u05d2\u05d1",
442 // 24
443 "401 123 \u05d3\u05d2\u05d1",
444 // 25
445 "\u05d9\u05d8\u05d7 123 \u05d3\u05d2\u05d1",
446 // 26
447 "\u05d9\u05d8\u05d7 401 123 \u05d3\u05d2\u05d1",
448 // 27
449 "ghi 123 \u05d3\u05d2\u05d1",
450 // 28
451 "ghi 401 123 \u05d3\u05d2\u05d1",
452 // 29
453 "0123\u05d3\u05d2\u05d1",
454 // 30
455 "401 0123\u05d3\u05d2\u05d1",
456 // 31
457 "\u05d9\u05d8\u05d701234\u05d3\u05d2\u05d1",
458 // 32
459 "\u05d9\u05d8\u05d7401 0123\u05d3\u05d2\u05d1",
460 // 33
461 "01234ghi\u05d3\u05d2\u05d1",
462 // 34
463 "401ghi 0123\u05d3\u05d2\u05d1",
464 // 35
465 "def 123 \u05d3\u05d2\u05d1",
466 // 36
467 "def 123 401 \u05d3\u05d2\u05d1",
468 // 37
469 "\u05d9\u05d8\u05d7 def 123 \u05d3\u05d2\u05d1",
470 // 38
471 "\u05d9\u05d8\u05d7 def 123 401 \u05d3\u05d2\u05d1",
472 // 39
473 "def 123 ghi \u05d3\u05d2\u05d1",
474 // 40
475 "def 123 401 ghi \u05d3\u05d2\u05d1",
476 // 41
477 "def123 \u05d3\u05d2\u05d1",
478 // 42
479 "def0123 401 \u05d3\u05d2\u05d1",
480 // 43
481 "\u05d9\u05d8\u05d7def01234 \u05d3\u05d2\u05d1",
482 // 44
483 "\u05d9\u05d8\u05d7def0123 401 \u05d3\u05d2\u05d1",
484 // 45
485 "def01234ghi \u05d3\u05d2\u05d1",
486 // 46
487 "def0123 401ghi \u05d3\u05d2\u05d1",
488 // 47
489 "\u05d6\u05d5\u05d4 \u05d3\u05d2\u05d1 401 123",
490 // 48
491 "\u05d9\u05d8\u05d7(\u05d6\u05d5\u05d4)\u05d3\u05d2\u05d1",
492 // 49
493 "ghi(\u05d6\u05d5\u05d4)\u05d3\u05d2\u05d1",
494 // 50
495 "\u05d9\u05d8\u05d7(def)\u05d3\u05d2\u05d1",
496 // 51
497 "def)ghi)\u05d3\u05d2\u05d1",
498 // 52
499 "\u05d4\u05d3\u05d2 <\u05d1\u05dd> {\u05dc\u05db\u05da} [\u05d9\u05d8\u05d7] (\u05d6\u05d5\u05d4) \u05d3\u05d2\u05d1",
500 // 53
501 "\u05d7\u05d6\u05b8\u05d5\u05d4\u05bb\u05d3\u05d2\u05d1",
502 // 54
503 "\u05d7\u05d6\u05b8\u05d5\u0064\u05bb\u05d3\u05d2\u05d1",
504 // 55
505 "\u05d5\u05d4\u05bb",
506 // 56
507 "\u05dd\u05dc\u05db hij defg \u05d3\u05d2\u05d1",
508 // 57
509 "\u05dd\u05dc\u05db \u05da\u05d9\u05d8 defg \u05d3\u05d2\u05d1",
510 // 58
511 "\u05dd\u05dc\u05db hij \u05d7\u05d6\u05d5\u05d4 \u05d3\u05d2\u05d1",
512 // 59
513 "\u05dd\u05dc\u05db \u05da\u05d9\u05d8 \u05d7\u05d6\u05d5\u05d4 \u05d3\u05d2\u05d1",
514 // 60
515 "\u05dd\u05dc\u05db hij defg \u05d3\u05d2\u05d1",
516 // 61
517 "\u05dd\u05dc\u05db \u05da\u05d9\u05d8 defg \u05d3\u05d2\u05d1",
518 // 62
519 "\u05dd\u05dc\u05db hij \u05d7\u05d6\u05d5\u05d4 \u05d3\u05d2\u05d1",
520 // 63
521 "\u05dd\u05dc\u05db \u05da\u05d9\u05d8 \u05d7\u05d6\u05d5\u05d4 \u05d3\u05d2\u05d1",
522 // 64
523 "\u05dd\u05dc\u05db =\hij defg ._- \u05d3\u05d2\u05d1",
524 // 65
525 "\u05dd\u05dc\u05db \u05da\u05d9\u05d8\u005c= -_. defg \u05d3\u05d2\u05d1",
526 // 66
527 "\u05dd\u05dc\u05db hij\= -_. \u05d7\u05d6\u05d5\u05d4 \u05d3\u05d2\u05d1",
528 // 67
529 "\u05dd\u05dc\u05db \u05da\u05d9\u05d8\u005c= -_. \u05d7\u05d6\u05d5\u05d4 \u05d3\u05d2\u05d1",
530 // 68
531 "\u05dd\u05dc\u05db =\hij defg ._- \u05d3\u05d2\u05d1",
532 // 69
533 "\u05dd\u05dc\u05db \u05da\u05d9\u05d8\u005c= -_. defg \u05d3\u05d2\u05d1",
534 // 70
535 "\u05dd\u05dc\u05db hij\= -_. \u05d7\u05d6\u05d5\u05d4 \u05d3\u05d2\u05d1",
536 // 71
537 "\u05dd\u05dc\u05db \u05da\u05d9\u05d8\u005c= -_. \u05d7\u05d6\u05d5\u05d4 \u05d3\u05d2\u05d1",
538 // 72
539 "\u05d9\u05d8\u05d7 def \u05d3\u05d2\u05d1 ",
540 // 73
541 "\u05d9\u05d8\u05d7 def \u05d3\u05d2\u05d1 -.",
542 // 74
543 "\u05d9\u05d8\u05d7 def \u05d3\u05d2\u05d1 12",
544 // 75
545 "\u05d9\u05d8\u05d7 def \u05d3\u05d2\u05d1 .1",
546 // 76
547 "\u05d9\u05d8\u05d7 def \u05d3\u05d2\u05d1 (1",
548 // 77
549 "\u05d9\u05d8\u05d7 def \u05d3\u05d2\u05d1 3."
550 ];
551 var unilicrs = [
552 // 0
553 "jihg fed cba",
554 // 1
555 "utsr qpo \u05dd\u05dc\u05db\u05da\u0020\u05da\u05d9\u05d8\u0020\u05d7\u05d6\u05d5\u05d4 cba",
556 // 2
557 "fed ~}|{`_^]\[@?>=<;:/.-,+*)('&%$#\"! cba",
558 // 3
559 "\u05d6\u05d5\u05d4 ~}|{`_^]\[@?>=<;:/.-,+*)('&%$#\"! cba",
560 // 4
561 "\\/ fed cba =-.",
562 // 5
563 "\\/ \u05d6\u05d5\u05d4 cba =-.",
564 // 6
565 "321 cba",
566 // 7
567 "104 321 cba",
568 // 8
569 "ihg 321 cba",
570 // 9
571 "ihg 104 321 cba",
572 // 10
573 "\u05d9\u05d8\u05d7 321 cba",
574 // 11
575 "\u05d9\u05d8\u05d7 104 321 cba",
576 // 12
577 "3210cba",
578 // 13
579 "104 3210cba",
580 // 14
581 "ihg3210cba",
582 // 15
583 "ihg104 3210cba",
584 // 16
585 "\u05d9\u05d8\u05d73210cba",
586 // 17
587 "\u05d9\u05d8\u05d7104 3210cba",
588 // 18
589 "321 \u05d6\u05d5\u05d4 cba",
590 // 19
591 "104 321 \u05d6\u05d5\u05d4 cba",
592 // 20
593 "ihg 321 \u05d6\u05d5\u05d4 cba",
594 // 21
595 "ihg 104 321 \u05d6\u05d5\u05d4 cba",
596 // 22
597 "\u05d9\u05d8\u05d7 321 \u05d6\u05d5\u05d4 cba",
598 // 23
599 "\u05d9\u05d8\u05d7 104 321 \u05d6\u05d5\u05d4 cba",
600 // 24
601 "3210\u05d6\u05d5\u05d4 cba",
602 // 25
603 "104 3210\u05d6\u05d5\u05d4 cba",
604 // 26
605 "ihg43210\u05d6\u05d5\u05d4 cba",
606 // 27
607 "ihg104 3210\u05d6\u05d5\u05d4 cba",
608 // 28
609 "\u05d9\u05d8\u05d743210\u05d6\u05d5\u05d4 cba",
610 // 29
611 "\u05d9\u05d8\u05d7104 3210\u05d6\u05d5\u05d4 cba",
612 // 30
613 "fed cba 104 321",
614 // 31
615 "\u05d9\u05d8\u05d7)\u05d6\u05d5\u05d4(cba",
616 // 32
617 "ihg)\u05d6\u05d5\u05d4(cba",
618 // 33
619 "\u05d9\u05d8\u05d7)fed(cba",
620 // 34
621 "ihg)fed(cba",
622 // 35
623 "gf\u05b8ed\u05bbcba",
624 // 36
625 "gf\u05b8\u05d5\u05d4\u05bbcba",
626 // 37
627 "mlk \u05da\u05d9\u05d8 \u05d7\u05d6\u05d5\u05d4 cba",
628 // 38
629 "mlk jih \u05d7\u05d6\u05d5\u05d4 cba",
630 // 39
631 "mlk \u05da\u05d9\u05d8 gfed cba",
632 // 40
633 "mlk jih gfed cba",
634 // 41
635 "mlk \u05da\u05d9\u05d8 \u05d7\u05d6\u05d5\u05d4 cba",
636 // 42
637 "mlk jih \u05d7\u05d6\u05d5\u05d4 cba",
638 // 43
639 "mlk \u05da\u05d9\u05d8 gfed cba",
640 // 44
641 "mlk jih gfed cba",
642 // 45
643 "mlk \u05da\u05d9\u05d8\u005c= -_. \u05d7\u05d6\u05d5\u05d4 cba",
644 // 46
645 "mlk jih\= -_. \u05d7\u05d6\u05d5\u05d4 cba",
646 // 47
647 "mlk \u05da\u05d9\u05d8\u005c= -_. gfed cba",
648 // 48
649 "mlk jih\= -_. gfed cba",
650 // 49
651 "mlk \u05da\u05d9\u05d8\u005c= -_. \u05d7\u05d6\u05d5\u05d4 cba",
652 // 50
653 "mlk jih\= -_. \u05d7\u05d6\u05d5\u05d4 cba",
654 // 51
655 "mlk \u05da\u05d9\u05d8\u005c= -_. gfed cba",
656 // 52
657 "mlk jih\= -_. gfed cba",
658 // 53
659 "ihg \u05d6\u05d5\u05d4 cba ",
660 // 54
661 "ihg \u05d6\u05d5\u05d4 cba -.",
662 // 55
663 "ihg \u05d6\u05d5\u05d4 cba 21",
664 // 56
665 "/* 21 = < $1043 % $210 */"
666 ];
667 var allcases = [
668 // 0
669 "*** .-=",
670 // 1
671 "=-. ***",
672 // 2
673 "=-. ABC \u05d0\u05d1\u05d2",
674 // 3
675 "ABC DEF \u05d0\u05d1\u05d2",
676 // 4
677 "ABC \u05d0\u05d1\u05d2 DEF",
678 // 5
679 "\u05d0(\u05d1)\u05d2 ABC \u05d3\u05d4\u05d5",
680 // 6
681 "\u05d0\u05d1\u05d2 A(B)C \u05d3\u05d4\u05d5",
682 // 7
683 "\u05d0\u05d1\u05d2 ABC DEF",
684 // 8
685 "\u05d0\u05d1\u05d2 ABC \u05d3\u05d4\u05d5",
686 // 9
687 "\u05d1\u05d2\u05d3 #123 $234 %340 +401 -012 \u05d4\u05d5\u05d6",
688 // 10
689 "\u05d0\u05d1\u05d2 ABC .-=",
690 // 11
691 "\u05d0\u05d1\u05d2 ABC \u05d3(\u05d4)\u05d5",
692 // 12
693 "ABC 123 \u05d0\u05d1\u05d2\u05d3",
694 // 13
695 "\u05d0\u05d1\u05d2\u05d3 123 DEF"
696 ];
697 var allinvrs = [
698 // 0
699 "=-. ***",
700 // 1
701 "*** .-=",
702 // 2
703 "\u05d2\u05d1\u05d0 CBA .-=",
704 // 3
705 "\u05d2\u05d1\u05d0 FED CBA",
706 // 4
707 "FED \u05d2\u05d1\u05d0 CBA",
708 // 5
709 "\u05d5\u05d4\u05d3 CBA \u05d2)\u05d1(\u05d0",
710 // 6
711 "\u05d5\u05d4\u05d3 C)B(A \u05d2\u05d1\u05d0",
712 // 7
713 "FED CBA \u05d2\u05d1\u05d0",
714 // 8
715 "\u05d5\u05d4\u05d3 CBA \u05d2\u05d1\u05d0",
716 // 9
717 "\u05d6\u05d5\u05d4 210- 104+ 043% 432$ 321# \u05d3\u05d2\u05d1",
718 // 10
719 "=-. CBA \u05d2\u05d1\u05d0",
720 // 11
721 "\u05d5)\u05d4(\u05d3 CBA \u05d2\u05d1\u05d0",
722 // 12
723 "\u05d3\u05d2\u05d1\u05d0 321 CBA",
724 // 13
725 "FED 321 \u05d3\u05d2\u05d1\u05d0"
726 ];
727 var il2vlmdl = [
728 // 0
729 "*** .-=",
730 // 1
731 "=-. ***",
732 // 2
733 "=-. ABC \u05d2\u05d1\u05d0",
734 // 3
735 "ABC DEF \u05d2\u05d1\u05d0",
736 // 4
737 "ABC \u05d2\u05d1\u05d0 DEF",
738 // 5
739 "\u05d2(\u05d1)\u05d0 ABC \u05d5\u05d4\u05d3",
740 // 6
741 "\u05d2\u05d1\u05d0 A(B)C \u05d5\u05d4\u05d3",
742 // 7
743 "\u05d2\u05d1\u05d0 ABC DEF",
744 // 8
745 "\u05d2\u05d1\u05d0 ABC \u05d5\u05d4\u05d3",
746 // 9
747 "\u05d6\u05d5\u05d4 012- 401+ %340 $234 #123 \u05d3\u05d2\u05d1",
748 // 10
749 "\u05d2\u05d1\u05d0 ABC .-=",
750 // 11
751 "\u05d2\u05d1\u05d0 ABC \u05d5(\u05d4)\u05d3",
752 // 12
753 "ABC 123 \u05d3\u05d2\u05d1\u05d0",
754 // 13
755 "123 \u05d3\u05d2\u05d1\u05d0 DEF"
756 ];
757 var ir2vlmdl = [
758 // 0
759 "=-. ***",
760 // 1
761 "*** .-=",
762 // 2
763 "\u05d2\u05d1\u05d0 ABC .-=",
764 // 3
765 "\u05d2\u05d1\u05d0 ABC DEF",
766 // 4
767 "DEF \u05d2\u05d1\u05d0 ABC",
768 // 5
769 "\u05d5\u05d4\u05d3 ABC \u05d2(\u05d1)\u05d0",
770 // 6
771 "\u05d5\u05d4\u05d3 A(B)C \u05d2\u05d1\u05d0",
772 // 7
773 "ABC DEF \u05d2\u05d1\u05d0",
774 // 8
775 "\u05d5\u05d4\u05d3 ABC \u05d2\u05d1\u05d0",
776 // 9
777 "\u05d6\u05d5\u05d4 012- 401+ %340 $234 #123 \u05d3\u05d2\u05d1",
778 // 10
779 "=-. ABC \u05d2\u05d1\u05d0",
780 // 11
781 "\u05d5(\u05d4)\u05d3 ABC \u05d2\u05d1\u05d0",
782 // 12
783 "\u05d3\u05d2\u05d1\u05d0 ABC 123",
784 // 13
785 "DEF 123 \u05d3\u05d2\u05d1\u05d0"
786 ];
787 var il2vrmdl = [
788 // 0
789 "=-. ***",
790 // 1
791 "*** .-=",
792 // 2
793 "\u05d0\u05d1\u05d2 CBA .-=",
794 // 3
795 "\u05d0\u05d1\u05d2 FED CBA",
796 // 4
797 "FED \u05d0\u05d1\u05d2 CBA",
798 // 5
799 "\u05d3\u05d4\u05d5 CBA \u05d0)\u05d1(\u05d2",
800 // 6
801 "\u05d3\u05d4\u05d5 C)B(A \u05d0\u05d1\u05d2",
802 // 7
803 "FED CBA \u05d0\u05d1\u05d2",
804 // 8
805 "\u05d3\u05d4\u05d5 CBA \u05d0\u05d1\u05d2",
806 // 9
807 "\u05d1\u05d2\u05d3 321# 432$ 043% +104 -210 \u05d4\u05d5\u05d6",
808 // 10
809 "=-. CBA \u05d0\u05d1\u05d2",
810 // 11
811 "\u05d3)\u05d4(\u05d5 CBA \u05d0\u05d1\u05d2",
812 // 12
813 "\u05d0\u05d1\u05d2\u05d3 321 CBA",
814 // 13
815 "FED \u05d0\u05d1\u05d2\u05d3 321"
816 ];
817 var ir2vrmdl = [
818 // 0
819 "*** .-=",
820 // 1
821 "=-. ***",
822 // 2
823 "=-. CBA \u05d0\u05d1\u05d2",
824 // 3
825 "FED CBA \u05d0\u05d1\u05d2",
826 // 4
827 "CBA \u05d0\u05d1\u05d2 FED",
828 // 5
829 "\u05d0)\u05d1(\u05d2 CBA \u05d3\u05d4\u05d5",
830 // 6
831 "\u05d0\u05d1\u05d2 C)B(A \u05d3\u05d4\u05d5",
832 // 7
833 "\u05d0\u05d1\u05d2 FED CBA",
834 // 8
835 "\u05d0\u05d1\u05d2 CBA \u05d3\u05d4\u05d5",
836 // 9
837 "\u05d1\u05d2\u05d3 321# 432$ 043% +104 -210 \u05d4\u05d5\u05d6",
838 // 10
839 "\u05d0\u05d1\u05d2 CBA .-=",
840 // 11
841 "\u05d0\u05d1\u05d2 CBA \u05d3)\u05d4(\u05d5",
842 // 12
843 "321 CBA \u05d0\u05d1\u05d2\u05d3",
844 // 13
845 "\u05d0\u05d1\u05d2\u05d3 321 FED"
846 ];
847 var vr2ilmdl = [
848 // 0
849 "=-. ***",
850 // 1
851 "*** .-=",
852 // 2
853 "\u05d0\u05d1\u05d2 CBA .-=",
854 // 3
855 "\u05d0\u05d1\u05d2 FED CBA",
856 // 4
857 "FED \u05d0\u05d1\u05d2 CBA",
858 // 5
859 "\u05d3\u05d4\u05d5 CBA \u05d0)\u05d1(\u05d2",
860 // 6
861 "\u05d3\u05d4\u05d5 C)B(A \u05d0\u05d1\u05d2",
862 // 7
863 "FED CBA \u05d0\u05d1\u05d2",
864 // 8
865 "\u05d3\u05d4\u05d5 CBA \u05d0\u05d1\u05d2",
866 // 9
867 "\u05d1\u05d2\u05d3 321# 432$ 043% +104 -210 \u05d4\u05d5\u05d6",
868 // 10
869 "=-. CBA \u05d0\u05d1\u05d2",
870 // 11
871 "\u05d3)\u05d4(\u05d5 CBA \u05d0\u05d1\u05d2",
872 // 12
873 "321 \u05d0\u05d1\u05d2\u05d3 CBA",
874 // 13
875 "FED 321 \u05d0\u05d1\u05d2\u05d3"
876 ];
877 var vl2irmdl = [
878 // 0
879 "=-. ***",
880 // 1
881 "*** .-=",
882 // 2
883 "\u05d2\u05d1\u05d0 ABC .-=",
884 // 3
885 "\u05d2\u05d1\u05d0 ABC DEF",
886 // 4
887 "DEF \u05d2\u05d1\u05d0 ABC",
888 // 5
889 "\u05d5\u05d4\u05d3 ABC \u05d2(\u05d1)\u05d0",
890 // 6
891 "\u05d5\u05d4\u05d3 A(B)C \u05d2\u05d1\u05d0",
892 // 7
893 "ABC DEF \u05d2\u05d1\u05d0",
894 // 8
895 "\u05d5\u05d4\u05d3 ABC \u05d2\u05d1\u05d0",
896 // 9
897 "\u05d6\u05d5\u05d4 012- 401+ %340 $234 #123 \u05d3\u05d2\u05d1",
898 // 10
899 "=-. ABC \u05d2\u05d1\u05d0",
900 // 11
901 "\u05d5(\u05d4)\u05d3 ABC \u05d2\u05d1\u05d0",
902 // 12
903 "\u05d3\u05d2\u05d1\u05d0 123 ABC",
904 // 13
905 "123 DEF \u05d3\u05d2\u05d1\u05d0"
906 ];
907 var bdEngine = new BidiEngine();
908
909 doh.register("BidiEngine Transformations Test",
910 [
911 {
912 // testmati - case 37
913 name:'1. typeoftext=implicit:visual, orientation=ltr, swapping=yes:no',
914
915 runTest:function(t) {
916 dojo.forEach(unilisrc, function(el, i) {
917 t.is(uniliout[i], bdEngine.bidiTransform(el, 'ILYNN', 'VLNNN'),"bidiTransform: string num: " + i + " in: unilisrc out: uniliout");
918 },this);
919 }
920 },
921 {
922 // testmati - case 38
923 name:'2. typeoftext=implicit:visual, orientation=rtl:ltr, swapping=yes:no',
924
925 runTest:function(t) {
926 dojo.forEach(unirisrc, function(el, i) {
927 t.is(uniriout[i], bdEngine.bidiTransform(el, 'IRYNN', 'VLNNN'),"bidiTransform: string num: " + i + " in: unirisrc out: uniriout");
928 },this);
929 }
930 },
931 {
932 // testmati - case 41
933 name:'3. typeoftext=imsplicit:imsplicit, orientation=ltr:contextual, context=ltr, swapping=yes',
934
935 runTest:function(t) {
936 dojo.forEach(unilisrc, function(el, i) {
937 t.is(unilisrc[i], bdEngine.bidiTransform(el, 'ILYNN', 'ILYNN'),"bidiTransform: string num: " + i + " in: unilisrc out: unilisrc");
938 },this);
939 }
940 },
941 {
942 // testmati - case 42
943 name:'4. typeoftext=visual:visual, orientation=ltr:ltr, swapping=no:no',
944
945 runTest:function(t) {
946 dojo.forEach(unilisrc, function(el, i) {
947 t.is(unilisrc[i], bdEngine.bidiTransform(el, 'VLYNN', 'VLYNN'),"bidiTransform: string num: " + i + " in: unilisrc out: unilisrc");
948 },this);
949 }
950 },
951 {
952 // testmati - case 43
953 name:'5. typeoftext=visual:visual, orientation=ltr:rtl, swapping=no:no',
954
955 runTest:function(t) {
956 dojo.forEach(unilisrc, function(el, i) {
957 t.is(unilicrs[i], bdEngine.bidiTransform(el, 'VLYNN', 'VRYNN'),"bidiTransform: string num: " + i + " in: unilisrc out: unilicrs");
958 },this);
959 }
960 },
961 {
962 // testmati - case 44
963 name:'6. typeoftext=visual:visual, orientation=rtl:ltr, swapping=no:no',
964
965 runTest:function(t) {
966 dojo.forEach(unilisrc, function(el, i) {
967 t.is(unilicrs[i], bdEngine.bidiTransform(el, 'VRNNN', 'VLYNN'),"bidiTransform: string num: " + i + " in: unilisrc out: unilicrs");
968 },this);
969 }
970 },
971 {
972 // testmati - case 1
973 name:'7. typeoftext=visual:visual, orientation=ltr:ltr, swapping=no:no',
974
975 runTest:function(t) {
976 dojo.forEach(allcases, function(el, i) {
977 t.is(allcases[i], bdEngine.bidiTransform(el, 'VLNNN', 'VLNNN'),"bidiTransform: string num: " + i + " in: allcases out: allcases");
978 },this);
979 }
980 },
981 {
982 // testmati - case 2
983 name:'8. typeoftext=visual:visual, orientation=rtl:ltr, swapping=no:no',
984
985 runTest:function(t) {
986 dojo.forEach(allcases, function(el, i) {
987 t.is(allinvrs[i], bdEngine.bidiTransform(el, 'VRNNN', 'VLNNN'),"bidiTransform: string num: " + i + " in: allcases out: allinvrs");
988 },this);
989 }
990 },
991 {
992 // testmati - case 3
993 name:'9. typeoftext=visual:visual, orientation=ltr:rtl, swapping=no:no',
994
995 runTest:function(t) {
996 dojo.forEach(allcases, function(el, i) {
997 t.is(allinvrs[i], bdEngine.bidiTransform(el, 'VLNNN', 'VRNNN'),"bidiTransform: string num: " + i + " in: allcases out: allinvrs");
998 },this);
999 }
1000 },
1001 {
1002 // testmati - case 4
1003 name:'10. typeoftext=visual:visual, orientation=rtl:rtl, swapping=no:no',
1004
1005 runTest:function(t) {
1006 dojo.forEach(allcases, function(el, i) {
1007 t.is(allcases[i], bdEngine.bidiTransform(el, 'VRNNN', 'VRNNN'), "bidiTransform: string num: " + i + " in: allcases out: allcases");
1008 },this);
1009 }
1010 },
1011 {
1012 // testmati - case 5
1013 name:'11. typeoftext=implicit:visual, orientation=ltr:ltr, swapping=yes:no',
1014
1015 runTest:function(t) {
1016 dojo.forEach(allcases, function(el, i) {
1017 t.is(il2vlmdl[i], bdEngine.bidiTransform(el, 'ILYNN', 'VLNNN'), "bidiTransform: string num: " + i + " in: allcases out: il2vlmdl");
1018 },this);
1019 }
1020 },
1021 {
1022 // testmati - case 6
1023 name:'12. typeoftext=implicit:visual, orientation=rtl:ltr, swapping=yes:no',
1024
1025 runTest:function(t) {
1026 dojo.forEach(allcases, function(el, i) {
1027 t.is(ir2vlmdl[i], bdEngine.bidiTransform(el, 'IRYNN', 'VLNNN'), "bidiTransform: string num: " + i + " in: allcases out: ir2vlmdl");
1028 },this);
1029 }
1030 },
1031 {
1032 // testmati - case 7
1033 name:'13. typeoftext=implicit:visual, orientation=ltr:rtl, swapping=yes:no',
1034
1035 runTest:function(t) {
1036 dojo.forEach(allcases, function(el, i) {
1037 t.is(il2vrmdl[i], bdEngine.bidiTransform(el, 'ILYNN', 'VRNNN'), "bidiTransform: string num: " + i + " in: allcases out: il2vrmdl");
1038 },this);
1039 }
1040 },
1041 {
1042 // testmati - case 8
1043 name:'14. typeoftext=implicit:visual, orientation=rtl:rtl, swapping=yes:no',
1044
1045 runTest:function(t) {
1046 dojo.forEach(allcases, function(el, i) {
1047 t.is(ir2vrmdl[i], bdEngine.bidiTransform(el, 'IRYNN', 'VRNNN'), "bidiTransform: string num: " + i + " in: allcases out: ir2vrmdl");
1048 },this);
1049 }
1050 },
1051 {
1052 // testmati - case 9
1053 name:'15. typeoftext=visual:implicit, orientation=ltr:ltr, swapping=no:yes',
1054
1055 runTest:function(t) {
1056 dojo.forEach(allcases, function(el, i) {
1057 t.is(il2vlmdl[i], bdEngine.bidiTransform(el, 'VLNNN', 'ILYNN'), "bidiTransform: string num: " + i + " in: allcases out: il2vlmdl");
1058 },this);
1059 }
1060 },
1061 {
1062 // testmati - case 10
1063 name:'16. typeoftext=visual:implicit, orientation=rtl:ltr, swapping=no:yes',
1064
1065 runTest:function(t) {
1066 dojo.forEach(allcases, function(el, i) {
1067 t.is(vr2ilmdl[i], bdEngine.bidiTransform(el, 'VRNNN', 'ILYNN'), "bidiTransform: string num: " + i + " in: allcases out: vr2ilmdl");
1068 },this);
1069 }
1070 },
1071 {
1072 // testmati - case 11
1073 name:'17. typeoftext=visual:implicit, orientation=ltr:rtl, swapping=no:yes',
1074
1075 runTest:function(t) {
1076 dojo.forEach(allcases, function(el, i) {
1077 t.is(vl2irmdl[i], bdEngine.bidiTransform(el, 'VLNNN', 'IRYNN'), "bidiTransform: string num: " + i + " in: allcases out: vl2irmdl");
1078 },this);
1079 }
1080 },
1081 {
1082 // testmati - case 12
1083 name:'18. typeoftext=visual:implicit, orientation=rtl:rtl, swapping=no:yes',
1084
1085 runTest:function(t) {
1086 dojo.forEach(allcases, function(el, i) {
1087 t.is(ir2vrmdl[i], bdEngine.bidiTransform(el, 'VRNNN', 'IRYNN'), "bidiTransform: string num: " + i + " in: allcases out: ir2vrmdl");
1088 },this);
1089 }
1090 },
1091 {
1092 // testmati - case 13
1093 name:'19. typeoftext=implicit:implicit, orientation=ltr:ltr, swapping=no:no',
1094
1095 runTest:function(t) {
1096 dojo.forEach(allcases, function(el, i) {
1097 t.is(allcases[i], bdEngine.bidiTransform(el, 'ILNNN', 'ILNNN'), "bidiTransform: string num: " + i + " in: allcases out: allcases");
1098 },this);
1099 }
1100 }
1101 ]);
1102 });