Arlolra has uploaded a new change for review.
https://gerrit.wikimedia.org/r/291153
Change subject: Sync up with Parsoid parserTests.
......................................................................
Sync up with Parsoid parserTests.
This now aligns with Parsoid commit b0d48342e0c540c17b2c073833d4a7ab147e2852
Change-Id: I9eb00fdc854eac7ddfc37520bd6b3cf8913db523
---
M tests/parser/parserTests.txt
1 file changed, 6 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/53/291153/1
diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt
index c9e7887..523953c 100644
--- a/tests/parser/parserTests.txt
+++ b/tests/parser/parserTests.txt
@@ -2269,9 +2269,11 @@
<nowiki> inside of #tag:pre
!! wikitext
{{#tag:pre|Foo <nowiki>→bar</nowiki>}}
-!! html
+!! html/php
<pre>Foo →bar</pre>
+!! html/parsoid
+<pre about="#mwt1" typeof="mw:Transclusion"
data-parsoid='{"pi":[[{"k":"1"}]]}'
data-mw='{"parts":[{"template":{"target":{"wt":"#tag:pre","function":"#tag"},"params":{"1":{"wt":"Foo
<nowiki>&rarr;bar</nowiki>"}},"i":0}}]}'>Foo <span
typeof="mw:Entity">→</span>bar</pre>
!! end
!! test
@@ -2822,7 +2824,7 @@
!! wikitext
{{echo|[{{fullurl:{{FULLPAGENAME}}|action=edit}} bar]}}
!! html
-<p typeof="mw:Transclusion"
data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[{{fullurl:{{FULLPAGENAME}}|action=edit}}
bar]"}},"i":0}}]}'>[Main Page bar]</p>
+<p typeof="mw:Transclusion"
data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[{{fullurl:{{FULLPAGENAME}}|action=edit}}
bar]"}},"i":0}}]}'>[Main_Page bar]</p>
!! end
!! test
@@ -7489,7 +7491,7 @@
<p><a href="#.3C">#<</a><a href="#.3E">#></a>
</p>
!! html/parsoid
-<p><a rel="mw:WikiLink" href="./Main%20Page#%3C" title="Main Page">#<</a><a
rel="mw:WikiLink" href="./Main%20Page#%3E" title="Main Page">#></a></p>
+<p><a rel="mw:WikiLink" href="./Main_Page#%3C" title="Main Page">#<</a><a
rel="mw:WikiLink" href="./Main_Page#%3E" title="Main Page">#></a></p>
!! end
!! test
@@ -9940,7 +9942,7 @@
!! wikitext
{{DISPLAYTITLE:''{{PAGENAME}}''}}
!! html/parsoid
-<meta property="mw:PageProp/displaytitle" content="Main Page" about="#mwt2"
typeof="mw:ExpandedAttrs"
data-parsoid='{"src":"{{DISPLAYTITLE:''{{PAGENAME}}''}}"}'
data-mw='{"attribs":[[{"txt":"content"},{"html":"<i
data-parsoid='{\"dsr\":[15,31,2,2]}'><span about=\"#mwt1\"
typeof=\"mw:Transclusion\"
data-parsoid='{\"pi\":[[]],\"dsr\":[17,29,null,null]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"PAGENAME\",\"function\":\"pagename\"},\"params\":{},\"i\":0}}]}'>Main
Page</span></i>"}]]}'/>
+<meta property="mw:PageProp/displaytitle" content="Main_Page" about="#mwt2"
typeof="mw:ExpandedAttrs"
data-parsoid='{"src":"{{DISPLAYTITLE:''{{PAGENAME}}''}}"}'
data-mw='{"attribs":[[{"txt":"content"},{"html":"<i
data-parsoid='{\"dsr\":[15,31,2,2]}'><span about=\"#mwt1\"
typeof=\"mw:Transclusion\"
data-parsoid='{\"pi\":[[]],\"dsr\":[17,29,null,null]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"PAGENAME\",\"function\":\"pagename\"},\"params\":{},\"i\":0}}]}'>Main_Page</span></i>"}]]}'/>
!! end
!! test
--
To view, visit https://gerrit.wikimedia.org/r/291153
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9eb00fdc854eac7ddfc37520bd6b3cf8913db523
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Arlolra <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits