2007-01-20 02:21:43 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once 'HTMLPurifier/AttrDefHarness.php';
|
2007-02-14 20:38:51 +00:00
|
|
|
require_once 'HTMLPurifier/AttrDef/CSS/Background.php';
|
2007-01-20 02:21:43 +00:00
|
|
|
|
2007-02-14 20:38:51 +00:00
|
|
|
class HTMLPurifier_AttrDef_CSS_BackgroundTest extends HTMLPurifier_AttrDefHarness
|
2007-01-20 02:21:43 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
function test() {
|
|
|
|
|
2007-02-14 20:38:51 +00:00
|
|
|
$config = HTMLPurifier_Config::createDefault();
|
|
|
|
$this->def = new HTMLPurifier_AttrDef_CSS_Background($config);
|
2007-01-20 02:21:43 +00:00
|
|
|
|
|
|
|
$valid = '#333 url(chess.png) repeat fixed 50% top';
|
|
|
|
$this->assertDef($valid);
|
|
|
|
$this->assertDef('url("chess.png") #333 50% top repeat fixed', $valid);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|