MediaWiki  REL1_21
HtmlTest Class Reference

tests for includes/Html.php More...

Inheritance diagram for HtmlTest:
Collaboration diagram for HtmlTest:

List of all members.

Public Member Functions

 provideHtml5InputTypes ()
 List of input element types values introduced by HTML5 Full list at http://www.w3.org/TR/html-markup/input.html.
 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.

Static Public Member Functions

static provideElementsWithAttributesHavingDefaultValues ()

Protected Member Functions

 setUp ()
 setUp and tearDown should (where significant) happen in reverse order.

Detailed Description

tests for includes/Html.php

Definition at line 4 of file HtmlTest.php.


Member Function Documentation

Definition at line 453 of file HtmlTest.php.

References $ret, array(), and as.

List of input element types values introduced by HTML5 Full list at http://www.w3.org/TR/html-markup/input.html.

Definition at line 421 of file HtmlTest.php.

References array(), and as.

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 379 of file HtmlTest.php.

References array(), and Html\namespaceSelector().

Definition at line 357 of file HtmlTest.php.

References array(), and Html\namespaceSelector().

HtmlTest::testDropDefaults ( expected,
element,
attribs,
message = '' 
)

Test out Html::element drops or enforces default value Html::dropDefaults provideElementsWithAttributesHavingDefaultValues.

Definition at line 449 of file HtmlTest.php.

References $attribs, and Html\element().

Definition at line 45 of file HtmlTest.php.

References array(), Html\element(), and global.

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 192 of file HtmlTest.php.

References array(), and Html\expandAttributes().

Test feature added by r96188, let pass attributes values as a PHP array.

Restricted to class,rel, accesskey.

Definition at line 243 of file HtmlTest.php.

References array(), Html\expandAttributes(), use, values, and well.

Test for Html::expandAttributes() Please note it output a string prefixed with a space!

Definition at line 138 of file HtmlTest.php.

References array(), Html\expandAttributes(), and global.

Definition at line 608 of file HtmlTest.php.

References array(), and Html\expandAttributes().

provideHtml5InputTypes

Definition at line 409 of file HtmlTest.php.

References array(), and Html\element().

Definition at line 278 of file HtmlTest.php.

References array(), and Html\namespaceSelector().

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 267 of file HtmlTest.php.

References array(), and Html\expandAttributes().


The documentation for this class was generated from the following file: