!! test
Table with row followed by newlines and table heading
+!! options
+parsoid=wt2html,html2html
!! wikitext
{|
|-
! foo
|}
-!! html
+!! html/*
<table>
!! test
Table with empty line following the start tag
+!! options
+parsoid=wt2html,html2html
!! wikitext
{|
|-
| foo
|}
-!! html
+!! html/*
<table>
</tbody></table>
!! end
+# T137406: Whitespace in the HTML
!! test
-Strip unsupported table tags, but introduce row wikitext as required
+1. Generate correct wikitext for tables with thead/tbody/tfoot
!! options
parsoid=html2wt
!! html/parsoid
!! wikitext
{|
|+Test
-
!Month
!Savings
-
|-
|January
|$100
-
|-
|February
|$80
-
|-
|Sum
|$180
-
|}
!! html/php+tidy
<table>
</table>
!! end
+# T137406: No whitespace in the HTML
+!! test
+2. Generate correct wikitext for tables with thead/tbody/tfoot
+!! options
+parsoid=html2wt
+!! html/parsoid
+<table><thead><tr><th>heading</th></tr></thead><tbody><tr><td>foo</td></tr></tbody></table>
+!! wikitext
+{|
+!heading
+|-
+|foo
+|}
+!! end
+
!! test
Testing serialization after deletion in references
!! options
!! test
Interlanguage link
-!! options
-parsoid=wt2html,wt2wt,html2html
!! wikitext
Blah blah blah
[[zh:Chinese]]
!! test
Double interlanguage link
-!! options
-parsoid=wt2html,wt2wt,html2html
!! wikitext
Blah blah blah
[[es:Spanish]]
parsoid=html2wt
!! html/*
<table>
-
<tr>
<td>foo!!bar
</td></tr></table>
!! wikitext
{|
-
|foo!!bar
|}
!! end
parsoid=html2wt
!! html/*
<table>
-
<tr>
<th>foo!bar
</th></tr></table>
!! wikitext
{|
-
!foo!bar
|}
!! end
parsoid=html2wt
!! html/*
<table>
-
<tr>
<th>-bar
</th></tr>
!! wikitext
{|
-
!-bar
-
|-
|<nowiki>-bar</nowiki>
|}
parsoid=html2wt
!! html/*
<table>
-
<tr>
<th>+bar
</th></tr>
!! wikitext
{|
-
!+bar
-
|-
|<nowiki>+bar</nowiki>
|}