source: Dev/trunk/src/client/dojox/string/tests/BidiEngine/BidiEngineTest.js

Last change on this file was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

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