mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-12 02:06:18 +02:00
[1.7.0] Add some module unit tests for Edit, Hypertext, Image and Legacy (incomplete). Remove redundant img scaffolding.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1050 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
32
tests/HTMLPurifier/HTMLModule/LegacyTest.php
Normal file
32
tests/HTMLPurifier/HTMLModule/LegacyTest.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
require_once 'HTMLPurifier/HTMLModuleHarness.php';
|
||||
|
||||
class HTMLPurifier_HTMLModule_LegacyTest extends HTMLPurifier_HTMLModuleHarness
|
||||
{
|
||||
|
||||
function test() {
|
||||
|
||||
// max
|
||||
$this->assertResult(
|
||||
'<span>
|
||||
<u>Text<span></span></u>
|
||||
<s>Text<span></span></s>
|
||||
<strike>Text<span></span></strike>
|
||||
</span>'
|
||||
);
|
||||
|
||||
// redefinitions
|
||||
/*$this->assertResult(
|
||||
'<ol start="3">
|
||||
<li value="2">Foo</li>
|
||||
</ol>
|
||||
<address>Text<span></span><p></p></address>
|
||||
<blockquote>Text<span></span><div></div></blockquote>'
|
||||
);*/
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user