1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-07-10 09:16:20 +02:00

Remove trailing whitespace.

Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
This commit is contained in:
Edward Z. Yang
2008-12-06 02:28:20 -05:00
parent 3a6b63dff1
commit 2c955af135
476 changed files with 5595 additions and 5547 deletions

View File

@ -2,26 +2,26 @@
class HTMLPurifier_HTMLModule_ScriptingTest extends HTMLPurifier_HTMLModuleHarness
{
function setUp() {
parent::setUp();
$this->config->set('HTML', 'Trusted', true);
$this->config->set('Output', 'CommentScriptContents', false);
}
function testDefaultRemoval() {
$this->config->set('HTML', 'Trusted', false);
$this->assertResult(
'<script type="text/javascript">foo();</script>', ''
);
}
function testPreserve() {
$this->assertResult(
'<script type="text/javascript">foo();</script>'
);
}
function testCDATAEnclosure() {
$this->assertResult(
'<script type="text/javascript">//<![CDATA[
@ -29,7 +29,7 @@ alert("<This is compatible with XHTML>");
//]]></script>'
);
}
function testAllAttributes() {
$this->assertResult(
'<script
@ -39,7 +39,7 @@ alert("<This is compatible with XHTML>");
>PCDATA</script>'
);
}
function testUnsupportedAttributes() {
$this->assertResult(
'<script
@ -49,6 +49,6 @@ alert("<This is compatible with XHTML>");
'<script type="text/javascript">PCDATA</script>'
);
}
}