MediaWiki
master
|
Static Public Member Functions | |
static | provideElementsWithAttributesHavingDefaultValues () |
static | provideHtml5InputTypes () |
List of input element types values introduced by HTML5 Full list at https://www.w3.org/TR/html-markup/input.html. More... | |
static | provideInlineScript () |
static | provideSrcSetImages () |
Protected Member Functions | |
setUp () | |
tearDown () | |
Private Attributes | |
$restoreWarnings | |
Definition at line 3 of file HtmlTest.php.
HtmlTest::dataXmlMimeType | ( | ) |
Definition at line 114 of file HtmlTest.php.
|
static |
|
static |
List of input element types values introduced by HTML5 Full list at https://www.w3.org/TR/html-markup/input.html.
Definition at line 597 of file HtmlTest.php.
|
static |
Definition at line 886 of file HtmlTest.php.
|
static |
Definition at line 852 of file HtmlTest.php.
|
protected |
Definition at line 6 of file HtmlTest.php.
References Language\factory().
|
protected |
Definition at line 68 of file HtmlTest.php.
References Language\factory().
HtmlTest::testCanDisableANamespaces | ( | ) |
Definition at line 509 of file HtmlTest.php.
References Html\namespaceSelector().
HtmlTest::testCanFilterOutNamespaces | ( | ) |
Definition at line 464 of file HtmlTest.php.
References Html\namespaceSelector().
HtmlTest::testDropDefaults | ( | $expected, | |
$element, | |||
$attribs, | |||
$message = '' |
|||
) |
Test out Html::element drops or enforces default value Html::dropDefaults provideElementsWithAttributesHavingDefaultValues.
Definition at line 626 of file HtmlTest.php.
References $attribs, and Html\element().
HtmlTest::testElementBasics | ( | ) |
Html::element Html::rawElement Html::openElement Html::closeElement.
Definition at line 94 of file HtmlTest.php.
References Html\element(), and null.
HtmlTest::testErrorBox | ( | ) |
Html::errorBox Html::messageBox
Definition at line 563 of file HtmlTest.php.
References Html\errorBox().
HtmlTest::testExpandAttributes_ArrayOnNonListValueAttribute_ThrowsException | ( | ) |
Html::expandAttributes MWException
Definition at line 340 of file HtmlTest.php.
References Html\expandAttributes().
HtmlTest::testExpandAttributesForBooleans | ( | ) |
Definition at line 163 of file HtmlTest.php.
References Html\expandAttributes(), and null.
HtmlTest::testExpandAttributesForNumbers | ( | ) |
Definition at line 190 of file HtmlTest.php.
References Html\expandAttributes().
HtmlTest::testExpandAttributesForObjects | ( | ) |
Definition at line 206 of file HtmlTest.php.
References Html\expandAttributes().
HtmlTest::testExpandAttributesListValueAttributes | ( | ) |
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 248 of file HtmlTest.php.
References Html\expandAttributes(), and null.
HtmlTest::testExpandAttributesSkipsNullAndFalse | ( | ) |
Definition at line 143 of file HtmlTest.php.
References Html\expandAttributes(), and null.
HtmlTest::testExpandAttributesSpaceSeparatedAttributesWithBoolean | ( | ) |
Test feature added by r96188, let pass attributes values as a PHP array.
Restricted to class,rel, accesskey. Html::expandAttributes
Definition at line 300 of file HtmlTest.php.
References Html\expandAttributes(), null, use, values, and well.
HtmlTest::testExpandAttributesVariousExpansions | ( | ) |
Please note it output a string prefixed with a space! Html::expandAttributes.
Definition at line 218 of file HtmlTest.php.
References Html\expandAttributes().
HtmlTest::testHtmlElementAcceptsNewHtml5TypesInHtml5Mode | ( | $HTML5InputType | ) |
provideHtml5InputTypes Html::element
Definition at line 540 of file HtmlTest.php.
References Html\element().
HtmlTest::testInlineScript | ( | $code, | |
$expected, | |||
$error = false |
|||
) |
provideInlineScript Html::inlineScript
Definition at line 930 of file HtmlTest.php.
References $code, and Html\inlineScript().
HtmlTest::testNamespaceSelector | ( | ) |
Html::namespaceSelector Html::namespaceSelectorOptions
Definition at line 355 of file HtmlTest.php.
References Html\namespaceSelector().
HtmlTest::testOpenElement | ( | ) |
PHPUnit_Framework_Error_Notice given element name with space Html::openElement.
Definition at line 84 of file HtmlTest.php.
References Html\openElement().
HtmlTest::testSrcSet | ( | $images, | |
$expected, | |||
$message | |||
) |
provideSrcSetImages Html::srcSet
Definition at line 882 of file HtmlTest.php.
References Html\srcSet().
HtmlTest::testSuccessBox | ( | ) |
Html::successBox Html::messageBox
Definition at line 582 of file HtmlTest.php.
References Html\successBox().
HtmlTest::testValueIsAuthoritativeInSpaceSeparatedAttributesArrays | ( | ) |
How do we handle duplicate keys in HTML attributes expansion? We could pass a "class" the values: 'GREEN' and [ 'GREEN' => false ] The latter will take precedence.
Feature added by r96188 Html::expandAttributes
Definition at line 325 of file HtmlTest.php.
References Html\expandAttributes().
HtmlTest::testWarningBox | ( | ) |
Html::warningBox Html::messageBox
Definition at line 552 of file HtmlTest.php.
References Html\warningBox().
HtmlTest::testWrapperCheck | ( | ) |
HtmlTest::testWrapperInput | ( | ) |
HtmlTest::testWrapperLabel | ( | ) |
HtmlTest::testWrapperRadio | ( | ) |
HtmlTest::testXmlMimeType | ( | $mimetype, | |
$isXmlMimeType | |||
) |
dataXmlMimeType Html::isXmlMimeType
Definition at line 136 of file HtmlTest.php.
References Html\isXmlMimeType().
|
private |
Definition at line 4 of file HtmlTest.php.