2006-08-27 00:49:34 +00:00
|
|
|
<?php
|
|
|
|
|
2007-02-14 20:38:51 +00:00
|
|
|
require_once 'HTMLPurifier/AttrDef/CSS/Border.php';
|
2006-08-27 00:49:34 +00:00
|
|
|
|
2007-02-14 20:38:51 +00:00
|
|
|
class HTMLPurifier_AttrDef_CSS_BorderTest extends HTMLPurifier_AttrDefHarness
|
2006-08-27 00:49:34 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
function test() {
|
|
|
|
|
2007-02-14 20:38:51 +00:00
|
|
|
$config = HTMLPurifier_Config::createDefault();
|
|
|
|
$this->def = new HTMLPurifier_AttrDef_CSS_Border($config);
|
2006-08-27 00:49:34 +00:00
|
|
|
|
2007-05-21 01:36:15 +00:00
|
|
|
$this->assertDef('thick solid red', 'thick solid #FF0000');
|
2006-08-27 00:49:34 +00:00
|
|
|
$this->assertDef('thick solid');
|
2007-05-21 01:36:15 +00:00
|
|
|
$this->assertDef('solid red', 'solid #FF0000');
|
2006-08-27 00:49:34 +00:00
|
|
|
$this->assertDef('1px solid #000');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|