MediaWiki
REL1_22
|
tests for includes/Html.php More...
Public Member Functions | |
dataXmlMimeType () | |
testCanDisableANamespaces () | |
testCanFilterOutNamespaces () | |
testDropDefaults ($expected, $element, $attribs, $message= '') | |
Test out Html::element drops or enforces default value Html::dropDefaults provideElementsWithAttributesHavingDefaultValues. | |
testElementBasics () | |
testExpandAttributesForBooleans () | |
testExpandAttributesListValueAttributes () | |
Html::expandAttributes has special features for HTML attributes that use space separated lists and also allows arrays to be used as values. | |
testExpandAttributesSkipsNullAndFalse () | |
testExpandAttributesSpaceSeparatedAttributesWithBoolean () | |
Test feature added by r96188, let pass attributes values as a PHP array. | |
testExpandAttributesVariousExpansions () | |
Test for Html::expandAttributes() Please note it output a string prefixed with a space! | |
testFormValidationBlacklist () | |
testHtmlElementAcceptsNewHtml5TypesInHtml5Mode ($HTML5InputType) | |
provideHtml5InputTypes | |
testNamespaceSelector () | |
testValueIsAuthoritativeInSpaceSeparatedAttributesArrays () | |
How do we handle duplicate keys in HTML attributes expansion? We could pass a "class" the values: 'GREEN' and array( 'GREEN' => false ) The later will take precedence. | |
testXmlMimeType ($mimetype, $isXmlMimeType) | |
dataXmlMimeType | |
Static Public Member Functions | |
static | provideElementsWithAttributesHavingDefaultValues () |
static | provideHtml5InputTypes () |
List of input element types values introduced by HTML5 Full list at http://www.w3.org/TR/html-markup/input.html. | |
Protected Member Functions | |
setUp () | |
setUp and tearDown should (where significant) happen in reverse order. |
tests for includes/Html.php
Definition at line 4 of file HtmlTest.php.
static HtmlTest::provideElementsWithAttributesHavingDefaultValues | ( | ) | [static] |
Definition at line 464 of file HtmlTest.php.
static HtmlTest::provideHtml5InputTypes | ( | ) | [static] |
List of input element types values introduced by HTML5 Full list at http://www.w3.org/TR/html-markup/input.html.
Definition at line 431 of file HtmlTest.php.
HtmlTest::setUp | ( | ) | [protected] |
setUp and tearDown should (where significant) happen in reverse order.
Reimplemented from MediaWikiTestCase.
Definition at line 6 of file HtmlTest.php.
References array(), Language\factory(), and MediaWikiTestCase\setMwGlobals().
Definition at line 389 of file HtmlTest.php.
Definition at line 367 of file HtmlTest.php.
HtmlTest::testDropDefaults | ( | $ | expected, |
$ | element, | ||
$ | attribs, | ||
$ | message = '' |
||
) |
Test out Html::element drops or enforces default value Html::dropDefaults provideElementsWithAttributesHavingDefaultValues.
Definition at line 460 of file HtmlTest.php.
References $attribs, and Html\element().
Definition at line 44 of file HtmlTest.php.
References array(), Html\element(), and MediaWikiTestCase\setMwGlobals().
Definition at line 114 of file HtmlTest.php.
Html::expandAttributes has special features for HTML attributes that use space separated lists and also allows arrays to be used as values.
Definition at line 202 of file HtmlTest.php.
Definition at line 97 of file HtmlTest.php.
Test feature added by r96188, let pass attributes values as a PHP array.
Restricted to class,rel, accesskey.
Definition at line 253 of file HtmlTest.php.
Test for Html::expandAttributes() Please note it output a string prefixed with a space!
Definition at line 150 of file HtmlTest.php.
Definition at line 620 of file HtmlTest.php.
References array(), and Html\expandAttributes().
HtmlTest::testHtmlElementAcceptsNewHtml5TypesInHtml5Mode | ( | $ | HTML5InputType | ) |
provideHtml5InputTypes
Definition at line 419 of file HtmlTest.php.
References array(), and Html\element().
Definition at line 288 of file HtmlTest.php.
How do we handle duplicate keys in HTML attributes expansion? We could pass a "class" the values: 'GREEN' and array( 'GREEN' => false ) The later will take precedence.
Feature added by r96188
Definition at line 277 of file HtmlTest.php.
HtmlTest::testXmlMimeType | ( | $ | mimetype, |
$ | isXmlMimeType | ||
) |
dataXmlMimeType
Definition at line 93 of file HtmlTest.php.