From 58f008ae1ef88c7b53b6517c8ae6b174a233074b Mon Sep 17 00:00:00 2001 From: Subramanya Sastry Date: Fri, 15 Dec 2023 13:46:50 -0600 Subject: [PATCH] Sync up Cite repo tests with Parsoid + (en/dis)able some Parsoid tests * This now aligns with Parsoid commit 0fab92ba453d424aedeadaaa9e1514c42bbd94d1 * Disabled the newly added tests because that Parsoid fixes for the tests haven't been released to vendor to let CI pass these tests. * Re-enabled a previously disabled test. Change-Id: I4ab87d2d486b7a1fef652c50c4f1e79ddfe83ce6 --- tests/parser/citeParserTests.txt | 59 +++++++++++++++++++++++++++++--- 1 file changed, 55 insertions(+), 4 deletions(-) diff --git a/tests/parser/citeParserTests.txt b/tests/parser/citeParserTests.txt index 115171578..de55c0c4a 100644 --- a/tests/parser/citeParserTests.txt +++ b/tests/parser/citeParserTests.txt @@ -2960,16 +2960,16 @@ blah unicode u2028 whitespace3.0 3.1 testUnicodeWhitespaceRef -!! html/parsoid+disabled +!! html/parsoid

test space[1] blah space[1]

test underbar[2] blah underbar[2]

-

test unicode u2028 whitespace[3] -blah unicode u2028 whitespace[3]

-
  1. 1 2 testSpaceRef
  2. 1 2 testUnderbarRef
  3. 1 2 testUnicodeWhitespaceRef
+

test unicode u2028 whitespace[3] +blah unicode u2028 whitespace[3]

+
  1. 1 2 testSpaceRef
  2. 1 2 testUnderbarRef
  3. 1 2 testUnicodeWhitespaceRef
!! end !! test @@ -3051,3 +3051,54 @@ Red links in templated references
  1. Not_existing_article
!! end + + +# ->wt direction fails on this one because the first paragraph/i swallows the second one, +# and the ref is lost +!! test +Broken wikitext making a ref as extended attribute and a duplicated fragment +!! options +parsoid={ + "modes": ["wt2html"] +} +!! wikitext +y> + +z + +!! html/php +

+

z +

    +
  1. y +
  2. +
+!! html/parsoid+disabled +

+ +

z

+
  1. y
+!! end + +!! test +Broken wikitext making a ref as extended attribute and a duplicated fragment (with 2wt tests) +!! wikitext +a + +z + +!! html/php +

a +

z +

    +
  1. y +
  2. +
+!! html/parsoid+disabled +

a

+ +

z

+
  1. y
+!! end + +