2006-08-27 00:49:34 +00:00
|
|
|
<?php
|
|
|
|
|
2007-02-14 20:38:51 +00:00
|
|
|
class HTMLPurifier_AttrDef_CSS_BorderTest extends HTMLPurifier_AttrDefHarness
|
2006-08-27 00:49:34 +00:00
|
|
|
{
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2006-08-27 00:49:34 +00:00
|
|
|
function test() {
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2007-02-14 20:38:51 +00:00
|
|
|
$config = HTMLPurifier_Config::createDefault();
|
|
|
|
$this->def = new HTMLPurifier_AttrDef_CSS_Border($config);
|
2008-12-06 07:28:20 +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');
|
2008-03-16 19:14:39 +00:00
|
|
|
$this->assertDef('1px solid rgb(0, 0, 0)', '1px solid rgb(0,0,0)');
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2006-08-27 00:49:34 +00:00
|
|
|
}
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2006-08-27 00:49:34 +00:00
|
|
|
}
|
|
|
|
|
2008-12-06 09:24:59 +00:00
|
|
|
// vim: et sw=4 sts=4
|