Release 2.0.1, merged in 1181 to HEAD.
[htmlpurifier.git] / tests / HTMLPurifier / AttrDef / CSS / BorderTest.php
blob5eaceae42bab637e75dce3aaf193888afb884df2
1 <?php
3 require_once 'HTMLPurifier/AttrDef/CSS/Border.php';
5 class HTMLPurifier_AttrDef_CSS_BorderTest extends HTMLPurifier_AttrDefHarness
8 function test() {
10 $config = HTMLPurifier_Config::createDefault();
11 $this->def = new HTMLPurifier_AttrDef_CSS_Border($config);
13 $this->assertDef('thick solid red', 'thick solid #FF0000');
14 $this->assertDef('thick solid');
15 $this->assertDef('solid red', 'solid #FF0000');
16 $this->assertDef('1px solid #000');