2006-08-16 15:12:48 +00:00
|
|
|
<?php
|
|
|
|
|
2007-02-14 20:38:51 +00:00
|
|
|
class HTMLPurifier_AttrDef_CSS_TextDecorationTest extends HTMLPurifier_AttrDefHarness
|
2006-08-16 15:12:48 +00:00
|
|
|
{
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2006-08-16 15:12:48 +00:00
|
|
|
function testCaseInsensitive() {
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2007-02-14 20:38:51 +00:00
|
|
|
$this->def = new HTMLPurifier_AttrDef_CSS_TextDecoration();
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2008-06-17 03:12:50 +00:00
|
|
|
$this->assertDef('none');
|
|
|
|
$this->assertDef('none underline', 'underline');
|
2008-12-06 07:28:20 +00:00
|
|
|
|
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');
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2006-08-16 15:12:48 +00:00
|
|
|
$this->assertDef('foobar underline', 'underline');
|
|
|
|
$this->assertDef('blink', false);
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2006-08-16 15:12:48 +00:00
|
|
|
}
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2006-08-16 15:12:48 +00:00
|
|
|
}
|
|
|
|
|
2008-12-06 09:24:59 +00:00
|
|
|
// vim: et sw=4 sts=4
|