",
"html2wt": "{{1x|hello stuff}} stuff",
"selser [[0,0,1]]": "{{1x|hello stuff}} stuff",
"selser [1]": "{{1x|hello stuff}} stuff",
"selser [2]": "tv9ps4\n\n{{1x|hello stuff}}",
"selser [[0,0,3]]": "{{1x|hello stuff}}",
"selser [[0,0,[4]]]": "{{1x|hello stuff}}21vtoa",
"selser [[0,0,[3]]]": "{{1x|hello stuff}}",
"selser [[0,0,[2]]]": "{{1x|hello stuff}}4cvg4r stuff"
},
"Annotation open tag in fosterable position should expand the range to the entire table": {
"wt2wt": "\n{|\n|table\n|with\n|-\n\n|some\n|content\n|-\n|dummyanno\n|one line\n|}\n"
},
"Annotations should not be hoisted out of headers": {
"html2html": "
Organizational and Planning Projects
\n",
"html2wt": "== Organizational and Planning Projects ==\n"
},
"End dummyanno tag at the end of a paragraph and beginning within should extend to the end of but not the whole paragraph": {
"wt2wt": "This should ''fail miserably'' ... let's fix it",
"selser [1]": "This should ''fail miserably'' ... let's fix it",
"selser [[2,0]]": "gxwicuThis should ''fail miserably'' ... let's fix it",
"selser [2]": "m7royv\n\nThis should ''fail miserably'' ... let's fix it",
"selser [[3,0]]": "''fail miserably'' ... let's fix it",
"selser [[4,0]]": "6lrdf6''fail miserably'' ... let's fix it"
},
"Fostering in div with fostered transclusion should extend the transclusion on the end annotation tag": {
"wt2wt": "\n
\n
\n
some stuff
\n
\n{{1x|transclusion}}\n
hello
\n
hello
\n
"
},
"New lines around table-spanning annotation range extension should be maintained in selser": {
"wt2wt": "txt1\n\n\ntxt2\n{|\n|-\n\n|text3\n|}\n\n\ntxt4",
"selser [[2],0,0,0,[4]]": "g9aaqytxt1\n{|\n|-\ntxt2\n|text3\n|}\n\n518vpt",
"selser [0,0,0,0,2]": "txt1\n{|\n|-\ntxt2\n|text3\n|}\n\n1ig4310\n\ntxt4",
"selser [1,0,0,4,[3]]": "txt1\n{|\n|-\ntxt2\n|text3\n|}\n\n1rk6tnj\n\n",
"selser [[3],0,0,2,0]": "\n{|\n|-\ntxt2\n|text3\n|}\n\n1uwjesj\ntxt4",
"selser [2,0,0,0,[4]]": "1al7zqi\n\ntxt1\n{|\n|-\ntxt2\n|text3\n|}\n\n5v5k7i",
"selser [4,0,0,0,0]": "lsm64c\n\n{|\n|-\ntxt2\n|text3\n|}\ntxt4",
"selser [4,3,0,0,0]": "kc9fci\n\n{|\n|-\ntxt2\n|text3\n|}\ntxt4",
"selser [0,0,0,4,0]": "txt1\n{|\n|-\ntxt2\n|text3\n|}\n\n5epyqq\n\ntxt4",
"selser [3,4,0,2,2]": "1gfiytw\n\n{|\n|-\ntxt2\n|text3\n|}\n\n1xbk1c9\ncl1nbf\n\ntxt4",
"selser [3,0,0,3,[3]]": "\n{|\n|-\ntxt2\n|text3\n|}\n\n",
"selser [2,0,0,0,[3]]": "s2gff9\n\ntxt1\n{|\n|-\ntxt2\n|text3\n|}\n\n",
"selser [3,3,0,0,[3]]": "{|\n|-\ntxt2\n|text3\n|}\n\n",
"selser [4,0,0,0,[3]]": "1h81kqd\n\n{|\n|-\ntxt2\n|text3\n|}\n\n",
"selser [0,0,0,0,[2]]": "txt1\n{|\n|-\ntxt2\n|text3\n|}\n\nymlas7txt4",
"selser [4,4,0,0,[3]]": "1g9wclr\n\n92eiod\n\n{|\n|-\ntxt2\n|text3\n|}\n\n",
"selser [2,2,0,3,2]": "1amtxch\n\ntxt1\n\n1rirxch\n\n{|\n|-\ntxt2\n|text3\n|}\n\nlovjek\n\ntxt4",
"selser [[3],4,0,0,3]": "\n\nwng1kt\n\n{|\n|-\ntxt2\n|text3\n|}\n",
"selser [4,4,0,0,1]": "18ibpo\n\n1wcochj\n\n{|\n|-\ntxt2\n|text3\n|}\ntxt4",
"selser [0,0,0,3,[3]]": "txt1\n{|\n|-\ntxt2\n|text3\n|}\n\n",
"selser [2,4,0,0,4]": "h9bpxg\n\ntxt1\n\n1cjnj7h\n\n{|\n|-\ntxt2\n|text3\n|}\n\n1pp9gc6"
},
"Newlines should be inserted between annotation tags and pre": {
"html2wt": "foo\n\n\n bar\nbaz\nfoo\n bar\nbaz"
},
"Selser: add content at the end of a paragraph with badly nested content with annotation": {
"selser [[2,0,0]]": "kmjc67Some ''stuff and '''also some'' more stuff''' than that.",
"selser [2]": "z0khzc\n\nSome ''stuff and '''also some'' more stuff''' than that.",
"selser [[4,0,3]]": "pzo0y6''stuff and '''also some'' more stuff'''",
"selser [[3,0,4]]": "''stuff and '''also some'' more stuff'''o11kgg",
"selser [1]": "Some ''stuff and '''also some'' more stuff''' than that.",
"selser [[3,0,0]]": "''stuff and '''also some'' more stuff''' than that.",
"selser [[4,0,4]]": "wdej97''stuff and '''also some'' more stuff'''rwwrzr",
"selser [[2,0,2]]": "1o1bucfSome ''stuff and '''also some'' more stuff'''1kbp0pl than that.",
"selser [[0,0,4]]": "Some ''stuff and '''also some'' more stuff'''hf6ysp",
"selser [[4,0,0]]": "ysc8n2''stuff and '''also some'' more stuff''' than that.",
"selser [[3,0,2]]": "''stuff and '''also some'' more stuff'''1cnsgzx than that.",
"selser [[2,0,3]]": "jc26laSome ''stuff and '''also some'' more stuff'''",
"selser [[3,0,3]]": "''stuff and '''also some'' more stuff'''",
"selser [[4,0,2]]": "d9i7n5''stuff and '''also some'' more stuff'''wirgj2 than that.",
"selser [[0,0,3]]": "Some ''stuff and '''also some'' more stuff'''",
"selser [[0,0,2]]": "Some ''stuff and '''also some'' more stuff'''uk0g6z than that.",
"selser [[2,0,4]]": "1ldiwd8Some ''stuff and '''also some'' more stuff'''ofykuu"
},
"Selser: add content at the end of a paragraph with badly nested content without annotation": {
"wt2wt": "Some ''stuff and '''also some'''''''' more stuff''' than that.",
"html2wt": "Some ''stuff and '''also some'''''''' more stuff''' than that.",
"selser [2]": "3qj52y\n\nSome ''stuff and '''also some'' more stuff''' than that.",
"selser [[0,[2,0],[4],0]]": "Some ''1duaqbgstuff and '''also some'''''wz27d''' than that.",
"selser [1]": "Some ''stuff and '''also some'' more stuff''' than that.",
"selser [[4,2,[2],0]]": "179mz1a1v8si9b''stuff and '''also some'''''o4e5ew more stuff''' than that.",
"selser [[4,1,1,2]]": "12ju0sf''stuff and '''also some''''' more stuff'''fam1gc than that.",
"selser [[3,[2,3],0,3]]": "''6ms8yxstuff and '' more stuff'''",
"selser [[3,2,[4],0]]": "1hoa429''stuff and '''also some'''''1j6m5bz''' than that.",
"selser [[0,3,2,2]]": "Some 154o63d more stuff'''18kt1ix than that.",
"selser [[0,3,0,0]]": "Some more stuff''' than that.",
"selser [[2,2,3,2]]": "q3t941Some fj1ax0''stuff and '''also some''10qo8iy than that.",
"selser [[2,3,0,3]]": "48stf3Some more stuff'''"
},
"Start dummyanno tag at the beginning of a paragraph and end within should extend to the end of but not the whole paragraph": {
"wt2wt": "This should ''fail miserably'' ... let's fix it",
"selser [2]": "1wrg8qt\n\nThis should ''fail miserably'' ... let's fix it",
"selser [[0,2]]": "This should ''fail miserably''1o8ain2 ... let's fix it",
"selser [[0,4]]": "This should ''fail miserably''1d2iewi",
"selser [1]": "This should ''fail miserably'' ... let's fix it",
"selser [[0,3]]": "This should ''fail miserably''"
},
"T296169: Extended annotations that yield a nested annotation should not nest said annotation": {
"wt2wt": "a ''b'' c ''d e f'' g",
"selser [[0,0,2]]": "a ''b'' c ''d e f''uvcncx g",
"selser [1]": "a ''b'' c ''d e f'' g",
"selser [[4,0,4]]": "cpqfb6''b'' c ''d e f''1qliz55",
"selser [[2,0,2]]": "1rdscy3a ''b'' c ''d e f''ctksph g",
"selser [[4,0,0]]": "1flsizp''b'' c ''d e f'' g",
"selser [2]": "16fysu7\n\na ''b'' c ''d e f'' g",
"selser [[2,0,4]]": "w5brjia ''b'' c ''d e f''1biquwp",
"selser [[2,0,0]]": "okwp1ua ''b'' c ''d e f'' g",
"selser [[0,0,4]]": "a ''b'' c ''d e f''14f682o",
"selser [[0,0,3]]": "a ''b'' c ''d e f''",
"selser [[3,0,0]]": "''b'' c ''d e f'' g",
"selser [[2,0,3]]": "1ph8hhta ''b'' c ''d e f''",
"selser [[4,0,3]]": "a33197''b'' c ''d e f''",
"selser [[3,0,2]]": "''b'' c ''d e f''9hg1hw g",
"selser [[3,0,4]]": "''b'' c ''d e f''1e1i5na",
"selser [[4,0,2]]": "11vz40r''b'' c ''d e f''csogsk g",
"selser [[3,0,3]]": "''b'' c ''d e f''"
},
"T296169: Nested annotations should be dropped in HTML output": {
"wt2wt": "t1t2t3",
"selser [2]": "1koe8pj\n\nt1t2t3"
},
"Top-level metas should not be migrated into paragraphs, nor pulled in the template": {
"wt2wt": "{{1x|
b}}\n\n2hh2o1\n\nc\n\n1gvm7vf\n"
},
"Two paragraphs between dummyanno tags should roundtrip without duplicating the tags (DSRs are adjusted correctly)": {
"wt2wt": "\nplop\n\nLet's have some text.\n",
"html2html": "\n
plop
\n\n
Let's have some text.
\n",
"html2wt": "\nplop\n\nLet's have some text.\n",
"selser [0,[3],0,0,0]": "\n\n\nLet's have some text.",
"selser [0,1,2,0,0]": "plop\n\n1qqhx5l\n\nLet's have some text.",
"selser [0,0,4,4,0]": "plop\n\n6ro820\n\n7i1bfi\n",
"selser [0,0,0,[2],0]": "plop\n\np4u1vyLet's have some text.",
"selser [0,[4],0,0,0]": "\n1yayklg\n\nLet's have some text.",
"selser [0,[2],3,1,0]": "\n1h037qzplop\n\nLet's have some text.",
"selser [0,[4],4,[2],0]": "\nlomlcw\n\n15fe00w\n\n10tpdidLet's have some text.",
"selser [0,4,0,0,0]": "\n1zrter\n\nLet's have some text.",
"selser [0,4,3,1,0]": "\nt9zvxt\n\nLet's have some text.",
"selser [0,1,0,0,0]": "plop\n\nLet's have some text.",
"selser [0,1,0,[2],0]": "plop\n\n19wl0n7Let's have some text.",
"selser [0,4,0,2,0]": "\n13xtyfj\n\nlj67ed\n\nLet's have some text.",
"selser [0,3,4,0,0]": "\nmom1vp\n\nLet's have some text."
},
"dummyanno in the middle of fostered content should extend to the whole range, including fostered content": {
"wt2wt": "\nfoo\n\nbar\n{|\n|-\n|baz\n|}\n"
}
}