3
require_once 'HTMLPurifier/AttrDefHarness.php';
4
require_once 'HTMLPurifier/AttrDef/CSS/FontFamily.php';
6
class HTMLPurifier_AttrDef_CSS_FontFamilyTest extends HTMLPurifier_AttrDefHarness
11
$this->def = new HTMLPurifier_AttrDef_CSS_FontFamily();
13
$this->assertDef('Gill, Helvetica, sans-serif');
14
$this->assertDef('\'Times New Roman\', serif');
15
$this->assertDef('"Times New Roman"', "'Times New Roman'");
16
$this->assertDef('01234');
17
$this->assertDef(',', false);
18
$this->assertDef('Times New Roman, serif', '\'Times New Roman\', serif');
19
$this->assertDef($d = "'John\\'s Font'");
20
$this->assertDef("John's Font", $d);
21
$this->assertDef($d = "'\xE5\xAE\x8B\xE4\xBD\x93'");
22
$this->assertDef("\xE5\xAE\x8B\xE4\xBD\x93", $d);