3 class HTMLPurifier_AttrDef_CSS_FontTest
extends HTMLPurifier_AttrDefHarness
8 $config = HTMLPurifier_Config
::createDefault();
9 $this->def
= new HTMLPurifier_AttrDef_CSS_Font($config);
11 // hodgepodge of usage cases from W3C spec, but " -> '
12 $this->assertDef('12px/14px sans-serif');
13 $this->assertDef('80% sans-serif');
14 $this->assertDef('x-large/110% \'New Century Schoolbook\', serif');
15 $this->assertDef('bold italic large Palatino, serif');
16 $this->assertDef('normal small-caps 120%/120% fantasy');
17 $this->assertDef('300 italic 1.3em/1.7em \'FB Armada\', sans-serif');
18 $this->assertDef('600 9px Charcoal');
19 $this->assertDef('600 9px/ 12px Charcoal', '600 9px/12px Charcoal');
22 $this->assertDef('12px / 14px sans-serif', '12px/14px sans-serif');
25 $this->assertDef('menu');
27 $this->assertDef('800', false);
28 $this->assertDef('600 9px//12px Charcoal', false);