Merge "parserTest: Remove mention of non-existent 'noxml' option"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 24 Mar 2016 19:59:56 +0000 (19:59 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 24 Mar 2016 19:59:56 +0000 (19:59 +0000)
1  2 
tests/parser/parserTests.txt

@@@ -18,7 -18,6 +18,6 @@@
  # ill           add inter-language links
  #               (ignored by Parsoid, since it emits <link>s)
  # subpage       enable subpages (disabled by default)
- # noxml         don't check for XML well-formedness
  # title=[[XXX]] run test using article title XXX
  # language=XXX  set content language to XXX for this test
  # variant=XXX   set the variant of language for this test (eg zh-tw)
@@@ -4773,7 -4772,7 +4772,7 @@@ External imag
  !! wikitext
  External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
  !! html
 -<p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
 +<p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png"/>
  </p>
  !! end
  
@@@ -4782,7 -4781,7 +4781,7 @@@ External image from http
  !! wikitext
  External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
  !! html
 -<p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
 +<p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png"/>
  </p>
  !! end
  
@@@ -4856,7 -4855,7 +4855,7 @@@ External links: Clickable image
  !! wikitext
  ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
  !! html/php
 -<p>ja-style clickable images: <a rel="nofollow" class="external text" href="http://example.com"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a>
 +<p>ja-style clickable images: <a rel="nofollow" class="external text" href="http://example.com"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png"/></a>
  </p>
  !! html/parsoid
  <p>ja-style clickable images: <a rel="mw:ExtLink" href="http://example.com"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" data-parsoid='{"type":"extlink"}'/></a></p>
@@@ -6567,8 -6566,6 +6566,8 @@@ Table with empty line following the sta
  
  !! test
  Table attributes with empty value
 +!! options
 +parsoid=wt2html,html2html
  !! wikitext
  {|
  | style=| hello
  
  !! html/parsoid
  <table>
 -<tbody>
 -<tr>
 -<td style=""> hello
 -</td></tr></tbody></table>
 -
 +<tbody><tr><td style=""> hello</td></tr>
 +</tbody></table>
  !! end
  
  !! test
@@@ -10508,7 -10508,6 +10507,7 @@@ Abort table cell attribute parsing on w
  {|
  | testing [[one|two]] | three || four
  | testing one two | three || four
 +| testing="[[one|two]]" | three || four
  |}
  !! html/php
  <table>
  </td>
  <td> three </td>
  <td> four
 +</td>
 +<td> testing="<a href="/index.php?title=One&amp;action=edit&amp;redlink=1" class="new" title="One (page does not exist)">two</a>" | three </td>
 +<td> four
  </td></tr></table>
  
  !! html/parsoid
  <table>
  <tbody><tr data-parsoid='{"autoInsertedEnd":true,"autoInsertedStart":true}'><td data-parsoid='{"autoInsertedEnd":true}'> testing <a rel="mw:WikiLink" href="./One" title="One" data-parsoid='{"stx":"piped","a":{"href":"./One"},"sa":{"href":"one"}}'>two</a> | three </td><td data-parsoid='{"stx_v":"row","autoInsertedEnd":true}'> four</td>
 -<td data-parsoid='{"a":{"testing":null,"one":null,"two":null},"sa":{"testing":"","one":"","two":""},"autoInsertedEnd":true}'> three </td><td data-parsoid='{"stx_v":"row","autoInsertedEnd":true}'> four</td></tr>
 +<td data-parsoid='{"a":{"testing":null,"one":null,"two":null},"sa":{"testing":"","one":"","two":""},"autoInsertedEnd":true}'> three </td><td data-parsoid='{"stx_v":"row","autoInsertedEnd":true}'> four</td>
 +<td> testing="<a rel="mw:WikiLink" href="./One" title="One" data-parsoid='{"stx":"piped","a":{"href":"./One"},"sa":{"href":"one"}}'>two</a>" | three </td><td data-parsoid='{"stx_v":"row","autoInsertedEnd":true}'> four</td></tr>
  </tbody></table>
  !! end
  
@@@ -12167,7 -12162,7 +12166,7 @@@ This template has <!-- a comment --> i
  !! test
  pre-save transform: unclosed tag
  !! options
- pst noxml
+ pst
  !! wikitext
  <nowiki>'''not wiki'''
  !! html/php
  !! test
  pre-save transform: mixed tag case
  !! options
- pst noxml
+ pst
  !! wikitext
  <NOwiki>'''not wiki'''</noWIKI>
  !! html/php
  !! test
  pre-save transform: unclosed comment in <nowiki>
  !! options
- pst noxml
+ pst
  !! wikitext
  wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
  !! html/php
@@@ -15475,17 -15470,14 +15474,17 @@@ div with illegal double attribute
  
  !! test
  div with empty attribute value, space before equals
 +!! options
 +parsoid=wt2html,html2html
  !! wikitext
  <div class =>HTML rocks</div>
 -!! html
 +!! html/php
  <div class="">HTML rocks</div>
  
 +!! html/parsoid
 +<div class="" data-parsoid='{"stx":"html"}'>HTML rocks</div>
  !! end
  
 -# FIXME: Parsoid doesn't match the html5 spec
  !! test
  div with multiple empty attribute values
  !! options
@@@ -15496,9 -15488,10 +15495,9 @@@ parsoid=wt2html,html2htm
  <div id="title.3D">HTML rocks</div>
  
  !! html/parsoid
 -<div id="" title="">HTML rocks</div>
 +<div id="title=" data-parsoid='{"stx":"html"}'>HTML rocks</div>
  !! end
  
 -# FIXME: Parsoid doesn't match the html5 spec
  !! test
  table with multiple empty attribute values
  !! options
@@@ -15514,7 -15507,7 +15513,7 @@@ parsoid=wt2html,html2htm
  </td></tr></table>
  
  !! html/parsoid
 -<table title="" id="">
 +<table title="id=">
  <tbody><tr><td> hi</td></tr>
  </tbody></table>
  !! end
@@@ -15856,28 -15849,20 +15855,28 @@@ Empty attribute crash test single-quote
  
  !! test
  Attribute test: equals, then nothing
 +!! options
 +parsoid=wt2html,html2html
  !! wikitext
  <font color=>foo</font>
 -!! html
 +!! html/php
  <p><font color="">foo</font>
  </p>
 +!! html/parsoid
 +<p><font color="" data-parsoid='{"stx":"html"}'>foo</font></p>
  !! end
  
  !! test
  Attribute test: unquoted value
 +!! options
 +parsoid=wt2html,html2html
  !! wikitext
  <font color=x>foo</font>
 -!! html
 +!! html/php
  <p><font color="x">foo</font>
  </p>
 +!! html/parsoid
 +<p><font color="x" data-parsoid='{"stx":"html"}'>foo</font></p>
  !! end
  
  !! test
@@@ -16428,8 -16413,6 +16427,6 @@@ array 
  
  !! test
  Parser hook: nested tags
- !! options
- noxml
  !! wikitext
  <tag><tag></tag></tag>
  !! html/php
@@@ -17063,8 -17046,6 +17060,8 @@@ http://<div id="toc" class="toc"><div i
  
  !! test
  Fuzz testing: Parser14-table
 +!! options
 +parsoid=wt2html,html2html
  !! wikitext
  ==a==
  {| STYLE=__TOC__
  <td></td>
  </tr>
  </table>
 +!! html/parsoid
 +<h2>a</h2>
 +<table style="__TOC__"></table>
  !! end
  
  # Known to produce bogus xml (extra </td>)
  !! test
  Fuzz testing: Parser16
- !! options
- noxml
  !! wikitext
  {|
  !https://||||||
@@@ -17152,8 -17128,6 +17147,6 @@@ http://===r:::https://
  # Known to produce bad XML for now
  !! test
  Fuzz testing: Parser24
- !! options
- noxml
  !! wikitext
  {|
  {{{|
@@@ -18218,7 -18192,7 +18211,7 @@@ section=
  !! test
  Section extraction, <pre> around bogus header (bug 10309)
  !! options
noxml section=2
+ section=2
  !! wikitext
  == Section One ==
  <pre>
@@@ -18235,7 -18209,7 +18228,7 @@@ stuf
  !! test
  Section replacement, <pre> around bogus header (bug 10309)
  !! options
noxml replace=2,"xxx"
+ replace=2,"xxx"
  !! wikitext
  == Section One ==
  <pre>
@@@ -20881,7 -20855,7 +20874,7 @@@ Bug 19052 U+3000 IDEOGRAPHIC SPACE shou
  !! wikitext
  http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
  !! html
 -<p><img src="http://www.example.org/pic.png" alt="pic.png" /> &lt;-- U+3000 (vim: ^Vu3000)
 +<p><img src="http://www.example.org/pic.png" alt="pic.png"/> &lt;-- U+3000 (vim: ^Vu3000)
  </p>
  !! end