Fix two minor bugs, updating Phorum and removing unused $dir variable.
[htmlpurifier/darkodev.git] / tests / HTMLPurifier / HTMLModule / ObjectTest.php
blobf824d602157d414065d669940bd5e1262cac1057
1 <?php
3 class HTMLPurifier_HTMLModule_ObjectTest extends HTMLPurifier_HTMLModuleHarness
6 function setUp() {
7 parent::setUp();
8 $this->config->set('HTML.Trusted', true);
11 function testDefaultRemoval() {
12 $this->config->set('HTML.Trusted', false);
13 $this->assertResult(
14 '<object></object>', ''
18 function testMinimal() {
19 $this->assertResult('<object></object>');
22 function testStandardUseCase() {
23 $this->assertResult(
24 '<object type="video/x-ms-wmv" data="http://domain.com/video.wmv" width="320" height="256">
25 <param name="src" value="http://domain.com/video.wmv" />
26 <param name="autostart" value="false" />
27 <param name="controller" value="true" />
28 <param name="pluginurl" value="http://www.microsoft.com/Windows/MediaPlayer/" />
29 <a href="http://www.microsoft.com/Windows/MediaPlayer/">Windows Media player required</a>
30 </object>'
34 // more test-cases?
38 // vim: et sw=4 sts=4