Debian Codegraph @

vendor/wikimedia/parsoid/tests/parser/tables-knownFailures.json

raw
1 {
2 "A table with captions with non-default spaced attributes and a table row": {
3 "wt2wt": "{|\n|+ style=\"color: red;\" |caption2\n|+ style=\"color: red;\" |caption3\n|-\n|foo\n|}"
4 },
5 "Accept \"| !\" at start of line in tables (ignore !-attribute)": {
6 "wt2wt": "{|\n|-\n| !style=\"color:red\" |bar\n|}"
7 },
8 "Allow +/- in 2nd and later cells in a row, in 1st cell when td-attrs are present, or in 1st cell when there is a space between \"|\" and +/- ": {
9 "wt2wt": "{|\n|-\n| style=\"color:red;\" | +1\n| style=\"color:blue;\" | -1\n|-\n|1||2||3\n|1||+2||-3\n|-\n| +1\n| -1\n|}"
10 },
11 "Build table with pipe as data": {
12 "wt2wt": "{| class=\"wikitable\"\n!header\n!second header\n|- style=\"color:red;\"\n|data|| style=\"color:red;\" |second data\n|-\n| style=\"color:red;\" |<nowiki>data with |</nowiki>|| style=\"color:red;\" |second data with |\n|-\n||<nowiki>data with |</nowiki>|||second data with |\n|}"
13 },
14 "Build table with {{!}}": {
15 "wt2wt": "{{{!}} class=\"wikitable\"\n!header\n!second header\n{{!}}- style=\"color:red;\"\n{{!}}data{{!}}{{!}} style=\"color:red;\"{{!}}second data\n{{!}}}"
16 },
17 "Invalid attributes in table cell (T3830)": {
18 "wt2wt": "{|\n| Cell: |broken\n|}"
19 },
20 "Nested table": {
21 "wt2wt": "{| border=\"1\"\n|&alpha;\n|\n{| bgcolor=\"#ABCDEF\" border=\"2\"\n|nested\n|-\n|table\n|}\n|the original table again\n|}"
22 },
23 "Parsoid: Row-syntax table headings followed by comment & table cells": {
24 "wt2wt": "{|\n!foo||bar\n<!-- foo -->||baz||quux\n|}"
25 },
26 "Table cell attributes: Pipes protected by nowikis should be treated as a plain character": {
27 "wt2wt": "{|\n| title=\"foo\" |bar\n| title=\"foo<nowiki>|</nowiki>\" |bar\n|title=\"foo<nowiki>|</nowiki>\" bar\n|}"
28 },
29 "Table rowspan": {
30 "wt2wt": "{| border=\"1\"\n|Cell 1, row 1\n| rowspan=\"2\" |Cell 2, row 1 (and 2)\n|Cell 3, row 1\n|-\n|Cell 1, row 2\n|Cell 3, row 2\n|}"
31 },
32 "Table td-cell syntax variations": {
33 "wt2wt": "{|\n| foo bar |baz\n|foo bar foo||baz\n| style=\"color:red;\" |baz\n|style='color:red;'||baz\n|}"
34 },
35 "Templated table cell with untemplated attributes: Unsupported Scenario": {
36 "wt2html": "<table data-parsoid='{\"dsr\":[0,55,2,2]}'>\n<tbody data-parsoid='{\"dsr\":[3,53,0,0]}'><tr data-parsoid='{\"startTagSrc\":\"|-\",\"dsr\":[3,52,2,0]}'>\n<td title=\"fail\" about=\"#mwt1\" typeof=\"mw:Transclusion\" class=\"foo\" data-parsoid='{\"pi\":[[{\"k\":\"1\",\"named\":true}]],\"dsr\":[6,52,null,null]}' data-mw='{\"parts\":[\"|class=\\\"foo\\\"\",{\"template\":{\"target\":{\"wt\":\"1x\",\"href\":\"./Template:1x\"},\"params\":{\"1\":{\"wt\":\"{{!}}title=\\\"fail\\\"{{!}}bar\"}},\"i\":0}}]}'>bar</td></tr>\n</tbody></table>"
37 }
38 }