obj = new HTMLPurifier_Strategy_ValidateAttributes (); $this->config->set ( 'HTML.TidyLevel', 'heavy' ); } public function testConvertCenterAlign() { $this->assertResult ( '

Centered Headline

', '

Centered Headline

' ); } public function testConvertRightAlign() { $this->assertResult ( '

Right-aligned Headline

', '

Right-aligned Headline

' ); } public function testConvertLeftAlign() { $this->assertResult ( '

Left-aligned Headline

', '

Left-aligned Headline

' ); } public function testConvertJustifyAlign() { $this->assertResult ( '

Justified Paragraph

', '

Justified Paragraph

' ); } public function testRemoveInvalidAlign() { $this->assertResult ( '

Invalid Headline

', '

Invalid Headline

' ); } public function testConvertTableLengths() { $this->assertResult ( '
', '
' ); } public function testTdConvertNowrap() { $this->assertResult ( '', '' ); } public function testCaptionConvertAlignLeft() { $this->assertResult ( '', '' ); } public function testCaptionConvertAlignRight() { $this->assertResult ( '', '' ); } public function testCaptionConvertAlignTop() { $this->assertResult ( '', '' ); } public function testCaptionConvertAlignBottom() { $this->assertResult ( '', '' ); } public function testCaptionRemoveInvalidAlign() { $this->assertResult ( '', '' ); } public function testTableConvertAlignLeft() { $this->assertResult ( '', '
' ); } public function testTableConvertAlignCenter() { $this->assertResult ( '
', '
' ); } public function testTableConvertAlignRight() { $this->assertResult ( '
', '
' ); } public function testTableRemoveInvalidAlign() { $this->assertResult ( '
', '
' ); } public function testImgConvertAlignLeft() { $this->assertResult ( 'foobar', 'foobar' ); } public function testImgConvertAlignRight() { $this->assertResult ( 'foobar', 'foobar' ); } public function testImgConvertAlignBottom() { $this->assertResult ( 'foobar', 'foobar' ); } public function testImgConvertAlignMiddle() { $this->assertResult ( 'foobar', 'foobar' ); } public function testImgConvertAlignTop() { $this->assertResult ( 'foobar', 'foobar' ); } public function testImgRemoveInvalidAlign() { $this->assertResult ( 'foobar', 'foobar' ); } public function testBorderConvertHVSpace() { $this->assertResult ( 'foo', 'foo' ); } public function testHrConvertSize() { $this->assertResult ( '
', '
' ); } public function testHrConvertNoshade() { $this->assertResult ( '
', '
' ); } public function testHrConvertAlignLeft() { $this->assertResult ( '
', '
' ); } public function testHrConvertAlignCenter() { $this->assertResult ( '
', '
' ); } public function testHrConvertAlignRight() { $this->assertResult ( '
', '
' ); } public function testHrRemoveInvalidAlign() { $this->assertResult ( '
', '
' ); } public function testBrConvertClearLeft() { $this->assertResult ( '
', '
' ); } public function testBrConvertClearRight() { $this->assertResult ( '
', '
' ); } public function testBrConvertClearAll() { $this->assertResult ( '
', '
' ); } public function testBrConvertClearNone() { $this->assertResult ( '
', '
' ); } public function testBrRemoveInvalidClear() { $this->assertResult ( '
', '
' ); } public function testUlConvertTypeDisc() { $this->assertResult ( '