MediaWiki
REL1_24
|
Definition at line 7 of file SanitizerTest.php.
Definition at line 131 of file SanitizerTest.php.
References array().
static SanitizerTest::provideAttributeSupport | ( | ) | [static] |
Test for support or lack of support for specific attributes in the attribute whitelist.
Definition at line 326 of file SanitizerTest.php.
References array().
static SanitizerTest::provideCssCommentsFixtures | ( | ) | [static] |
Definition at line 281 of file SanitizerTest.php.
References array().
static SanitizerTest::provideDeprecatedAttributes | ( | ) | [static] |
Definition at line 253 of file SanitizerTest.php.
References array().
static SanitizerTest::provideHtml5Tags | ( | ) | [static] |
static SanitizerTest::provideTagAttributesToDecode | ( | ) | [static] |
Definition at line 181 of file SanitizerTest.php.
References array(), extensions, is, it, like, see, and some.
SanitizerTest::setUp | ( | ) | [protected] |
Reimplemented from MediaWikiTestCase.
Definition at line 9 of file SanitizerTest.php.
References AutoLoader\loadClass().
SanitizerTest::testAttributeSupport | ( | $ | tag, |
$ | attributes, | ||
$ | expected, | ||
$ | message | ||
) |
provideAttributeSupport Sanitizer::fixTagAttributes
Definition at line 343 of file SanitizerTest.php.
References Sanitizer\fixTagAttributes().
SanitizerTest::testCssCommentsChecking | ( | $ | expected, |
$ | css, | ||
$ | message = '' |
||
) |
provideCssCommentsFixtures Sanitizer::checkCss
Definition at line 274 of file SanitizerTest.php.
References $css, and Sanitizer\checkCss().
Sanitizer::decodeCharReferences
Definition at line 51 of file SanitizerTest.php.
References Sanitizer\decodeCharReferences().
Sanitizer::decodeCharReferences
Definition at line 40 of file SanitizerTest.php.
References Sanitizer\decodeCharReferences().
Sanitizer::decodeCharReferences
Definition at line 18 of file SanitizerTest.php.
References Sanitizer\decodeCharReferences().
Sanitizer::decodeCharReferences
Definition at line 29 of file SanitizerTest.php.
References Sanitizer\decodeCharReferences().
SanitizerTest::testDecodeTagAttributes | ( | $ | expected, |
$ | attributes, | ||
$ | message = '' |
||
) |
provideTagAttributesToDecode Sanitizer::decodeTagAttributes
Definition at line 174 of file SanitizerTest.php.
References Sanitizer\decodeTagAttributes().
SanitizerTest::testDeprecatedAttributesUnaltered | ( | $ | inputAttr, |
$ | inputEl, | ||
$ | message = '' |
||
) |
provideDeprecatedAttributes Sanitizer::fixTagAttributes
Definition at line 246 of file SanitizerTest.php.
References Sanitizer\fixTagAttributes().
Sanitizer::decodeCharReferences
Definition at line 64 of file SanitizerTest.php.
References Sanitizer\decodeCharReferences().
Sanitizer::decodeCharReferences
Definition at line 75 of file SanitizerTest.php.
References Sanitizer\decodeCharReferences().
Sanitizer::decodeCharReferences
Definition at line 86 of file SanitizerTest.php.
References Sanitizer\decodeCharReferences().
SanitizerTest::testRemoveHTMLtags | ( | $ | input, |
$ | output, | ||
$ | msg = null |
||
) |
dataRemoveHTMLtags Sanitizer::removeHTMLtags
Definition at line 165 of file SanitizerTest.php.
References $GLOBALS, $output, and Sanitizer\removeHTMLtags().
SanitizerTest::testRemovehtmltagsOnHtml5Tags | ( | $ | tag, |
$ | escaped | ||
) |
Sanitizer::removeHTMLtags provideHtml5Tags
string | $tag | Name of an HTML5 element (ie: 'video') |
bool | $escaped | Whether sanitizer let the tag in or escape it (ie: '<video>') |
Definition at line 101 of file SanitizerTest.php.
References array(), Sanitizer\removeHTMLtags(), and MediaWikiTestCase\setMwGlobals().