2008-02-20 00:53:09 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class HTMLPurifier_HTMLModule_ProprietaryTest extends HTMLPurifier_HTMLModuleHarness
|
|
|
|
{
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2008-02-20 00:53:09 +00:00
|
|
|
function setUp() {
|
|
|
|
parent::setUp();
|
|
|
|
$this->config->set('HTML', 'Proprietary', true);
|
|
|
|
}
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2008-02-20 00:53:09 +00:00
|
|
|
function testMarquee() {
|
|
|
|
$this->assertResult(
|
|
|
|
'<span><marquee
|
|
|
|
width="20%"
|
|
|
|
height="34"
|
|
|
|
direction="left"
|
|
|
|
behavior="alternate"
|
|
|
|
scrolldelay="3"
|
|
|
|
scrollamount="5"
|
|
|
|
loop="4"
|
2008-03-02 02:05:47 +00:00
|
|
|
bgcolor="#FF0000"
|
2008-02-20 00:53:09 +00:00
|
|
|
hspace="5"
|
|
|
|
vspace="3"
|
|
|
|
><div>Block</div><span>Inline</span>Text</marquee></span>'
|
|
|
|
);
|
|
|
|
}
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2008-02-20 00:53:09 +00:00
|
|
|
}
|
|
|
|
|