jenkins-bot has submitted this change and it was merged.
Change subject: Sync parserTests with core
......................................................................
Sync parserTests with core
Change-Id: I6d7de62d0605dc90e15688ba51612b302446ef52
---
M tests/parserTests.txt
M tools/fetch-parserTests.txt.js
2 files changed, 13 insertions(+), 16 deletions(-)
Approvals:
Subramanya Sastry: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/parserTests.txt b/tests/parserTests.txt
index d3d566b..691113d 100644
--- a/tests/parserTests.txt
+++ b/tests/parserTests.txt
@@ -18,7 +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)
@@ -2520,7 +2519,6 @@
</p>
!! end
-## PHP parser discards the "<pre " string
!! test
Handle broken pre-like tags (bug 64025)
!! options
@@ -2531,8 +2529,13 @@
<table><pre </table>
!! html/php
<pre>x</pre>
-<table><pre></pre></table>
+<table><pre </table>
+!! html/php+tidy
+<pre>
+x
+</pre>
+<p><pre</p>
!! html/parsoid
<pre about="#mwt1" typeof="mw:Transclusion"
data-parsoid='{"a":{"<pre":null},"sa":{"<pre":""},"stx":"html","pi":[[{"k":"1"}]]}'
data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<pre
<pre>x</pre>"}},"i":0}}]}'>x</pre>
@@ -12167,7 +12170,7 @@
!! test
pre-save transform: unclosed tag
!! options
-pst noxml
+pst
!! wikitext
<nowiki>'''not wiki'''
!! html/php
@@ -12177,7 +12180,7 @@
!! test
pre-save transform: mixed tag case
!! options
-pst noxml
+pst
!! wikitext
<NOwiki>'''not wiki'''</noWIKI>
!! html/php
@@ -12187,7 +12190,7 @@
!! test
pre-save transform: unclosed comment in <nowiki>
!! options
-pst noxml
+pst
!! wikitext
wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
!! html/php
@@ -16439,8 +16442,6 @@
!! test
Parser hook: nested tags
-!! options
-noxml
!! wikitext
<tag><tag></tag></tag>
!! html/php
@@ -17100,8 +17101,6 @@
# Known to produce bogus xml (extra </td>)
!! test
Fuzz testing: Parser16
-!! options
-noxml
!! wikitext
{|
!https://||||||
@@ -17163,8 +17162,6 @@
# Known to produce bad XML for now
!! test
Fuzz testing: Parser24
-!! options
-noxml
!! wikitext
{|
{{{|
@@ -18229,7 +18226,7 @@
!! test
Section extraction, <pre> around bogus header (bug 10309)
!! options
-noxml section=2
+section=2
!! wikitext
== Section One ==
<pre>
@@ -18246,7 +18243,7 @@
!! test
Section replacement, <pre> around bogus header (bug 10309)
!! options
-noxml replace=2,"xxx"
+replace=2,"xxx"
!! wikitext
== Section One ==
<pre>
diff --git a/tools/fetch-parserTests.txt.js b/tools/fetch-parserTests.txt.js
index f55db56..7c8424d 100755
--- a/tools/fetch-parserTests.txt.js
+++ b/tools/fetch-parserTests.txt.js
@@ -12,9 +12,9 @@
// and update these hashes automatically.
//
// You can use 'sha1sum -b tests/parser/parserTests.txt' to compute this value:
-var expectedSHA1 = "e7a272e0d6ce2a7112c953666bbdf70987a3f874";
+var expectedSHA1 = "aa2c0529fda815b8bd66bae7c710c096f06142fb";
// git log --pretty=oneline -1 tests/parser/parserTests.txt
-var latestCommit = "5a0da02e6a42da80035d7b3591e257c0c995e5e3";
+var latestCommit = "002e63c94b00104f1098f8bc490ad75c8ac8fc8c";
var fs = require('fs');
var path = require('path');
--
To view, visit https://gerrit.wikimedia.org/r/281821
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I6d7de62d0605dc90e15688ba51612b302446ef52
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/parsoid
Gerrit-Branch: master
Gerrit-Owner: Arlolra <[email protected]>
Gerrit-Reviewer: Cscott <[email protected]>
Gerrit-Reviewer: Subramanya Sastry <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits