3 class HTMLPurifier_AttrTransform_BorderTest
extends HTMLPurifier_AttrTransformHarness
8 $this->obj
= new HTMLPurifier_AttrTransform_Border();
11 function testEmptyInput() {
12 $this->assertResult( array() );
15 function testBasicTransform() {
17 array('border' => '1'),
18 array('style' => 'border:1px solid;')
22 function testLenientTreatmentOfInvalidInput() {
24 array('border' => '10%'),
25 array('style' => 'border:10%px solid;')
29 function testPrependNewCSS() {
31 array('border' => '23', 'style' => 'font-weight:bold;'),
32 array('style' => 'border:23px solid;font-weight:bold;')