Merge "Add a parserTest documenting interaction of tabs and preformatted text."
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 16 Aug 2013 18:08:02 +0000 (18:08 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 16 Aug 2013 18:08:02 +0000 (18:08 +0000)
1  2 
tests/parser/parserTests.txt

@@@ -447,9 -447,9 +447,9 @@@ Italics and bol
  
  !! end
  
 -# this example taken from the simple/Moon article
 +# this example taken from the [[simple:Moon]] article (bug 47326)
  !! test
 -Italics and possessives
 +Italics and possessives (1)
  !! input
  obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
  !! result
  </p>
  !! end
  
 +# this example taken from [[en:Flaming Pie]] (bug 49926)
 +!! test
 +Italics and possessives (2)
 +!! input
 +'''''Flaming Pie''''' is ... released in 1997. In ''Flaming Pie'''s liner notes
 +!! result
 +<p><i><b>Flaming Pie</b></i> is ... released in 1997. In <i>Flaming Pie'</i>s liner notes
 +</p>
 +!! end
 +
 +# this example taken from [[en:Dictionary]] (bug 49926)
 +!! test
 +Italics and possessives (3)
 +!! input
 +The first monolingual dictionary written in a Romance language was ''Sebastián Covarrubias''' ''Tesoro de la lengua castellana o española'', published in 1611 in Madrid. In 1612 the first edition of the ''Vocabolario dell'[[Accademia della Crusca]]'', for Italian, was published. In 1690 in Rotterdam was published, posthumously, the ''Dictionnaire Universel''.
 +!! result
 +<p>The first monolingual dictionary written in a Romance language was <i>Sebastián Covarrubias'</i> <i>Tesoro de la lengua castellana o española</i>, published in 1611 in Madrid. In 1612 the first edition of the <i>Vocabolario dell'<a href="/index.php?title=Accademia_della_Crusca&amp;action=edit&amp;redlink=1" class="new" title="Accademia della Crusca (page does not exist)">Accademia della Crusca</a></i>, for Italian, was published. In 1690 in Rotterdam was published, posthumously, the <i>Dictionnaire Universel</i>.
 +</p>
 +!! end
 +
 +
  ###
  ### 2-quote opening sequence tests
  ###
@@@ -1331,6 -1310,22 +1331,22 @@@ And a <a href="/wiki/Main_Page" title="
  </pre>
  !! end
  
+ !! test
+ Tabs don't trigger preformatted text
+ !! input
+       This is not
+        preformatted text.
+  This is preformatted text.
+       So is this.
+ !! result
+ <p>   This is not
+        preformatted text.
+ </p>
+ <pre>This is preformatted text.
+       So is this.
+ </pre>
+ !! end
  !! test
  Ident preformatting with inline content
  !! input