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:
@ -7,6 +7,7 @@ class HTMLPurifier_HTMLModule_BdoTest extends HTMLPurifier_HTMLModuleHarness
|
||||
|
||||
function test() {
|
||||
|
||||
// max
|
||||
$this->assertResult(
|
||||
'<span>
|
||||
<bdo
|
||||
@ -23,6 +24,23 @@ class HTMLPurifier_HTMLModule_BdoTest extends HTMLPurifier_HTMLModuleHarness
|
||||
</span>', true, array('Attr.EnableID' => true)
|
||||
);
|
||||
|
||||
// min
|
||||
$this->assertResult(
|
||||
'<bdo></bdo>', '<bdo dir="ltr"></bdo>'
|
||||
);
|
||||
|
||||
// children
|
||||
$this->assertResult(
|
||||
'<bdo dir="rtl">Text<span></span><div></div></bdo>',
|
||||
'<bdo dir="rtl">Text<span></span></bdo>'
|
||||
);
|
||||
|
||||
// global attr
|
||||
$this->assertResult(
|
||||
'<br dir="ltr" /><span dir="ltr"></span>',
|
||||
'<br /><span dir="ltr"></span>'
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user