r8760 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r8759‎ | r8760 | r8761 >
Date:08:46, 30 April 2005
Author:vibber
Status:old
Tags:
Comment:
Correct a bogus test and an outdated test (toc change)
Modified paths:
  • /trunk/phase3/maintenance/parserTests.txt (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/parserTests.txt
@@ -294,9 +294,9 @@
295295 !! test
296296 Definition list with wikilink containing colon
297297 !! input
298 -; [[Wikipedia:FAQ]]: The least-read page on Wikipedia
 298+; [[Help:FAQ]]: The least-read page on Wikipedia
299299 !! result
300 -<dl><dt> <a href="https://www.mediawiki.org/index.php?title=Wikipedia:FAQ&amp;action=edit" class="new" title="Wikipedia:FAQ">Wikipedia:FAQ</a></dt><dd> The least-read page on Wikipedia
 300+<dl><dt> <a href="https://www.mediawiki.org/index.php?title=Help:FAQ&amp;action=edit" class="new" title="Help:FAQ">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
301301 </dd></dl>
302302
303303 !! end
@@ -1809,8 +1809,7 @@
18101810 Some text
18111811 ===Another headline===
18121812 !! result
1813 -<div id='toc'>
1814 -<div id='toctitle'><h2>Table of contents</h2></div>
 1813+<table id='toc' class='toc'><tr><td><div id='toctitle'><h2>Table of contents</h2></div>
18151814 <ul>
18161815 <li class='toclevel-1'><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
18171816 <ul>
@@ -1831,8 +1830,8 @@
18321831 </ul>
18331832 </li>
18341833 </ul>
1835 -</div>
1836 -<script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script><div class='visualClear'></div>
 1834+</td></tr></table>
 1835+<script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
18371836 <div class="editsection" style="float:right;margin-left:5px;">[<a href="https://www.mediawiki.org/index.php?title=Parser_test_script&amp;action=edit&amp;section=1" title="Parser test script">edit</a>]</div><a name="Headline_1"></a><h2> Headline 1 </h2>
18381837 <div class="editsection" style="float:right;margin-left:5px;">[<a href="https://www.mediawiki.org/index.php?title=Parser_test_script&amp;action=edit&amp;section=2" title="Parser test script">edit</a>]</div><a name="Subheadline_1"></a><h3> Subheadline 1 </h3>
18391838 <div class="editsection" style="float:right;margin-left:5px;">[<a href="https://www.mediawiki.org/index.php?title=Parser_test_script&amp;action=edit&amp;section=3" title="Parser test script">edit</a>]</div><a name="Skipping_a_level"></a><h5> Skipping a level </h5>

Status & tagging log