http://www.mediawiki.org/wiki/Special:Code/MediaWiki/76222
Revision: 76222 Author: hashar Date: 2010-11-06 22:43:55 +0000 (Sat, 06 Nov 2010) Log Message: ----------- Test for r67549 (bug 23797) Modified Paths: -------------- trunk/phase3/maintenance/tests/phpunit/includes/XmlTest.php Modified: trunk/phase3/maintenance/tests/phpunit/includes/XmlTest.php =================================================================== --- trunk/phase3/maintenance/tests/phpunit/includes/XmlTest.php 2010-11-06 22:34:57 UTC (rev 76221) +++ trunk/phase3/maintenance/tests/phpunit/includes/XmlTest.php 2010-11-06 22:43:55 UTC (rev 76222) @@ -32,6 +32,13 @@ ); } + function testElementInputCanHaveAValueOfZero() { + $this->assertEquals( + '<input name="name" value="0" />', + Xml::input( 'name', false, 0 ), + 'Input with a value of 0 (bug 23797)' + ); + } function testElementEscaping() { $this->assertEquals( '<element>hello <there> you & you</element>', _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs