X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FHtmlTest.php;h=f3d49161a58434dcdae5af609771d7886b08100e;hb=0e25b050286bed143ed5a23e87d5543fe71ce5dd;hp=e2ee19341669ad8795c90ee4e445eb53beecc8a0;hpb=ea42d90053b36cef47f318a1d50c18dfafc6b7b8;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/HtmlTest.php b/tests/phpunit/includes/HtmlTest.php index e2ee193416..f3d49161a5 100644 --- a/tests/phpunit/includes/HtmlTest.php +++ b/tests/phpunit/includes/HtmlTest.php @@ -41,6 +41,9 @@ class HtmlTest extends MediaWikiTestCase { /** * @covers Html::element + * @covers Html::rawElement + * @covers Html::openElement + * @covers Html::closeElement */ public function testElementBasics() { $this->assertEquals( @@ -302,6 +305,7 @@ class HtmlTest extends MediaWikiTestCase { /** * @covers Html::namespaceSelector + * @covers Html::namespaceSelectorOptions */ public function testNamespaceSelector() { $this->assertEquals( @@ -584,7 +588,7 @@ class HtmlTest extends MediaWikiTestCase { ]; # ', 'button', [ 'type' => 'submit' ], 'According to standard the default type is "submit". ' @@ -633,35 +637,6 @@ class HtmlTest extends MediaWikiTestCase { return $ret; } - /** - * @covers Html::expandAttributes - */ - public function testFormValidationBlacklist() { - $this->assertEmpty( - Html::expandAttributes( [ - 'min' => 1, - 'max' => 100, - 'pattern' => 'abc', - 'required' => true, - 'step' => 2 - ] ), - 'Blacklist form validation attributes.' - ); - $this->assertEquals( - ' step="any"', - Html::expandAttributes( - [ - 'min' => 1, - 'max' => 100, - 'pattern' => 'abc', - 'required' => true, - 'step' => 'any' - ], - 'Allow special case "step=any".' - ) - ); - } - public function testWrapperInput() { $this->assertEquals( '',