ProprietaryTest.php 712 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. class HTMLPurifier_HTMLModule_ProprietaryTest extends HTMLPurifier_HTMLModuleHarness
  3. {
  4. function setUp() {
  5. parent::setUp();
  6. $this->config->set('HTML.Proprietary', true);
  7. }
  8. function testMarquee() {
  9. $this->assertResult(
  10. '<span><marquee
  11. width="20%"
  12. height="34"
  13. direction="left"
  14. behavior="alternate"
  15. scrolldelay="3"
  16. scrollamount="5"
  17. loop="4"
  18. bgcolor="#FF0000"
  19. hspace="5"
  20. vspace="3"
  21. ><div>Block</div><span>Inline</span>Text</marquee></span>'
  22. );
  23. }
  24. }
  25. // vim: et sw=4 sts=4