X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22sites_tous%22%29%20.%20%22?a=blobdiff_plain;f=tests%2Fparser%2FparserTests.txt;h=05afefacff3ecc64c3e1ad7146976d20ea0035b2;hb=a0dffb08cec2a2f0d6645852a6526b2742edbcb4;hp=f98044b57c098ee79e3db86c9b9cbe5abc2fe61a;hpb=6b97d969c3a1c4f7c3565c980383ce977062c0e2;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index f98044b57c..05afefacff 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -534,8 +534,8 @@ parsoid=wt2html !! config wgFragmentMode=[ 'html5', 'legacy' ] !! wikitext -== A B -C == +==A B +C== !! html/php

A B @@ -543,8 +543,8 @@ C[ A B -C

+C">A B +C !! end !! test @@ -560,48 +560,48 @@ http://fr.wikipedia.org/wiki/🍺 !! test Simple list !! wikitext -* Item 1 -* Item 2 +*Item 1 +*Item 2 !! html - + !! end !! test Italics and bold !! wikitext -* plain -* plain''italic''plain -* plain''italic''plain''italic''plain -* plain'''bold'''plain -* plain'''bold'''plain'''bold'''plain -* plain''italic''plain'''bold'''plain -* plain'''bold'''plain''italic''plain -* plain''italic'''bold-italic'''italic''plain -* plain'''bold''bold-italic''bold'''plain -* plain'''''bold-italic'''italic''plain -* plain'''''bold-italic''bold'''plain -* plain''italic'''bold-italic'''''plain -* plain'''bold''bold-italic'''''plain -* plain l'''italic''plain -* plain l''''bold''' plain -!! html - +*plain +*plain''italic''plain +*plain''italic''plain''italic''plain +*plain'''bold'''plain +*plain'''bold'''plain'''bold'''plain +*plain''italic''plain'''bold'''plain +*plain'''bold'''plain''italic''plain +*plain''italic'''bold-italic'''italic''plain +*plain'''bold''bold-italic''bold'''plain +*plain'''''bold-italic'''italic''plain +*plain'''''bold-italic''bold'''plain +*plain''italic'''bold-italic'''''plain +*plain'''bold''bold-italic'''''plain +*plain l'''italic''plain +*plain l''''bold''' plain +!! html + !! end @@ -1247,32 +1247,33 @@ Text-level semantic html elements in wikitext !! test Ruby markup (W3C-style) !! wikitext -; Mono-ruby for individual base characters -: 日に本ほん語ご -; Group ruby -: 今日きょう -; Jukugo ruby -: 法華経ほけきょう -; Inline ruby -: 東京(とうきょう) -; Double-sided ruby -: 旧金山jiùjīnshānSan Francisco +;Mono-ruby for individual base characters +:日に本ほん語ご +;Group ruby +:今日きょう +;Jukugo ruby +:法華経ほけきょう +;Inline ruby +:東京(とうきょう) +;Double-sided ruby +:旧金山jiùjīnshānSan Francisco + ♥HeartCœur ☘ShamrockTrèfle ✶StarÉtoile !! html -
Mono-ruby for individual base characters
-
日に本ほん語ご
-
Group ruby
-
今日きょう
-
Jukugo ruby
-
法華経ほけきょう
-
Inline ruby
-
東京(とうきょう)
-
Double-sided ruby
-
旧金山jiùjīnshānSan Francisco
+
Mono-ruby for individual base characters
+
日に本ほん語ご
+
Group ruby
+
今日きょう
+
Jukugo ruby
+
法華経ほけきょう
+
Inline ruby
+
東京(とうきょう)
+
Double-sided ruby
+
旧金山jiùjīnshānSan Francisco

♥HeartCœur ☘ShamrockTrèfle @@ -2751,7 +2752,7 @@ Templates: Strip leading and trailing whitespace from named-param values

b

c

- + !! end @@ -2772,7 +2773,7 @@ Templates: Don't strip whitespace from positional-param values e}} {{echo| -* f}} +*f}} {{echo| }}g @@ -2792,7 +2793,7 @@ Templates: Don't strip whitespace from positional-param values


- +


g
@@ -3168,15 +3169,15 @@ c
 2c. Indent-Pre and tables (T44252)
 !! wikitext
 {|
- |+ foo
- !  | bar
+ |+foo
+ !  |bar
 |}
 !! html
 
-
-
foo +foo
bar +bar
!!end @@ -3186,14 +3187,14 @@ c !! wikitext a {| - | b + |b |} !! html/php
a
 
-
b +b
!! html/parsoid @@ -3699,19 +3700,19 @@ HTML-pre: 3: other wikitext !! test Simple definition !! wikitext -; name : Definition +;name :Definition !! html -
name 
-
Definition
+
name 
+
Definition
!! end !! test Definition list for indentation only !! wikitext -: Indented text +:Indented text !! html -
Indented text
+
Indented text
!! end @@ -3728,10 +3729,10 @@ Definition list with no space !! test Definition list with URL link !! wikitext -; http://example.com/ : definition +;http://example.com/ :definition !! html -
http://example.com/ 
-
definition
+
http://example.com/ 
+
definition
!! end @@ -3748,10 +3749,10 @@ Definition list with bracketed URL link !! test Definition list with wikilink containing colon !! wikitext -; [[Help:FAQ]]: The least-read page on Wikipedia +; [[Help:FAQ]]:The least-read page on Wikipedia !! html -
Help:FAQ
-
The least-read page on Wikipedia
+
Help:FAQ
+
The least-read page on Wikipedia
!! end @@ -3759,13 +3760,13 @@ Definition list with wikilink containing colon !! test Definition list with news link containing colon !! wikitext -; news:alt.wikipedia.rox: This isn't even a real newsgroup! +;news:alt.wikipedia.rox: This isn't even a real newsgroup! !! html/php -
news:alt.wikipedia.rox
-
This isn't even a real newsgroup!
+
news:alt.wikipedia.rox
+
This isn't even a real newsgroup!
!! html/parsoid -
news:alt.wikipedia.rox
This isn't even a real newsgroup!
+
news:alt.wikipedia.rox
This isn't even a real newsgroup!
!! end !! test @@ -3773,17 +3774,17 @@ Malformed definition list with colon !! wikitext ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop !! html -
news:alt.wikipedia.rox -- don't crash or enter an infinite loop
+
news:alt.wikipedia.rox -- don't crash or enter an infinite loop
!! end !! test Definition lists: colon in external link text !! wikitext -; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up +;[http://www.wikipedia2.org/ Wikipedia :The Next Generation] :OK, I made that up !! html -
Wikipedia : The Next Generation
-
OK, I made that up
+
Wikipedia :The Next Generation 
+
OK, I made that up
!! end @@ -3799,30 +3800,30 @@ Definition lists: colon in HTML attribute !! test Definition lists: self-closed tag !! wikitext -;one
two : two-line fun +;one
two :two-line fun !! html
one
two 
-
two-line fun
+
two-line fun
!! end !! test Definition lists: ignore colons inside tags !! wikitext -;one two : tag fun::: def +;one two : tag fun:::def !! html
one two : tag fun::
-
def
+
def
!! end !! test Definition lists: excess closed tags !! wikitext -;onetwo : bad tag fun +;onetwo :bad tag fun !! html/php+tidy
onetwo 
-
bad tag fun
+
bad tag fun
!! html/parsoid
onetwo
@@ -3853,14 +3854,14 @@ T13748: Literal closing tags Definition and unordered list using wiki syntax nested in unordered list using html tags. !! wikitext !! html !! end @@ -3868,10 +3869,11 @@ Definition and unordered list using wiki syntax nested in unordered list using h !! test Definition list with empty definition and following paragraph !! wikitext -; term: +;term: + Paragraph text !! html -
term
+
term

Paragraph text

@@ -3957,6 +3959,29 @@ should be left alone

!! end +!! test +Definition Lists: Hacky use to indent tables (with content following table) +!! wikitext +:{| +|foo +|bar +|} this text should be part of the dl +!! html/php+tidy +
+ + +
foo +bar +
this text should be part of the dl
+!! html/parsoid +
+ + +
foo +bar +
this text should be part of the dl
+!! end + !! test Definition Lists: Hacky use to indent tables, with comments (T65979) !! wikitext @@ -4049,22 +4074,24 @@ Table / list interaction: indented table with lists in table contents !! wikitext :{| |- -| a -* b +|a + +*b |- -| c -* d +|c + +*d |} !! html
- -
a -
  • b
+
a +
  • b
c -
  • d
+
c +
  • d
!! end @@ -4172,30 +4199,30 @@ Definition Lists: Nesting: Test 4 !! test Definition Lists: Mixed Lists: Test 1 !! wikitext -:;* foo -::* bar -:; baz +:;*foo +::*bar +:;baz !! html/php -
  • foo
  • -
  • bar
-
baz
+
  • foo
  • +
  • bar
+
baz
!! html/php+tidy -
  • foo
  • -
  • bar
-
baz
+
  • foo
  • +
  • bar
+
baz
!! html/parsoid
    -
  • foo +
  • foo
    -
  • bar +
  • bar
-
baz
+
baz
!! end @@ -4203,11 +4230,11 @@ Definition Lists: Mixed Lists: Test 1 !! test Definition Lists: Mixed Lists: Test 2 !! wikitext -*: d1 -*: d2 +*:d1 +*:d2 !! html -
  • d1
    -
    d2
+
  • d1
    +
    d2
!! end @@ -4215,11 +4242,11 @@ Definition Lists: Mixed Lists: Test 2 !! test Definition Lists: Mixed Lists: Test 3 !! wikitext -*::: d1 -*::: d2 +*:::d1 +*:::d2 !! html -
  • d1
    -
    d2
+
  • d1
    +
    d2
!! end @@ -4242,10 +4269,10 @@ Definition Lists: Mixed Lists: Test 4 Definition Lists: Mixed Lists: Test 5 !! wikitext *:d1 -*:: d2 +*::d2 !! html
  • d1 -
    d2
+
d2
!! end @@ -4254,10 +4281,10 @@ Definition Lists: Mixed Lists: Test 5 Definition Lists: Mixed Lists: Test 6 !! wikitext #*:d1 -#*::: d3 +#*:::d3 !! html
    • d1 -
      d3
+
d3
!! end @@ -4265,11 +4292,11 @@ Definition Lists: Mixed Lists: Test 6 !! test Definition Lists: Mixed Lists: Test 7 !! wikitext -:* d1 -:* d2 +:*d1 +:*d2 !! html -
  • d1
  • -
  • d2
+
  • d1
  • +
  • d2
!! end @@ -4277,11 +4304,11 @@ Definition Lists: Mixed Lists: Test 7 !! test Definition Lists: Mixed Lists: Test 8 !! wikitext -:* d1 -::* d2 +:*d1 +::*d2 !! html -
  • d1
-
  • d2
+
  • d1
+
  • d2
!! end @@ -4382,10 +4409,10 @@ Definition Lists: Mixed Lists: Test 12 !! test Definition Lists: Weird Ones: Test 1 !! wikitext -*#;*::;; foo : bar (who uses this?) +*#;*::;;foo :bar (who uses this?) !! html/php+tidy - + !! html/parsoid