Merge "Update OOjs UI to v0.11.4"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 9 Jun 2015 22:44:00 +0000 (22:44 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 9 Jun 2015 22:44:00 +0000 (22:44 +0000)
includes/Html.php
tests/phpunit/includes/MimeMagicTest.php
tests/phpunit/includes/SanitizerValidateEmailTest.php
tests/phpunit/includes/TitleArrayFromResultTest.php
tests/phpunit/includes/XmlJsTest.php

index 6da70b1..235096d 100644 (file)
@@ -715,6 +715,9 @@ class Html {
                if ( in_array( $type, array( 'text', 'search', 'email', 'password', 'number' ) ) ) {
                        $attribs = self::getTextInputAttributes( $attribs );
                }
+               if ( in_array( $type, array( 'button', 'reset', 'submit' ) ) ) {
+                       $attribs = self::buttonAttributes( $attribs );
+               }
                return self::element( 'input', $attribs );
        }
 
index 742d382..3c45f30 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-class MimeMagicTest extends MediaWikiTestCase {
+class MimeMagicTest extends PHPUnit_Framework_TestCase {
 
        /** @var MimeMagic */
        private $mimeMagic;
index 14911f0..f47e74e 100644 (file)
@@ -5,7 +5,7 @@
  * @todo all test methods in this class should be refactored and...
  *    use a single test method and a single data provider...
  */
-class SanitizerValidateEmailTest extends MediaWikiTestCase {
+class SanitizerValidateEmailTest extends PHPUnit_Framework_TestCase {
 
        private function checkEmail( $addr, $expected = true, $msg = '' ) {
                if ( $msg == '' ) {
index 0f7069a..6654a5b 100644 (file)
@@ -4,7 +4,7 @@
  * @author Adam Shorland
  * @covers TitleArrayFromResult
  */
-class TitleArrayFromResultTest extends MediaWikiTestCase {
+class TitleArrayFromResultTest extends PHPUnit_Framework_TestCase {
 
        private function getMockResultWrapper( $row = null, $numRows = 1 ) {
                $resultWrapper = $this->getMockBuilder( 'ResultWrapper' )
index 0dbb010..21819b7 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * @group Xml
  */
-class XmlJs extends MediaWikiTestCase {
+class XmlJs extends PHPUnit_Framework_TestCase {
 
        /**
         * @covers XmlJsCode::__construct