3 require_once 'HTMLPurifier/AttrTransform/BgColor.php';
4 require_once 'HTMLPurifier/AttrTransformHarness.php';
6 class HTMLPurifier_AttrTransform_BgColorTest
extends HTMLPurifier_AttrTransformHarness
11 $this->obj
= new HTMLPurifier_AttrTransform_BgColor();
16 $this->assertResult( array() );
18 // we currently rely on the CSS validator to fix any problems.
19 // This means that this transform, strictly speaking, supports
20 // a superset of the functionality.
23 array('bgcolor' => '#000000'),
24 array('style' => 'background-color:#000000;')
28 array('bgcolor' => '#000000', 'style' => 'font-weight:bold'),
29 array('style' => 'background-color:#000000;font-weight:bold')
32 // this may change when we natively support the datatype and
33 // validate its contents before forwarding it on
35 array('bgcolor' => '#F00'),
36 array('style' => 'background-color:#F00;')