Fix CSS URL innerHTML/cssText escaping bug.
[htmlpurifier.git] / tests / HTMLPurifier / AttrDef / CSS / TextDecorationTest.php
blobdd714d206a6b735adb87661bf9a3c938f084c5cb
1 <?php
3 class HTMLPurifier_AttrDef_CSS_TextDecorationTest extends HTMLPurifier_AttrDefHarness
6 function testCaseInsensitive() {
8 $this->def = new HTMLPurifier_AttrDef_CSS_TextDecoration();
10 $this->assertDef('none');
11 $this->assertDef('none underline', 'underline');
13 $this->assertDef('underline');
14 $this->assertDef('overline');
15 $this->assertDef('line-through overline underline');
16 $this->assertDef('overline line-through');
17 $this->assertDef('UNDERLINE', 'underline');
18 $this->assertDef(' underline line-through ', 'underline line-through');
20 $this->assertDef('foobar underline', 'underline');
21 $this->assertDef('blink', false);
27 // vim: et sw=4 sts=4