java.lang.Object |
↳ |
XMLTestCase |
|
↳ |
com.atlassian.confluence.content.render.xhtml.TestStorageXhtmlCleaner |
Class Overview
Tests for the storage format cleaner
Summary
Protected Methods |
void
|
setUp()
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Constants
public
static
final
String
ANTISAMY_STORAGE_FORMAT_POLICY
Constant Value:
"com/atlassian/confluence/content/render/xhtml/antisamy-confluence-storage.xml"
Fields
Public Constructors
public
TestStorageXhtmlCleaner
()
Public Methods
public
static
void
assertNotModifiedByCleaning
(String xmlFragment, XMLTestCase testCase)
public
void
testAcAnchorAllowSpaceAndPunctuation
()
public
void
testAcceptAdditionalHrefAttributes
()
public
void
testCDataEncoded
()
public
void
testCDataEncodedInRichTextMacroBody
()
public
void
testCSS21Additions
()
CONFDEV-1263 - update the CSS 2.0 policy file to support CSS 2.1 additions
public
void
testCleanStyleAttribute
()
public
void
testCommentsAreRemoved
()
public
void
testControlCharactersInCDataAreStripped
()
public
void
testDelElementsArePermitted
()
public
void
testDoNotResolveEntities
()
public
void
testDoNotResolveEntitiesInAttributeValues
()
public
void
testDuplicateAttributesRemoved
()
public
void
testEmbeddedImageAllSupportedAttributesRetained
()
CONFDEV-5931 Test that title attributes are retained on images
(For some reason ac:style only allows empty but doesn't drop the attribute.)
public
void
testEmptyHeadingHandling
()
Test for CONFDEV-1496.
Heading elements that are empty will be dropped. Just ensure we don't wrap the heading around the following paragraph.
public
void
testEmptyMacroTagIsPassed
()
public
void
testEmptyParagraphHandling
()
public
void
testEmptyTagsPreserved
()
public
void
testFilterFormElement
()
public
void
testIdAttributesRemoved
()
public
void
testInsElementsArePermitted
()
public
void
testInvalidEntitiesAreEncoded
()
public
void
testIsCleanUrlAttribute
()
public
void
testLinkAndResourceIdentifierIsPassed
()
public
void
testLinkWithUnsupportedSchemeIsCleaned
()
public
void
testMacroBodyInMacroBody
()
During some DaisyDiff experimenting we discovered that the versions of Cyberneko and Xerces DaisyDiff was bringing in
causes a bug that this test is for catching.
public
void
testParagraphClosingStillOccursInRichTextLinkBody
()
public
void
testRemoveFormComponents
()
public
void
testReplacedEntitiesInPlainTextMacroBody
()
public
void
testSpanMayHaveStyle
()
public
void
testStorageFormatEmbeddedExternalImage
()
public
void
testStorageFormatEmbeddedImagesAreCleaned
()
public
void
testStorageFormatEmbeddedImagesCanBeEmpty
()
public
void
testStorageFormatEmbeddedWebImageCleaned
()
public
void
testStorageFormatNestedRichTextMacroBodyWithBlockElementsInsideOtherBlockElements
()
public
void
testStorageFormatPlainTextMacroBodyIsPassed
()
public
void
testStorageFormatRichTextLinkBodyWithBlockElementsInsideOtherBlockElements
()
public
void
testStorageFormatRichTextMacroBodyInlineElementsInsideOtherInlineElements
()
public
void
testStorageFormatRichTextMacroBodyWithBlockElementsInsideOtherBlockElements
()
public
void
testStripCiteAttribute
()
public
void
testStripEventHandlerAttribute
()
public
void
testStripHeadElement
()
public
void
testStripInlineStylesheets
()
public
void
testStripJavascriptHrefFromAttribute
()
public
void
testStripJavascriptUrlFromInlineCss
()
public
void
testStripObjectElement
()
public
void
testStripScriptElement
()
public
void
testStripUnknownAttribute
()
public
void
testStripUnknownElement
()
public
void
testStripUriAttributesFromImageElement
()
public
void
testSupplementaryMultiLingualPlaneCodePoints
()
public
void
testSupplementaryMultiLingualPlaneCodePointsInCData
()
public
void
testTagBalancing
()
Protected Methods