PSR-2 reformatting PHPDoc corrections
[htmlpurifier.git] / tests / HTMLPurifier / AttrDef / CSS / FontTest.php
blobc52d164faa7629f49a6e268deb0777256be07893
1 <?php
3 class HTMLPurifier_AttrDef_CSS_FontTest extends HTMLPurifier_AttrDefHarness
6 public function test()
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');
21 // spacing
22 $this->assertDef('12px / 14px sans-serif', '12px/14px sans-serif');
24 // system fonts
25 $this->assertDef('menu');
27 $this->assertDef('800', false);
28 $this->assertDef('600 9px//12px Charcoal', false);
34 // vim: et sw=4 sts=4