BorderTest.php 553 B

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