mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-10 09:16:20 +02:00
[3.1.0] Implement Proprietary HTML module with <marquee>
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1572 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
29
tests/HTMLPurifier/HTMLModule/ProprietaryTest.php
Normal file
29
tests/HTMLPurifier/HTMLModule/ProprietaryTest.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
class HTMLPurifier_HTMLModule_ProprietaryTest extends HTMLPurifier_HTMLModuleHarness
|
||||
{
|
||||
|
||||
function setUp() {
|
||||
parent::setUp();
|
||||
$this->config->set('HTML', 'Proprietary', true);
|
||||
}
|
||||
|
||||
function testMarquee() {
|
||||
$this->assertResult(
|
||||
'<span><marquee
|
||||
width="20%"
|
||||
height="34"
|
||||
direction="left"
|
||||
behavior="alternate"
|
||||
scrolldelay="3"
|
||||
scrollamount="5"
|
||||
loop="4"
|
||||
bgcolor="red"
|
||||
hspace="5"
|
||||
vspace="3"
|
||||
><div>Block</div><span>Inline</span>Text</marquee></span>'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user