Sync up with Parsoid parserTests.txt
authorArlo Breault <abreault@wikimedia.org>
Thu, 12 Jul 2018 15:18:46 +0000 (11:18 -0400)
committerArlo Breault <abreault@wikimedia.org>
Thu, 12 Jul 2018 15:18:54 +0000 (11:18 -0400)
This now aligns with Parsoid commit 564b5d3a37580912793b81a021011e3e33d1219a

Change-Id: I8203797d6d6383a6a2d58d6e6f9a7d46b5c788f3

tests/parser/parserTests.txt

index c34d408..0ae3f53 100644 (file)
@@ -12866,6 +12866,7 @@ Templates: Block Tags: 2. Back-to-back template uses
 ## This is an edge case relating to paragraph wrapping.
 ## Note that Parsoid fails to match Remex because it's using the closing tag
 ## as a heuristic to determine if it's in a block, rather than SAX based events.
+## And Parsoid drops empty elements in templates.
 !! test
 Templates: Correctly encapsulate templates producing </p> tag without a corresponding <p> tag
 !! wikitext
@@ -12877,7 +12878,7 @@ b</p>}}
 b</p><p class="mw-empty-elt"></p>
 !! html/parsoid
 <p about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"a\nb&lt;/p>"}},"i":0}}]}'>a</p><span about="#mwt1">
-</span><span about="#mwt1">b</span><p about="#mwt1" data-parsoid='{"autoInsertedStart":true,"stx":"html"}'></p>
+</span><span about="#mwt1">b</span>
 !! end
 
 !!test