1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-07-10 09:16:20 +02:00

[1.7.0] Remove HTMLModule tests. They were a bad idea.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1083 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2007-05-21 00:24:32 +00:00
parent a470fc5621
commit 831db14c79
7 changed files with 0 additions and 270 deletions

View File

@ -1,53 +0,0 @@
<?php
require_once 'HTMLPurifier/HTMLModuleHarness.php';
class HTMLPurifier_HTMLModule_ImageTest extends HTMLPurifier_HTMLModuleHarness
{
function test() {
$this->setupScaffold('Image');
// max
$this->assertResult(
'<span>
<img
src="example.png"
alt="Example image"
longdesc="example.description.txt"
height="42"
width="42"
ac:common="yes"
/>
</span>'
);
// required attributes
$this->assertResult(
'<img src="foo.png" />',
'<img src="foo.png" alt="foo.png" />'
);
// empty
$this->assertResult(
'<img src="foo.png" alt="foo">',
'<img src="foo.png" alt="foo" />'
);
// unsupported attributes
$this->assertResult(
'<img
src="example.png"
alt="Example"
usemap="#foo"
ismap="ismap"
/>',
'<img src="example.png" alt="Example" />'
);
}
}
?>