3 require_once 'HTMLPurifier/AttrTransform/Length.php';
4 require_once 'HTMLPurifier/AttrTransformHarness.php';
6 class HTMLPurifier_AttrTransform_LengthTest
extends HTMLPurifier_AttrTransformHarness
11 $this->obj
= new HTMLPurifier_AttrTransform_Length('width');
15 $this->assertResult( array() );
17 array('width' => '10'),
18 array('style' => 'width:10px;')
21 array('width' => '10%'),
22 array('style' => 'width:10%;')
25 array('width' => '10%', 'style' => 'font-weight:bold'),
26 array('style' => 'width:10%;font-weight:bold')
28 // this behavior might change
30 array('width' => 'asdf'),
31 array('style' => 'width:asdf;')