2006-08-27 00:49:34 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once 'HTMLPurifier/AttrDef/Border.php';
|
2007-01-19 23:02:28 +00:00
|
|
|
require_once 'HTMLPurifier/AttrDef/PixelsTest.php';
|
2006-08-27 00:49:34 +00:00
|
|
|
|
|
|
|
class HTMLPurifier_AttrDef_BorderTest extends HTMLPurifier_AttrDef_PixelsTest
|
|
|
|
{
|
|
|
|
|
|
|
|
function test() {
|
|
|
|
|
2006-08-31 20:33:07 +00:00
|
|
|
$this->def = new HTMLPurifier_AttrDef_Border(HTMLPurifier_Config::createDefault());
|
2006-08-27 00:49:34 +00:00
|
|
|
|
|
|
|
$this->assertDef('thick solid red', 'thick solid #F00');
|
|
|
|
$this->assertDef('thick solid');
|
|
|
|
$this->assertDef('solid red', 'solid #F00');
|
|
|
|
$this->assertDef('1px solid #000');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|