BorderTest.php 563 B

123456789101112131415161718192021
  1. <?php
  2. class HTMLPurifier_AttrDef_CSS_BorderTest extends HTMLPurifier_AttrDefHarness
  3. {
  4. public function test()
  5. {
  6. $config = HTMLPurifier_Config::createDefault();
  7. $this->def = new HTMLPurifier_AttrDef_CSS_Border($config);
  8. $this->assertDef('thick solid red', 'thick solid #FF0000');
  9. $this->assertDef('thick solid');
  10. $this->assertDef('solid red', 'solid #FF0000');
  11. $this->assertDef('1px solid #000');
  12. $this->assertDef('1px solid rgb(0, 0, 0)', '1px solid rgb(0,0,0)');
  13. }
  14. }
  15. // vim: et sw=4 sts=4