{ " in a link should hoist the link outside the link (T301293)": { "selser [[1,0],4,0]": "[[Foo|''xyz'']]\n\n1m2lppn", "selser [2,4,0]": "ld2a56\n\n[[Foo|''xyz'']]\n\n6h9131", "selser [[2,0],3,0]": "nc8qrb[[Foo|''xyz'']]", "selser [[[2],0],2,0]": "[[Foo|10bqz6j''xyz'']]\n\n10lq6vy\n", "selser [2,3,0]": "588i32\n\n[[Foo|''xyz'']]", "selser [2,0,0]": "166nxt2\n\n[[Foo|''xyz'']]", "selser [4,0,0]": "1bxnu7o\n", "selser [1,0,0]": "[[Foo|''xyz'']]\n", "selser [3,3,0]": "", "selser [3,4,0]": "jwpc9a", "selser [[1,0],3,0]": "[[Foo|''xyz'']]", "selser [1,4,0]": "[[Foo|''xyz'']]\n\ne6nlfi", "selser [3,0,0]": "\n", "selser [[3,0],4,0]": "\n\nb7dsqp", "selser [4,2,0]": "zygsjj\n\ncij924\n", "selser [2,2,0]": "1ddbvcj\n\n[[Foo|''xyz'']]\n\nx6skl7\n", "selser [[[2],0],0,0]": "[[Foo|1yvz53o''xyz'']]\n", "selser [[[[2]],0],0,0]": "[[Foo|''138os21xz'']]\n", "selser [1,2,0]": "[[Foo|''xyz'']]\n\n13m61ka\n", "selser [[1,0],0,0]": "[[Foo|''xyz'']]\n" }, "Blank ref followed by ref with content": { "selser [0,4,1,3,0]": "\n\n14bnq08\n\ncontent\n\n" }, "Broken wikitext making a ref as extended attribute and a duplicated fragment (with 2wt tests)": { "html2html": "

a

\n\n

\n\n

z

\n
    \n

    ", "html2wt": "''a''\n\n''\n\nz\n\n''", "selser [1,3]": "y
    \">a", "selser [2,4]": "12v64zm\n\ny
    \">a\n\n1l0xtce" }, "Bug 13073 regression check: wrapped ": { "html2wt": "\nfoo\n\n
    \n\n
    ", "selser [0,3,3]": "\nfoo\n", "selser [1,0,3]": "\nfoo\n\n", "selser [2,0,3]": "1n3of6i\n\n\nfoo\n\n", "selser [0,0,4]": "\nfoo\n\n\n193v7o9" }, "Check Cite handing of linefeed whitespace in reference names": { "wt2wt": "test linefeedtestLinefeedRef\n", "html2wt": "test linefeedtestLinefeedRef\n", "selser [[4,0],0,0]": "1euwgyttestLinefeedRef\n", "selser [1,3,0]": "test linefeedtestLinefeedRef", "selser [2,0,0]": "15lkr1g\n\ntest linefeedtestLinefeedRef\n", "selser [1,4,0]": "test linefeedtestLinefeedRef\n\n1hw2qoa", "selser [0,4,0]": "test linefeedtestLinefeedRef\n\nfint7y", "selser [[3,0],2,0]": "testLinefeedRef\n\n1881x1z\n", "selser [[3,0],0,0]": "testLinefeedRef\n", "selser [1,0,0]": "test linefeedtestLinefeedRef\n", "selser [0,3,0]": "test linefeedtestLinefeedRef", "selser [1,2,0]": "test linefeedtestLinefeedRef\n\n13030ir\n", "selser [2,3,0]": "w46ct0\n\ntest linefeedtestLinefeedRef", "selser [[2,0],2,0]": "piffj2test linefeedtestLinefeedRef\n\n2rj5xm\n", "selser [[2,0],0,0]": "pwq7btest linefeedtestLinefeedRef\n", "selser [[2,0],3,0]": "i6npostest linefeedtestLinefeedRef" }, "Counters should be cleared after processing named ": { "selser [2,0,0,4,[4,0],3,0]": "1m78266\n\nA foo\n\ng92zhb\n\n1sqtkvtbar\n\n" }, "Erroneous refs": { "wt2wt": "Zero\n\nAlso zero, but differently! (Normal ref)\n\n\n\n\n\n\n\n\n\n", "html2wt": "Zero\n\nAlso zero, but differently! (Normal ref)\n\n\n\n\n\n\n\n\n", "selser [0,0,4,2,4,0,0,3,0,0,0,0,0]": "Zero\n\nwie687\n\n1u7xv04\n\n1pm36tv\n\n\n\n\n\n\n\n", "selser [3,2,0,0,1,2,0,0,1,0,0,2,0]": "1tb8tca\n\nAlso zero, but differently! (Normal ref)\n\n\n\nl49cv6\n\n\n\n\n\nql4aqu\n\n", "selser [0,3,0,0,0,2,0,0,1,0,0,3,0]": "Zero\n\nAlso zero, but differently! (Normal ref)\n\n\n\n1if3p11\n\n\n\n\n\n", "selser [2,0,4,3,4,4,0,0,0,3,0,0,0]": "1s759zl\n\nZero\n\n1qgybr7\n\n1mfflfd\n\nruzy1u\n\n\n\n\n\n", "selser [0,4,0,3,0,0,0,0,0,3,0,0,0]": "Zero\n\n1lc0182\n\nAlso zero, but differently! (Normal ref)\n\n\n\n\n\n\n\n", "selser [3,0,0,0,0,4,0,0,3,0,0,2,0]": "\nAlso zero, but differently! (Normal ref)\n\n\n\nmg82zd\n\n\n\nxefmhr\n\n", "selser [3,2,4,2,4,0,0,2,3,0,0,4,0]": "im3he0\n\njws5le\n\ngf9tte\n\nsqickf\n\n\n\n14jiq7o\n\n1i0xhb", "selser [3,0,4,2,0,2,0,0,0,0,0,4,0]": "\n1to8jou\n\n1q4t40z\n\n\n\nh1kd4g\n\n\n\n\n\n2s6rnl", "selser [0,0,1,0,0,4,0,3,1,2,0,4,0]": "Zero\n\nAlso zero, but differently! (Normal ref)\n\n\n\nermh8y\n\n\n\n\n\n1lc73ob\n\nmzul4n", "selser [1,0,0,3,1,3,1,0,2,0,0,4,0]": "Zero\n\nAlso zero, but differently! (Normal ref)\n\n\n\n\n\ngmbpkw\n\n\n\n1xfh5g7", "selser [2,0,3,2,0,0,2,3,4,0,0,0,0]": "mucbqr\n\nZero\n\ni8peub\n\n\n\n1px26o6\n\n\n\n18pbxhl\n\n\n\n", "selser [2,0,2,2,0,4,2,0,0,3,0,3,0]": "sqk5eb\n\nZero\n\n4v5cn6\n\nAlso zero, but differently! (Normal ref)\n\n1v6r6u9\n\n\n\n1nafanq\n\nc5qatn\n\n\n\n", "selser [4,4,4,0,0,0,0,3,1,2,0,0,0]": "1devhdy\n\n1o3vfrh\n\n1hbzkdi\n\n\n\n\n\n\n\nqgk2ub\n\n\n\n", "selser [0,0,2,0,2,2,2,4,0,0,0,2,0]": "Zero\n\n154g1s7\n\nAlso zero, but differently! (Normal ref)\n\n1lzjdgw\n\n\n\nmycz92\n\n1phfm0r\n\n\n\n18223mm\n\n\n\nodszxr\n\n", "selser [0,0,1,0,0,0,0,0,0,4,0,0,0]": "Zero\n\nAlso zero, but differently! (Normal ref)\n\n\n\n\n\n\n\n1tejkzu\n\n", "selser [0,0,0,3,0,2,2,3,1,0,0,2,0]": "Zero\n\nAlso zero, but differently! (Normal ref)\n\n\n\narbfc9\n\n1nbyl9p\n\n\n\n\n\n19hld02\n\n" }, "Grouped references with automatic group references generating errors": { "selser [2,3,0,0,0,4,0]": "e7hpvx\n\nGROUP theValue\nGROUP3 theValue3\nGROUP2 theValue2\naDifferentNameGROUP3 anotherValue3differentName\naDifferentNameGROUP2 anotherValue2DifferentName\nanotherGROUP3 anotherValue3\naDifferentNameGROUP anotherValueDifferentName2qh34j", "selser [[3,0,0,0,0,0,4,0,2,0,4,0,2,0],0,0,0,0,4,0]": "theValue\nGROUP3 theValue3\nGROUP2 theValue21h4fq7tanotherValue3differentNamez1cho3\naDifferentNameGROUP2 anotherValue2DifferentName1n1fwoaanotherValue3dy2vej\naDifferentNameGROUP anotherValueDifferentName\n1jop4wf", "selser [[2,0,0,0,3,0,0,0,2,0,4,0,0,0],0,0,0,0,2,0]": "1o90mvqGROUP theValue\nGROUP3 theValue3theValue2\naDifferentNameGROUP3 anotherValue3differentNamerwewyu\naDifferentNameGROUP2 anotherValue2DifferentName1c8jkqjanotherValue3\naDifferentNameGROUP anotherValueDifferentName\nmikkul\n", "selser [4,2,0,0,0,4,0]": "k6rbr\n\n1l7vu1\nemk1c5", "selser [[4,0,3,0,0,0,4,0,4,0,0,0,0,0],0,0,0,0,4,0]": "16r1mvutheValuetheValue3\nGROUP2 theValue2nxohyjanotherValue3differentNamevq18dianotherValue2DifferentName\nanotherGROUP3 anotherValue3\naDifferentNameGROUP anotherValueDifferentName\n125ihu5" }, "Hoisting multiple references should keep references in order": { "selser [0,2,0]": "[[Foo|hello note 1note 2]]note 3\n\nskll29\n", "selser [2,3,0]": "ehf66i\n\n[[Foo|hello note 1note 2]]note 3", "selser [[1,0,0,0],0,0]": "[[Foo|hello]] note 3\n", "selser [[[3],0,0,0],0,0]": "note 3\n", "selser [1,2,0]": "[[Foo|hello note 1note 2]]note 3\n\n1pnv3hs\n", "selser [1,0,0]": "[[Foo|hello note 1note 2]]note 3\n", "selser [2,2,0]": "1yhdskf\n\n[[Foo|hello note 1note 2]]note 3\n\n1px7rgk\n", "selser [[[4],0,0,0],3,0]": "[[Foo|157cn7a]]note 3", "selser [2,0,0]": "w5ildv\n\n[[Foo|hello note 1note 2]]note 3\n", "selser [[4,0,0,0],2,0]": "lyepzjnote 3\n\n1yfhy9s\n", "selser [[2,0,0,0],0,0]": "u6ocmx[[Foo|hello note 1note 2]]note 3\n", "selser [0,3,0]": "[[Foo|hello note 1note 2]]note 3", "selser [1,3,0]": "[[Foo|hello note 1note 2]]note 3", "selser [[4,0,0,0],0,0]": "ycfpmknote 3\n", "selser [2,4,0]": "kpn8qp\n\n[[Foo|hello note 1note 2]]note 3\n\n1wtlfei" }, "Multiple definition (inside {{#tag:references}})": { "wt2html": "

    [1]

    \n
    1. abc
    2. \n
    \n
      ", "html2html": "

      Parsoid fails this right now

      ", "html2wt": "Parsoid fails this right now" }, "Numbers in the default group need to start with 1, independent from other groups": { "wt2wt": "\n{{#tag:references|\na\n|group=g}}\nc\n", "html2html": "

      [g 1]

      \n
      1. a
      2. \n
      \n

      [1]

      \n
      1. c
      2. \n
      ", "html2wt": "\n{{#tag:references|a|group=g}}\nc\n", "selser [3,0,0,3,1,2,0]": "\n{{#tag:references|\na\n|group=g}}c\n\n1xkz57y\n", "selser [3,0,0,2,3,0,0]": "\n{{#tag:references|\na\n|group=g}}1x4tyf2\n\n", "selser [2,3,0,2,0,0,0]": "1ej8t0v\n\n{{#tag:references|\na\n|group=g}}o6on0l\nc", "selser [0,2,0,0,0,2,0]": "\n\nwp6j9p\n{{#tag:references|\na\n|group=g}}\nc\n\n1m3g9gg\n", "selser [0,4,0,0,4,0,0]": "\n\n846wg0{{#tag:references|\na\n|group=g}}\n1tw2u46\n", "selser [1,2,0,0,2,0,0]": "\n\n1dzhsrl\n{{#tag:references|\na\n|group=g}}\nu15f4n\n\nc", "selser [1,3,0,0,0,2,0]": "{{#tag:references|\na\n|group=g}}\nc\n\ntj4ehx\n", "selser [0,3,0,0,2,3,0]": "{{#tag:references|\na\n|group=g}}\n19ke34v\n\nc", "selser [4,3,0,4,3,2,0]": "1vf4gg5{{#tag:references|\na\n|group=g}}1wjax03\n\n17damaq\n", "selser [0,2,0,0,3,0,0]": "\n\n1vwnk7l\n{{#tag:references|\na\n|group=g}}\n\n", "selser [0,4,0,0,0,4,0]": "\n\n1g99od4{{#tag:references|\na\n|group=g}}\nc\n\n1i2uphk", "selser [3,2,0,4,4,0,0]": "p1h0i7\n{{#tag:references|\na\n|group=g}}1crdjyx\n\nqihif3\n", "selser [4,0,0,0,3,4,0]": "xnuoja\n{{#tag:references|\na\n|group=g}}\n1ymdh72", "selser [0,3,0,3,0,0,0]": "{{#tag:references|\na\n|group=g}}c", "selser [3,0,0,0,4,0,0]": "\n{{#tag:references|\na\n|group=g}}\n1a3ay78\n", "selser [0,4,0,2,0,0,0]": "\n\n17oynrv{{#tag:references|\na\n|group=g}}s8vyr4\nc", "selser [0,0,0,3,0,0,0]": "\n{{#tag:references|\na\n|group=g}}c", "selser [1,3,0,4,0,0,0]": "{{#tag:references|\na\n|group=g}}10qm2an\n\nc", "selser [1,4,0,0,4,2,0]": "\n\n1yc2kkt{{#tag:references|\na\n|group=g}}\nc66qyv\n\n1wkm9pr\n", "selser [3,4,0,0,1,0,0]": "mhy3ux{{#tag:references|\na\n|group=g}}\nc\n" }, "Ref in ref: Multiple levels of nesting in parser function": { "wt2wt": "one{{#tag:ref|two{{#tag:ref|threefour}}}}\n", "html2html": "

      one[3]

      \n
      1. four
      2. \n
      3. three[1]
      4. \n
      5. two[2]
      6. \n
      ", "html2wt": "one{{#tag:ref|two{{#tag:ref|threefour}}}}\n", "selser [1,3,0]": "one{{#tag:ref|two{{#tag:ref|threefour}}}}", "selser [[2,0],0,0]": "1wgx3mrone{{#tag:ref|two{{#tag:ref|threefour}}}}\n", "selser [3,4,0]": "ptpea2", "selser [0,2,0]": "one{{#tag:ref|two{{#tag:ref|threefour}}}}\n\n146aw4h\n", "selser [1,2,0]": "one{{#tag:ref|two{{#tag:ref|threefour}}}}\n\nmuirlr\n", "selser [2,3,0]": "15wh805\n\none{{#tag:ref|two{{#tag:ref|threefour}}}}", "selser [0,4,0]": "one{{#tag:ref|two{{#tag:ref|threefour}}}}\n\n1y91zqr", "selser [3,2,0]": "1svt85k\n", "selser [1,0,0]": "one{{#tag:ref|two{{#tag:ref|threefour}}}}\n", "selser [[2,0],4,0]": "1w1ehrkone{{#tag:ref|two{{#tag:ref|threefour}}}}\n\n1rzhbj", "selser [[4,0],0,0]": "1kpcg0a{{#tag:ref|two{{#tag:ref|threefour}}}}\n", "selser [4,0,0]": "bjgkkq\n", "selser [3,0,0]": "\n", "selser [[4,0],3,0]": "cf4u9w{{#tag:ref|two{{#tag:ref|threefour}}}}", "selser [4,4,0]": "kz18o0\n\n1kwzvny", "selser [[4,0],2,0]": "lnwcib{{#tag:ref|two{{#tag:ref|threefour}}}}\n\nhiy4zs\n", "selser [[3,0],3,0]": "{{#tag:ref|two{{#tag:ref|threefour}}}}", "selser [[2,0],2,0]": "zht2igone{{#tag:ref|two{{#tag:ref|threefour}}}}\n\n120d1kv\n", "selser [2,2,0]": "grxmgx\n\none{{#tag:ref|two{{#tag:ref|threefour}}}}\n\n18uph1n\n", "selser [2,0,0]": "1qsn27t\n\none{{#tag:ref|two{{#tag:ref|threefour}}}}" }, "Ref: 12. ref-tags act as trailing newline migration barrier": { "selser [4,[2],3,2,4,[4],3,0]": "7i6vwo\n\nfzf7t0a\n\n1cltg43\n\nb foo\nbar\n\n7vjkpr\n\n1vn32lo\n" }, "Ref: 3. spaces in ref-names should be ignored": { "wt2wt": "A foo\nB \nC \n", "html2wt": "A foo\nB \nC \n", "selser [[0,0,2,0,3,0],0,0]": "A foobgo09a\nB \n", "selser [[0,0,4,0,2,0],0,0]": "A foozn8mshc5u3nz\nC \n", "selser [[0,0,3,0,0,0],3,0]": "A foo\nC ", "selser [[4,0,3,0,3,0],0,0]": "u3w7pbfoo\n", "selser [2,0,0]": "1jut7m6\n\nA foo\nB \nC \n", "selser [[3,0,4,0,0,0],4,0]": "foo1c9mhyo\nC \n\n1f5a5xx", "selser [1,2,0]": "A foo\nB \nC \n\n1d4omiq\n", "selser [0,4,0]": "A foo\nB \nC \n\n8n56tv", "selser [[4,0,2,0,0,0],0,0]": "av0irwfoo63jwli\nB \nC \n", "selser [[3,0,3,0,0,0],0,0]": "foo\nC \n", "selser [[0,0,4,0,3,0],4,0]": "A foo1dkz2w8\n\nti4ywv", "selser [[4,0,0,0,3,0],2,0]": "cvv2efoo\nB \n\n33wcuy\n", "selser [[3,0,3,0,0,0],2,0]": "foo\nC \n\nkmsr29\n", "selser [1,0,0]": "A foo\nB \nC \n", "selser [[3,0,0,0,0,0],3,0]": "foo\nB \nC ", "selser [[3,0,4,0,2,0],0,0]": "foo101p0793m6jc7\nC \n", "selser [[0,0,0,0,4,0],0,0]": "A foo\nB baab28\n" }, "Ref: 8. transclusion wikitext has lower precedence": { "wt2wt": "A foo {{1x| B C}}\n\n", "html2html": "

      A [1] B C}}

      \n
      1. foo {{1x|
      2. \n
      ", "html2wt": "A foo {{1x| B C}}\n", "selser [[3,0,0],0,0]": " foo {{1x| B C}}\n\n", "selser [[3,0,0],3,0]": " foo {{1x| B C}}", "selser [0,2,0]": "A foo {{1x| B C}}\n\n232wei\n\n", "selser [[0,0,2],2,0]": "A foo {{1x|lhhaci B C}}\n\n1rk0l3t\n\n", "selser [1,4,0]": "A foo {{1x| B C}}\n\nu9t9ud", "selser [0,3,0]": "A foo {{1x| B C}}", "selser [[2,0,0],0,0]": "tz66ieA foo {{1x| B C}}\n\n", "selser [[2,0,4],0,0]": "1spohtmA foo {{1x|fdorka\n\n", "selser [0,4,0]": "A foo {{1x| B C}}\n\n1hy11rc", "selser [[4,0,3],4,0]": "1abu1po foo {{1x|\n\n1ly2yt3", "selser [1,0,0]": "A foo {{1x| B C}}\n\n", "selser [[3,0,0],2,0]": " foo {{1x| B C}}\n\n733hyo\n\n", "selser [[4,0,2],3,0]": "kfd1um foo {{1x|1qghqn9 B C}}", "selser [2,0,0]": "1g727md\n\nA foo {{1x| B C}}\n\n", "selser [[2,0,0],2,0]": "1afn0jkA foo {{1x| B C}}\n\n11z3b8h\n\n", "selser [[0,0,4],4,0]": "A foo {{1x|1vutmtj\n\nd3igfs", "selser [[4,0,2],4,0]": "196plys foo {{1x|1jwbmk4 B C}}\n\n1k9iwxo" }, "Ref: 9. unclosed comments should not leak out of ref-body": { "wt2wt": "A foo B C\n", "html2wt": "A foo B C\n", "selser [2,3,0]": "5vqncy\n\nA foo