2006-08-16 15:12:48 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once 'HTMLPurifier/AttrDefHarness.php';
|
2007-02-14 20:38:51 +00:00
|
|
|
require_once 'HTMLPurifier/AttrDef/CSS/TextDecoration.php';
|
2006-08-16 15:12:48 +00:00
|
|
|
|
2007-02-14 20:38:51 +00:00
|
|
|
class HTMLPurifier_AttrDef_CSS_TextDecorationTest extends HTMLPurifier_AttrDefHarness
|
2006-08-16 15:12:48 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
function testCaseInsensitive() {
|
|
|
|
|
2007-02-14 20:38:51 +00:00
|
|
|
$this->def = new HTMLPurifier_AttrDef_CSS_TextDecoration();
|
2006-08-16 15:12:48 +00:00
|
|
|
|
|
|
|
$this->assertDef('underline');
|
|
|
|
$this->assertDef('overline');
|
|
|
|
$this->assertDef('line-through overline underline');
|
|
|
|
$this->assertDef('overline line-through');
|
|
|
|
$this->assertDef('UNDERLINE', 'underline');
|
|
|
|
$this->assertDef(' underline line-through ', 'underline line-through');
|
|
|
|
|
|
|
|
$this->assertDef('foobar underline', 'underline');
|
|
|
|
$this->assertDef('blink', false);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|