blob: cdf6f8a9b2e3936f2fb0ded28ca78e701957efac (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<?php
class HTMLPurifier_AttrTransform_BdoDirTest extends HTMLPurifier_AttrTransformHarness
{
function setUp() {
parent::setUp();
$this->obj = new HTMLPurifier_AttrTransform_BdoDir();
}
function testAddDefaultDir() {
$this->assertResult( array(), array('dir' => 'ltr') );
}
function testPreserveExistingDir() {
$this->assertResult( array('dir' => 'rtl') );
}
function testAlternateDefault() {
$this->config->set('Attr.DefaultTextDir', 'rtl');
$this->assertResult(
array(),
array('dir' => 'rtl')
);
}
}
// vim: et sw=4 sts=4
|