public class SanitizingGadgetRewriterTest extends RewriterTestBase
control, DEFAULT_CONCAT_BASE, DEFAULT_PROXY_BASE, defaultRewriterFeature, fakeResponse, injector, MOCK_CONCAT_BASE, MOCK_CONTAINER, MOCK_PROXY_BASE, parser, rewriterFeatureFactory, SPEC_URL, tags, TAGS| Constructor and Description |
|---|
SanitizingGadgetRewriterTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
allCommentsStripped() |
void |
doesNothingWhenNotSanitized() |
void |
enforceAttributeWhiteList() |
void |
enforceBadImageUrlStripped() |
void |
enforceCssImportBadLinkStripped() |
void |
enforceCssImportLinkRewritten() |
void |
enforceCssImportLinkRewrittenNoCacheAndDebug() |
void |
enforceImageSrcProxied() |
void |
enforceImageSrcProxiedNoCacheAndDebug() |
void |
enforceNonStyleLinkStripped() |
void |
enforceNonStyleLinkStrippedNoCacheAndDebug() |
void |
enforceStyleLinkRewritten() |
void |
enforceStyleLinkRewrittenNoCacheAndDebug() |
void |
enforceStyleSanitized() |
void |
enforceTagWhiteList() |
void |
enforceTargetBlankAllowed() |
void |
enforceTargetSelfAllowed() |
void |
enforceTargetTopRestricted() |
void |
forceSanitizeUnsanitaryGadget() |
protected Class<? extends org.apache.shindig.gadgets.parse.GadgetHtmlParser> |
getParserClass() |
void |
sanitizationBypassAllowed() |
void |
sanitizationBypassOnlySelf() |
void |
sanitizationBypassPreservedAcrossClone() |
void |
setUp() |
createSpecWithoutRewrite, createSpecWithRewrite, createSpecWithRewriteOS9, mockGadget, mockGadget, replaceDefaultWithMockServer, rewriteContent, rewriteContent, rewriteHelperpublic void setUp()
throws Exception
setUp in class RewriterTestBaseExceptionprotected Class<? extends org.apache.shindig.gadgets.parse.GadgetHtmlParser> getParserClass()
getParserClass in class RewriterTestBasepublic void enforceStyleLinkRewritten()
throws Exception
Exceptionpublic void enforceStyleLinkRewrittenNoCacheAndDebug()
throws Exception
Exceptionpublic void enforceNonStyleLinkStripped()
throws Exception
Exceptionpublic void enforceNonStyleLinkStrippedNoCacheAndDebug()
throws Exception
Exceptionpublic void enforceCssImportLinkRewritten()
throws Exception
Exceptionpublic void enforceCssImportLinkRewrittenNoCacheAndDebug()
throws Exception
Exceptionpublic void enforceCssImportBadLinkStripped()
throws Exception
Exceptionpublic void enforceAttributeWhiteList()
throws Exception
Exceptionpublic void enforceImageSrcProxiedNoCacheAndDebug()
throws Exception
Exceptionpublic void enforceBadImageUrlStripped()
throws Exception
Exceptionpublic void enforceTargetTopRestricted()
throws Exception
Exceptionpublic void enforceTargetBlankAllowed()
throws Exception
Exceptionpublic void sanitizationBypassAllowed()
throws Exception
Exceptionpublic void sanitizationBypassOnlySelf()
throws Exception
Exceptionpublic void sanitizationBypassPreservedAcrossClone()
throws Exception
Exceptionpublic void doesNothingWhenNotSanitized()
throws Exception
ExceptionCopyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.