# We don't need to run these tests in integrated mode as well. !! options version=2 !! end !!article Bar !!text abcd !!endarticle !! article Template:1x !! text {{{1}}} !! endarticle # We need the span in the wikilink so that the link text is # processed as a DOMFragment which then triggers the regression # we are testing in this file !!article Template:RegressionTest !!text [[Bar|bar]] !!endarticle # Regression test -- ensure that nested pipeline TSR information # doesn't leak onto the top-level pipeline during DSR computation. # We verify this indirectly via passing selser tests. !!test Regression Test: Ensure nested pipeline TSR doesn't impact top-level DSR values !!wikitext {{RegressionTest}} Bar !!html/parsoid

bar

Bar

!!end # As seen in T334957#9026561 !! test Ensure proper DSR offsets are computed !! options parsoid=wt2html,selser !! wikitext {| |- é ''x'' * {{1x| {{{!}} {{!}}- }} !! html/parsoid

é x

!! end # This is just a regression test to ensure code can handle tables with fosterable content # in DOM fragment position (Ex: image captions). This is an edge case and didn't feel it # belonged in media.txt which already has a number of tests with tables in captions. !! test Images with captions containing tables with fosterable content shouldn't crash Parsoid !! options parsoid=wt2html !! wikitext [[File:Foobar.jpg|thumb|50px| {| {{1x|foo}} |} ]] !! html/parsoid

foo

!! end !! test Unpacking fostered content !! options parsoid=wt2html !! wikitext [http://google.com hi
ho] !! html/parsoid

hi

ho
!! end !! test Pipe magic word in bailing wikilink !! options parsoid=wt2html !! wikitext {| | [[{{!}}]] [[{{!}}]] |} !! html/php
[[|]] [[|]]
!! html/parsoid
[[|]] [[|]]
!! end