You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
627B

  1. <?php
  2. class HTMLPurifier_AttrDef_CSS_BackgroundTest extends HTMLPurifier_AttrDefHarness
  3. {
  4. public function test()
  5. {
  6. $config = HTMLPurifier_Config::createDefault();
  7. $this->def = new HTMLPurifier_AttrDef_CSS_Background($config);
  8. $valid = '#333 url("chess.png") repeat fixed 50% top';
  9. $this->assertDef($valid);
  10. $this->assertDef('url(\'chess.png\') #333 50% top repeat fixed', $valid);
  11. $this->assertDef(
  12. 'rgb(34, 56, 33) url(chess.png) repeat fixed top',
  13. 'rgb(34,56,33) url("chess.png") repeat fixed top'
  14. );
  15. }
  16. }
  17. // vim: et sw=4 sts=4