diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 2edec6a..a45baf9 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -3,6 +3,12 @@ poem !! endhooks +!! article +Template:1x +!! text +{{{1}}} +!! endarticle + #Regression tests for existing functionality, to ensure nothing was broken. !! test @@ -21,10 +27,15 @@ a
test

+!! html/parsoid +

this
+is
+a
+test

!! end !!test - with recursive parsing + with recursive parsing !!wikitext this ''is'' a '''test''' @@ -34,11 +45,13 @@ this ''is'' a '''test'''

this is a test

+!! html/parsoid +

this is a test

!!end - +## FIXME: Is Parsoid output the right output wrt how it actually renders? !!test - with leading whitespace + with leading whitespace !!wikitext @@ -51,8 +64,13 @@ this ''is'' a '''test'''    test

+!! html/parsoid +


+  test

+
!!end +## FIXME: Parsoid adds

wrapper around the THML
tag !!test Horizontal rule !!wikitext @@ -69,32 +87,14 @@ text

text

+!! html/parsoid +

some

+
+

text

!!end -#test for new poem/nowiki feature; should fail without new enhancement. -!! test 2 -example of without -!!options -disabled -!! wikitext - -this -is -a -test - -!! html/php+tidy -

-this -is -a -test - -

-!! end - !! test - nested +nested !! wikitext this @@ -112,10 +112,17 @@ test

+!! html/parsoid +


+this
+is
+a
+test
+

!!end -!! test 5 - nested with formatting +!! test +nested with formatting !! wikitext this @@ -133,6 +140,13 @@ test

+!! html/parsoid +


+this
+'''is'''
+a
+test
+

!! end !! test @@ -152,4 +166,100 @@ Through caverns measureless to man
Down to a sunless sea.

+!! html/parsoid +

A stately pleasure-dome decree:
+Where Alph, the sacred river, ran
+Through caverns measureless to man
+Down to a sunless sea.

+!! end + +# FIXME: This test should be removed once we stop span-wrapping entities in nowikis +!! test +Verify Parsoid handles entities in nowikis in poem correctly +!! wikitext + +L1 +L2 + +Not a ref +foo & bar +[[Not a link]] + +L3 + +!! html/parsoid +

L1
+L2
+
+<ref>Not a ref</ref>
+foo & bar
+[[Not a link]]
+
+L3

+!! end + +!! test +UTF-8 sequences in extension tags (T231945) +!! wikitext + +{{1x|ၶိူဝ်းႁဝ်ၶိူဝ်းရႃႇၸႃႇ}} + +!! html/php+tidy +
+

ၶိူဝ်းႁဝ်ၶိူဝ်းရႃႇၸႃႇ +

+
+!! html/parsoid +

ၶိူဝ်းႁဝ်ၶိူဝ်းရႃႇၸႃႇ

+!! end + +!! test +Multi-line poems with indentation use spans and breaks correctly (T235709) +!! wikitext + +''CONGREGATI'' +:'''EX TOTO ORBE''' +::'''''MATHEMATICI''''' + +!! html/parsoid +

CONGREGATI
+EX TOTO ORBE
+MATHEMATICI

+!!html/php+tidy +
+

CONGREGATI
+EX TOTO ORBE
+MATHEMATICI +

+
+!! end + +!! test +Poem with class +!! wikitext + +hi ho + +!! html/php+tidy +
+

hi ho +

+
+!! html/parsoid +

hi ho

+!! end + +!! test +Poem with empty class +!! wikitext + +hi ho + +!! html/php+tidy +
+

hi ho +

+
+!! html/parsoid +

hi ho

!! end