| 1 |
!! Version 2 |
| 2 |
# |
| 3 |
# This file will test DOM normalizer functionality |
| 4 |
|
| 5 |
# This is a regression test that indirectly tests the expectation |
| 6 |
# that the DOM normalizer leaves behind the right dom-diff tags |
| 7 |
# when it merges adjacent formatting tags. |
| 8 |
# Regression test for T320319 |
| 9 |
!! test |
| 10 |
DOMNormalizer: Merging of adjacent <i> tags shouldn't lead to lost content |
| 11 |
!! options |
| 12 |
parsoid={ |
| 13 |
"modes": ["selser"], |
| 14 |
"selser": "noauto", |
| 15 |
"changes": [ |
| 16 |
[ "p", "before", "<p>x</p>" ] |
| 17 |
] |
| 18 |
} |
| 19 |
!! wikitext |
| 20 |
[http://google.com ''y [[Foo]] ]'' z |
| 21 |
!! wikitext/edited |
| 22 |
x |
| 23 |
|
| 24 |
[http://google.com ''y [[Foo]] ]'' z'' |
| 25 |
!! end |