r95322 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95321‎ | r95322 | r95323 >
Date:19:40, 23 August 2011
Author:wikinaut
Status:ok
Tags:
Comment:
added jquery.highlightText.js test cases for Russian Georgian Armenian Thai Arabic ru ka hy th ar
Modified paths:
  • /trunk/phase3/tests/qunit/suites/resources/jquery/jquery.highlightText.test.js (modified) (history)

Diff [purge]

Index: trunk/phase3/tests/qunit/suites/resources/jquery/jquery.highlightText.test.js
@@ -110,52 +110,112 @@
111111 expected: 'So good. To <span class="highlight">be</span> there'
112112 },
113113 {
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?',
115115 text: 'So good. xbß',
116116 highlight: 'xbß',
117117 expected: 'So good. <span class="highlight">xbß</span>'
118118 },
119119 {
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?',
121121 text: 'So good. xbß.',
122122 highlight: 'xbß.',
123123 expected: 'So good. <span class="highlight">xbß.</span>'
124124 },
125125 {
126 - desc: 'Test 020: Hebrew',
 126+ desc: 'Test 020: RTL he Hebrew',
127127 text: 'חסיד אומות העולם',
128128 highlight: 'חסיד אומות העולם',
129129 expected: '<span class="highlight">חסיד</span> <span class="highlight">אומות</span> <span class="highlight">העולם</span>'
130130 },
131131 {
132 - desc: 'Test 021: Hebrew',
 132+ desc: 'Test 021: RTL he Hebrew',
133133 text: 'חסיד אומות העולם',
134134 highlight: 'חסי',
135135 expected: '<span class="highlight">חסי</span>ד אומות העולם'
136136 },
137137 {
138 - desc: 'Test 022: Japanese',
 138+ desc: 'Test 022: ja Japanese',
139139 text: '諸国民の中の正義の人',
140140 highlight: '諸国民の中の正義の人',
141141 expected: '<span class="highlight">諸国民の中の正義の人</span>'
142142 },
143143 {
144 - desc: 'Test 023: Japanese',
 144+ desc: 'Test 023: ja Japanese',
145145 text: '諸国民の中の正義の人',
146146 highlight: '諸国',
147147 expected: '<span class="highlight">諸国</span>民の中の正義の人'
148148 },
149149 {
150 - desc: 'Test 024: French text and « french quotes » (guillemets)',
 150+ desc: 'Test 024: fr French text and « french quotes » (guillemets)',
151151 text: "« L'oiseau est sur l’île »",
152152 highlight: "« L'oiseau est sur l’île »",
153153 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>'
154154 },
155155 {
156 - desc: 'Test 025: French text and « french quotes » (guillemets)',
 156+ desc: 'Test 025: fr French text and « french quotes » (guillemets)',
157157 text: "« L'oiseau est sur l’île »",
158158 highlight: "« L'oise",
159159 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>ل إيردوس'
160220 }
161221 ];
162222 expect(cases.length);

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r95299jquery.highlightText.js : test cases for French addedwikinaut07:28, 23 August 2011

Status & tagging log