|
235 | 235 | function testShouldRetainTheFormattingOfTextWithinAPreElement() { |
236 | 236 | var text = getVisibleTextByElementId("preformatted"); |
237 | 237 |
|
238 | | - assertEquals(" This section has a preformatted\n text block \n split in four lines\n ", text); |
| 238 | + assertEquals(" This section has a preformatted\n text block\n split in four lines\n ", text); |
239 | 239 | } |
240 | 240 |
|
241 | 241 | function testShouldRetainTheFormattingOfTextWithinAPreElementThatIsWithinARegularBlock() { |
242 | 242 | var text = getVisibleTextByElementId("div-with-pre"); |
243 | 243 |
|
244 | | - assertEquals("before pre\n This section has a preformatted\n text block \n split in four lines\n \nafter pre", text); |
| 244 | + assertEquals("before pre\n This section has a preformatted\n text block\n split in four lines\n \nafter pre", text); |
245 | 245 | } |
246 | 246 |
|
247 | 247 | function testGetVisibleTextShouldHandleCssContentReplacement() { |
|
264 | 264 | text = getVisibleTextByElementId("uppercased"); |
265 | 265 | assertEquals("HELLO, WORLD! BLA-BLA-BLA", text); |
266 | 266 |
|
| 267 | + text = getVisibleTextByElementId("capitalized_accented_character"); |
| 268 | + assertEquals("Fecha De Expiración", text); |
| 269 | + text = getVisibleTextByElementId("capitalized_enye"); |
| 270 | + assertEquals("Mañana", text); |
| 271 | + |
267 | 272 | text = getVisibleTextByElementId("capitalized-1"); |
268 | 273 | assertEquals("Äåìî", text); |
269 | 274 | text = getVisibleTextByElementId("capitalized-2"); |
|
423 | 428 | <a id="uppercased" style="text-transform: uppercase">hello, world! bla-bla-BLA</a><br/> |
424 | 429 | </div> |
425 | 430 |
|
| 431 | + <div> |
| 432 | + <a id="capitalized_accented_character" style="text-transform: capitalize">Fecha de expiración</a><br/> |
| 433 | + <a id="capitalized_enye" style="text-transform: capitalize">mañana</a><br/> |
| 434 | + </div> |
| 435 | + |
426 | 436 | <div> |
427 | 437 | <a lang="ru" id="capitalized-1" style="text-transform: capitalize">äåìî</a><br/> |
428 | 438 | <a id="capitalized-2" style="text-transform: capitalize">Manipulowanie przepływem</a><br/> |
|
0 commit comments