2006-08-29 02:01:58 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once 'HTMLPurifier/AttrDefHarness.php';
|
|
|
|
require_once 'HTMLPurifier/AttrDef/ListStyle.php';
|
|
|
|
|
|
|
|
class HTMLPurifier_AttrDef_ListStyleTest extends HTMLPurifier_AttrDefHarness
|
|
|
|
{
|
|
|
|
|
|
|
|
function test() {
|
|
|
|
|
2006-08-31 20:33:07 +00:00
|
|
|
$this->def = new HTMLPurifier_AttrDef_ListStyle(HTMLPurifier_Config::createDefault());
|
2006-08-29 02:01:58 +00:00
|
|
|
|
|
|
|
$this->assertDef('lower-alpha');
|
|
|
|
$this->assertDef('upper-roman inside');
|
|
|
|
$this->assertDef('circle outside');
|
|
|
|
$this->assertDef('inside');
|
|
|
|
$this->assertDef('none');
|
|
|
|
|
|
|
|
$this->assertDef('outside inside', 'outside');
|
|
|
|
$this->assertDef('circle lower-alpha', 'circle');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|