MediaWiki
REL1_21
|
Public Member Functions | |
provideAttributeSupport () | |
Test for support or lack of support for specific attributes in the attribute whitelist. | |
provideHtml5Tags () | |
Provide HTML5 tags. | |
provideTagAttributesToDecode () | |
testAttributeSupport ($tag, $attributes, $expected, $message) | |
provideAttributeSupport | |
testCssCommentsChecking ($expected, $css, $message= '') | |
provideCssCommentsFixtures Sanitizer::checkCss | |
testDecodeMixedComplexEntities () | |
testDecodeMixedEntities () | |
testDecodeNamedEntities () | |
testDecodeNumericEntities () | |
testDecodeTagAttributes ($expected, $attributes, $message= '') | |
provideTagAttributesToDecode Sanitizer::decodeTagAttributes | |
testDeprecatedAttributesUnaltered ($inputAttr, $inputEl, $message= '') | |
provideDeprecatedAttributes Sanitizer::fixTagAttributes | |
testInvalidAmpersand () | |
testInvalidEntities () | |
testInvalidNumberedEntities () | |
testRemovehtmltagsOnHtml5Tags ($tag, $escaped) | |
Sanitizer::removeHTMLtags provideHtml5Tags | |
testSelfClosingTag () | |
Static Public Member Functions | |
static | provideCssCommentsFixtures () |
static | provideDeprecatedAttributes () |
Protected Member Functions | |
setUp () | |
setUp and tearDown should (where significant) happen in reverse order. |
Definition at line 3 of file SanitizerTest.php.
Test for support or lack of support for specific attributes in the attribute whitelist.
Definition at line 232 of file SanitizerTest.php.
References array().
static SanitizerTest::provideCssCommentsFixtures | ( | ) | [static] |
Definition at line 205 of file SanitizerTest.php.
References array().
static SanitizerTest::provideDeprecatedAttributes | ( | ) | [static] |
Definition at line 177 of file SanitizerTest.php.
References array().
SanitizerTest::setUp | ( | ) | [protected] |
setUp and tearDown should (where significant) happen in reverse order.
Reimplemented from MediaWikiTestCase.
Definition at line 5 of file SanitizerTest.php.
References AutoLoader\loadClass().
SanitizerTest::testAttributeSupport | ( | $ | tag, |
$ | attributes, | ||
$ | expected, | ||
$ | message | ||
) |
provideAttributeSupport
Definition at line 243 of file SanitizerTest.php.
References Sanitizer\fixTagAttributes().
SanitizerTest::testCssCommentsChecking | ( | $ | expected, |
$ | css, | ||
$ | message = '' |
||
) |
provideCssCommentsFixtures Sanitizer::checkCss
Definition at line 198 of file SanitizerTest.php.
References $css, and Sanitizer\checkCss().
Definition at line 35 of file SanitizerTest.php.
References Sanitizer\decodeCharReferences().
Definition at line 27 of file SanitizerTest.php.
References Sanitizer\decodeCharReferences().
Definition at line 11 of file SanitizerTest.php.
References Sanitizer\decodeCharReferences().
Definition at line 19 of file SanitizerTest.php.
References Sanitizer\decodeCharReferences().
SanitizerTest::testDecodeTagAttributes | ( | $ | expected, |
$ | attributes, | ||
$ | message = '' |
||
) |
provideTagAttributesToDecode Sanitizer::decodeTagAttributes
Definition at line 121 of file SanitizerTest.php.
References Sanitizer\decodeTagAttributes().
SanitizerTest::testDeprecatedAttributesUnaltered | ( | $ | inputAttr, |
$ | inputEl, | ||
$ | message = '' |
||
) |
provideDeprecatedAttributes Sanitizer::fixTagAttributes
Definition at line 170 of file SanitizerTest.php.
References Sanitizer\fixTagAttributes().
Definition at line 45 of file SanitizerTest.php.
References Sanitizer\decodeCharReferences().
Definition at line 53 of file SanitizerTest.php.
References Sanitizer\decodeCharReferences().
Definition at line 61 of file SanitizerTest.php.
References Sanitizer\decodeCharReferences().
SanitizerTest::testRemovehtmltagsOnHtml5Tags | ( | $ | tag, |
$ | escaped | ||
) |
Sanitizer::removeHTMLtags provideHtml5Tags
String | $tag | Name of an HTML5 element (ie: 'video') |
Boolean | $escaped | Wheter sanitizer let the tag in or escape it (ie: '<video>') |
Definition at line 72 of file SanitizerTest.php.
References array(), Sanitizer\removeHTMLtags(), and MediaWikiTestCase\setMwGlobals().
Definition at line 104 of file SanitizerTest.php.
References array(), Sanitizer\removeHTMLtags(), and MediaWikiTestCase\setMwGlobals().