# 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 !! test SOL whitespace and newlines after lists should not be swallowed into ListTk compound token !! options parsoid=wt2html !! wikitext *a
b
!! html/parsoid


b
!! end # Edge case in p-wrapping handling IndentPreTk !! test Unbalanced i-tags shouldn't leak out of blockquote containing leading whitespace !! options parsoid=wt2html !! wikitext
foo ''bar
baz !! html/parsoid

foo bar

baz

!! end !! test Ensure ListHandler properly handles other compound tokens !! options parsoid=wt2html !! wikitext :{| | a |} !! html/parsoid
a
!! end !! test Ensure WikiLink caching handles embedded fragments properly !! options parsoid=wt2html !! wikitext 1. [[Foo|a]] 2. [[Foo|a]] 3. [[Foo|a]] 4. [[Foo|a]] 5. [[Foo|a]] !! html/parsoid

1. a 2. a 3. a 4. a 5. a

!! end # The integrity of empty-line-tk should not get compromised # because of QuoteHandler's onCompoundTk handling of compound tokens !! test QuoteHandler::onCompoundTk should not corrupt EmptyLineTk tokens !! options parsoid=wt2html !! wikitext
''a''b
[[Category:C]] !! html/parsoid
ab
!! end !! test Ensure source offsets are reset when reprocessing !! options parsoid=wt2wt !! wikitext | dir="{{#dir:hu}}" | [[mail:{{{1}}}|123]] !! html/parsoid -- unused in wt2wt -- !! end !! test T378906: Drop template-emitted leading/trailing newlines adjacent to
s produced by the same template !! wikitext {{1x|
foo
}}{{1x|
bar
}} {{1x|
foo
}}bar {{1x|
foo
}}{{1x|
bar
}} foo{{1x|
bar
}} !! html/parsoid
foo
bar
foo

bar

foo
bar

foo

bar
!! end !! test T378906: Migrate trailing category tags into preceding div !! wikitext {{1x|
foo
[[Category:Foo]] [[Category:Bar]] }}{{1x|
bar
}} !! html/parsoid
foo
bar
!! end !! test T407798: Strip newlines between category link tags in templates !! wikitext {{1x|something [[Category:Foo]] [[es:Foo]]}} !! html/php

something

!! html/parsoid

something

!! end !! test Migrate leading category into following div !! wikitext {{1x|
foo
}}{{1x|[[Category:Foo]]
bar
}} !! html/parsoid
foo
bar
!! end !! test Migrate leading empty extension into following div !! wikitext {{1x|
foo
}}{{1x|
bar
}} !! html/parsoid
foo
bar
!! end !! test T410826: named arguments to parser functions in "old-style" DOM !! options parsoid=html2wt !! html/parsoid

//en.wikipedia.org/w/index.php?title=User_talk:Cscott&action=edit&section=new

!! wikitext {{fullurl:User talk:cscott|action=edit§ion=new}} !! end