r53091 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53090‎ | r53091 | r53092 >
Date:02:05, 11 July 2009
Author:avar
Status:deferred
Tags:
Comment:
We now set zoom= to a default value if it isn't set
Modified paths:
  • /trunk/extensions/SlippyMap/slippyMapParserTests.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/SlippyMap/slippyMapParserTests.txt
@@ -35,7 +35,7 @@
3636 == Invalid ==
3737 <slippymap lon=-21 zoom=12/>
3838 <slippymap lat=64 zoom=12/>
39 -<slippymap lat=64 lon=-21 />
 39+<slippymap lat=64 lon=-21 dummy/>
4040 !! result
4141 <a name="Valid" id="Valid"></a><h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&amp;action=edit&amp;section=1" title="Edit section: Valid">edit</a>]</span> <span class="mw-headline"> Valid </span></h2>
4242 <p>A dummy map
@@ -43,7 +43,7 @@
4444 <a name="Invalid" id="Invalid"></a><h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&amp;action=edit&amp;section=2" title="Edit section: Invalid">edit</a>]</span> <span class="mw-headline"> Invalid </span></h2>
4545 <p><strong class="error">SlippyMap error: Missing <tt>lat</tt> attribute (for the latitude).</strong>
4646 <strong class="error">SlippyMap error: Missing <tt>lon</tt> attribute (for the longitude).</strong>
47 -<strong class="error">SlippyMap error: Missing <tt>zoom</tt> attribute (for the zoom level).</strong>
 47+A dummy map
4848 </p>
4949 !! end
5050

Status & tagging log