mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-14 09:18:41 +00:00
9b375fdfb8
- Also fixed includes in test files - Updated TODO with CSS plans git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@659 48356398-32a2-884e-a903-53898d9a118a
32 lines
738 B
PHP
32 lines
738 B
PHP
<?php
|
|
|
|
require_once 'HTMLPurifier/AttrTransform/BdoDir.php';
|
|
require_once 'HTMLPurifier/AttrTransformHarness.php';
|
|
|
|
class HTMLPurifier_AttrTransform_BdoDirTest extends HTMLPurifier_AttrTransformHarness
|
|
{
|
|
|
|
function setUp() {
|
|
parent::setUp();
|
|
$this->obj = new HTMLPurifier_AttrTransform_BdoDir();
|
|
}
|
|
|
|
function test() {
|
|
|
|
$this->assertResult( array(), array('dir' => 'ltr') );
|
|
|
|
// leave existing dir alone
|
|
$this->assertResult( array('dir' => 'rtl') );
|
|
|
|
// use a different default
|
|
$this->assertResult(
|
|
array(),
|
|
array('dir' => 'rtl'),
|
|
array('Attr.DefaultTextDir' => 'rtl')
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|