MediaWiki
REL1_24
|
tests for includes/Html.php More...
tests for includes/Html.php
Definition at line 4 of file HtmlTest.php.
static HtmlTest::provideElementsWithAttributesHavingDefaultValues | ( | ) | [static] |
Definition at line 525 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 492 of file HtmlTest.php.
HtmlTest::setUp | ( | ) | [protected] |
Reimplemented from MediaWikiTestCase.
Definition at line 6 of file HtmlTest.php.
References array(), Language\factory(), and MediaWikiTestCase\setMwGlobals().
Definition at line 449 of file HtmlTest.php.
Definition at line 427 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 521 of file HtmlTest.php.
Definition at line 47 of file HtmlTest.php.
References array(), Html\element(), and MediaWikiTestCase\setMwGlobals().
Html::expandAttributes MWException
Definition at line 334 of file HtmlTest.php.
HTML::expandAttributes
Definition at line 125 of file HtmlTest.php.
HTML::expandAttributes
Definition at line 160 of file HtmlTest.php.
HTML::expandAttributes
Definition at line 176 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 242 of file HtmlTest.php.
HTML::expandAttributes
Definition at line 104 of file HtmlTest.php.
Test feature added by r96188, let pass attributes values as a PHP array.
Restricted to class,rel, accesskey. Html::expandAttributes
Definition at line 294 of file HtmlTest.php.
Test for Html::expandAttributes() Please note it output a string prefixed with a space! Html::expandAttributes.
Definition at line 189 of file HtmlTest.php.
Definition at line 685 of file HtmlTest.php.
HtmlTest::testHtmlElementAcceptsNewHtml5TypesInHtml5Mode | ( | $ | HTML5InputType | ) |
provideHtml5InputTypes Html::element
Definition at line 480 of file HtmlTest.php.
Definition at line 348 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 Html::expandAttributes
Definition at line 319 of file HtmlTest.php.
Definition at line 724 of file HtmlTest.php.
Definition at line 711 of file HtmlTest.php.
Definition at line 760 of file HtmlTest.php.
Definition at line 742 of file HtmlTest.php.
HtmlTest::testXmlMimeType | ( | $ | mimetype, |
$ | isXmlMimeType | ||
) |
dataXmlMimeType Html::isXmlMimeType
Definition at line 97 of file HtmlTest.php.