Index: trunk/phase3/tests/qunit/suites/resources/jquery/jquery.highlightText.test.js |
— | — | @@ -110,52 +110,112 @@ |
111 | 111 | expected: 'So good. To <span class="highlight">be</span> there' |
112 | 112 | }, |
113 | 113 | { |
114 | | - desc: 'Test 018: Highlighter broken on special character at the end?', |
| 114 | + desc: 'Test 018: en de Highlighter broken on special character at the end?', |
115 | 115 | text: 'So good. xbß', |
116 | 116 | highlight: 'xbß', |
117 | 117 | expected: 'So good. <span class="highlight">xbß</span>' |
118 | 118 | }, |
119 | 119 | { |
120 | | - desc: 'Test 019: Highlighter broken on special character at the end?', |
| 120 | + desc: 'Test 019: en de Highlighter broken on special character at the end?', |
121 | 121 | text: 'So good. xbß.', |
122 | 122 | highlight: 'xbß.', |
123 | 123 | expected: 'So good. <span class="highlight">xbß.</span>' |
124 | 124 | }, |
125 | 125 | { |
126 | | - desc: 'Test 020: Hebrew', |
| 126 | + desc: 'Test 020: RTL he Hebrew', |
127 | 127 | text: 'חסיד אומות העולם', |
128 | 128 | highlight: 'חסיד אומות העולם', |
129 | 129 | expected: '<span class="highlight">חסיד</span> <span class="highlight">אומות</span> <span class="highlight">העולם</span>' |
130 | 130 | }, |
131 | 131 | { |
132 | | - desc: 'Test 021: Hebrew', |
| 132 | + desc: 'Test 021: RTL he Hebrew', |
133 | 133 | text: 'חסיד אומות העולם', |
134 | 134 | highlight: 'חסי', |
135 | 135 | expected: '<span class="highlight">חסי</span>ד אומות העולם' |
136 | 136 | }, |
137 | 137 | { |
138 | | - desc: 'Test 022: Japanese', |
| 138 | + desc: 'Test 022: ja Japanese', |
139 | 139 | text: '諸国民の中の正義の人', |
140 | 140 | highlight: '諸国民の中の正義の人', |
141 | 141 | expected: '<span class="highlight">諸国民の中の正義の人</span>' |
142 | 142 | }, |
143 | 143 | { |
144 | | - desc: 'Test 023: Japanese', |
| 144 | + desc: 'Test 023: ja Japanese', |
145 | 145 | text: '諸国民の中の正義の人', |
146 | 146 | highlight: '諸国', |
147 | 147 | expected: '<span class="highlight">諸国</span>民の中の正義の人' |
148 | 148 | }, |
149 | 149 | { |
150 | | - desc: 'Test 024: French text and « french quotes » (guillemets)', |
| 150 | + desc: 'Test 024: fr French text and « french quotes » (guillemets)', |
151 | 151 | text: "« L'oiseau est sur l’île »", |
152 | 152 | highlight: "« L'oiseau est sur l’île »", |
153 | 153 | expected: '<span class="highlight">«</span> <span class="highlight">L\'oiseau</span> <span class="highlight">est</span> <span class="highlight">sur</span> <span class="highlight">l’île</span> <span class="highlight">»</span>' |
154 | 154 | }, |
155 | 155 | { |
156 | | - desc: 'Test 025: French text and « french quotes » (guillemets)', |
| 156 | + desc: 'Test 025: fr French text and « french quotes » (guillemets)', |
157 | 157 | text: "« L'oiseau est sur l’île »", |
158 | 158 | highlight: "« L'oise", |
159 | 159 | expected: '<span class="highlight">«</span> <span class="highlight">L\'oise</span>au est sur l’île »' |
| 160 | + }, |
| 161 | + { |
| 162 | + desc: 'Test 026: ru Russian', |
| 163 | + text: 'Праведники мира', |
| 164 | + highlight: 'Праведники мира', |
| 165 | + expected: '<span class="highlight">Праведники</span> <span class="highlight">мира</span>' |
| 166 | + }, |
| 167 | + { |
| 168 | + desc: 'Test 027: ru Russian', |
| 169 | + text: 'Праведники мира', |
| 170 | + highlight: 'Праве', |
| 171 | + expected: '<span class="highlight">Праве</span>дники мира' |
| 172 | + }, |
| 173 | + { |
| 174 | + desc: 'Test 028 ka Georgian', |
| 175 | + text: 'მთავარი გვერდი', |
| 176 | + highlight: 'მთავარი გვერდი', |
| 177 | + expected: '<span class="highlight">მთავარი</span> <span class="highlight">გვერდი</span>' |
| 178 | + }, |
| 179 | + { |
| 180 | + desc: 'Test 029 ka Georgian', |
| 181 | + text: 'მთავარი გვერდი', |
| 182 | + highlight: 'მთა', |
| 183 | + expected: '<span class="highlight">მთა</span>ვარი გვერდი' |
| 184 | + }, |
| 185 | + { |
| 186 | + desc: 'Test 030 hy Armenian', |
| 187 | + text: 'Նոնա Գափրինդաշվիլի', |
| 188 | + highlight: 'Նոնա Գափրինդաշվիլի', |
| 189 | + expected: '<span class="highlight">Նոնա</span> <span class="highlight">Գափրինդաշվիլի</span>' |
| 190 | + }, |
| 191 | + { |
| 192 | + desc: 'Test 031 hy Armenian', |
| 193 | + text: 'Նոնա Գափրինդաշվիլի', |
| 194 | + highlight: 'Նոն', |
| 195 | + expected: '<span class="highlight">Նոն</span>ա Գափրինդաշվիլի' |
| 196 | + }, |
| 197 | + { |
| 198 | + desc: 'Test 032: th Thai', |
| 199 | + text: 'พอล แอร์ดิช', |
| 200 | + highlight: 'พอล แอร์ดิช', |
| 201 | + expected: '<span class="highlight">พอล</span> <span class="highlight">แอร์ดิช</span>' |
| 202 | + }, |
| 203 | + { |
| 204 | + desc: 'Test 033: th Thai', |
| 205 | + text: 'พอล แอร์ดิช', |
| 206 | + highlight: 'พอ', |
| 207 | + expected: '<span class="highlight">พอ</span>ล แอร์ดิช' |
| 208 | + }, |
| 209 | + { |
| 210 | + desc: 'Test 034: RTL ar Arabic', |
| 211 | + text: 'بول إيردوس', |
| 212 | + highlight: 'بول إيردوس', |
| 213 | + expected: '<span class="highlight">بول</span> <span class="highlight">إيردوس</span>' |
| 214 | + }, |
| 215 | + { |
| 216 | + desc: 'Test 035: RTL ar Arabic', |
| 217 | + text: 'بول إيردوس', |
| 218 | + highlight: 'بو', |
| 219 | + expected: '<span class="highlight">بو</span>ل إيردوس' |
160 | 220 | } |
161 | 221 | ]; |
162 | 222 | expect(cases.length); |