Sync up with Parsoid parserTests.txt
This now aligns with Parsoid commit 241a08fb80cd5b4b16146eb99054b25c0261998c Change-Id: I8d176b76891e10de096247f6ad3ed52ec6f5735e
This commit is contained in:
parent
b8e7da5aa4
commit
ed543be03b
1 changed files with 12 additions and 17 deletions
|
|
@ -1769,6 +1769,11 @@ wgRawHtml=1
|
|||
<style>test : 123</style>
|
||||
|
||||
</p>
|
||||
!! html/parsoid
|
||||
<p><span typeof="mw:Extension/html" about="#mwt2" data-mw='{"name":"html","attrs":{},"body":{"extsrc":"\n<script>test ; 123</script>\n<style>test : 123</style>\n"}}'>
|
||||
</span><script about="#mwt2">test ; 123</script><span about="#mwt2">
|
||||
</span><style about="#mwt2">test : 123</style><span about="#mwt2">
|
||||
</span></p>
|
||||
!! end
|
||||
|
||||
###
|
||||
|
|
@ -7714,9 +7719,9 @@ Templated table cell with untemplated attributes: Common use cases
|
|||
!! wikitext
|
||||
{|
|
||||
|-
|
||||
!class="test"{{table_cell_content}} /* <th> & <td> combine */
|
||||
!class="test"{{table_cell_content}} /* th & td combine */
|
||||
|-
|
||||
|class="test"{{table_cell_content}} /* <td> & <td> combine */
|
||||
|class="test"{{table_cell_content}} /* td & td combine */
|
||||
|
|
||||
|class="test"{{table_cell_content|attr=style='color:red;'}}
|
||||
|
|
||||
|
|
@ -7726,10 +7731,10 @@ Templated table cell with untemplated attributes: Common use cases
|
|||
<table>
|
||||
|
||||
<tbody><tr>
|
||||
<th class="test">foo /* </th><th> & </th><td> combine */
|
||||
</td></tr>
|
||||
<th class="test">foo /* th & td combine */
|
||||
</th></tr>
|
||||
<tr>
|
||||
<td class="test">foo /* </td><td> & </td><td> combine */
|
||||
<td class="test">foo /* td & td combine */
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
|
|
@ -7742,9 +7747,9 @@ Templated table cell with untemplated attributes: Common use cases
|
|||
!! html/parsoid
|
||||
<table>
|
||||
<tbody><tr data-parsoid='{"startTagSrc":"|-"}'>
|
||||
<th class="test" typeof="mw:Transclusion" about="#mwt1" data-parsoid='{"pi":[[]]}' data-mw='{"parts":["!class=\"test\"",{"template":{"target":{"wt":"table_cell_content","href":"./Template:Table_cell_content"},"params":{},"i":0}}," /* "]}'>foo /*</th><th data-parsoid='{"stx":"html","autoInsertedEnd":true}'> & </th><td data-parsoid='{"stx":"html","autoInsertedEnd":true}'> combine */</td></tr>
|
||||
<th class="test" typeof="mw:Transclusion" about="#mwt1" data-parsoid='{"pi":[[]]}' data-mw='{"parts":["!class=\"test\"",{"template":{"target":{"wt":"table_cell_content","href":"./Template:Table_cell_content"},"params":{},"i":0}}," /* th & td combine */"]}'>foo /* th & td combine */</th></tr>
|
||||
<tr data-parsoid='{"startTagSrc":"|-"}'>
|
||||
<td class="test" typeof="mw:Transclusion" about="#mwt2" data-parsoid='{"pi":[[]]}' data-mw='{"parts":["|class=\"test\"",{"template":{"target":{"wt":"table_cell_content","href":"./Template:Table_cell_content"},"params":{},"i":0}}," /* "]}'>foo /*</td><td data-parsoid='{"stx":"html","autoInsertedEnd":true}'> & </td><td data-parsoid='{"stx":"html","autoInsertedEnd":true}'> combine */</td>
|
||||
<td class="test" typeof="mw:Transclusion" about="#mwt2" data-parsoid='{"pi":[[]]}' data-mw='{"parts":["|class=\"test\"",{"template":{"target":{"wt":"table_cell_content","href":"./Template:Table_cell_content"},"params":{},"i":0}}," /* td & td combine */"]}'>foo /* td & td combine */</td>
|
||||
<td></td>
|
||||
<td class="test" style="color:red;" typeof="mw:Transclusion" about="#mwt3" data-parsoid='{"pi":[[{"k":"attr","named":true}]]}' data-mw='{"parts":["|class=\"test\"",{"template":{"target":{"wt":"table_cell_content","href":"./Template:Table_cell_content"},"params":{"attr":{"wt":"style='color:red;'"}},"i":0}}]}'>foo</td>
|
||||
<td></td>
|
||||
|
|
@ -30022,16 +30027,6 @@ parsoid={
|
|||
=== hi <span id="x" class="y">hi</span> hi ho ===
|
||||
!! end
|
||||
|
||||
!! test
|
||||
Ensure disambiguation links are marked properly
|
||||
!! options
|
||||
parsoid=wt2html
|
||||
!! wikitext
|
||||
[[Disambiguation]]
|
||||
!! html/parsoid
|
||||
<p><a rel="mw:WikiLink" href="./Disambiguation" title="Disambiguation" class="mw-disambig">Disambiguation</a></p>
|
||||
!! end
|
||||
|
||||
## Note that there's a leading \r here that's necessary for the test
|
||||
!! test
|
||||
Stray carriage return in text
|
||||
|
|
|
|||
Loading…
Reference in a new issue