3 require_once 'HTMLPurifier/AttrDef/CSS/Percentage.php';
4 require_once 'HTMLPurifier/AttrDefHarness.php';
6 class HTMLPurifier_AttrDef_CSS_PercentageTest
extends HTMLPurifier_AttrDefHarness
11 $this->def
= new HTMLPurifier_AttrDef_CSS_Percentage();
13 $this->assertDef('10%');
14 $this->assertDef('1.607%');
15 $this->assertDef('-567%');
17 $this->assertDef(' 100% ', '100%');
19 $this->assertDef('5', false);
20 $this->assertDef('asdf', false);
21 $this->assertDef('%', false);