mirror of
https://github.com/e107inc/e107.git
synced 2025-08-15 02:57:15 +02:00
Fixes #3793 TinyMce video tags fix and expansion of allowed attributes.
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
$this->assertTrue(false, "Couldn't load e_parser object");
|
||||
}
|
||||
|
||||
$this->tp->__construct();
|
||||
}
|
||||
/*
|
||||
public function testHtmlAbuseFilter()
|
||||
@@ -635,12 +636,16 @@ while($row = $sql->fetch())
|
||||
$result = $this->tp->getScriptAccess();
|
||||
$this->assertFalse($result);
|
||||
}
|
||||
/*
|
||||
public function testSetAllowedAttributes()
|
||||
|
||||
public function testGetAllowedAttributes()
|
||||
{
|
||||
$result = $this->tp->getAllowedAttributes();
|
||||
|
||||
$true = is_array($result) && in_array('style',$result['img']);
|
||||
|
||||
$this->assertTrue($true);
|
||||
}
|
||||
|
||||
/*
|
||||
public function testSetScriptTags()
|
||||
{
|
||||
|
||||
@@ -1114,6 +1119,11 @@ while($row = $sql->fetch())
|
||||
'expected' => "<pre>/* {THEME_PREF: code=header_width&default=container} */</pre>",
|
||||
),
|
||||
|
||||
13 => array(
|
||||
'html' => '<div class="video-responsive"><div class="video-responsive"><video width="320" height="240" controls="controls"><source src="e107_media/xxxxx5/videos/2018-07/SampleVideo.mp4" type="video/mp4">Your browser does not support the video tag.</video></div></div>',
|
||||
'expected' => '<div class="video-responsive"><div class="video-responsive"><video width="320" height="240" controls="controls"><source src="e107_media/xxxxx5/videos/2018-07/SampleVideo.mp4" type="video/mp4">Your browser does not support the video tag.</source></video></div></div>'
|
||||
),
|
||||
|
||||
);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user