obj = new HTMLPurifier_ChildDef_Table ();
}
public function testEmptyInput() {
$this->assertResult ( '', false );
}
public function testSingleRow() {
$this->assertResult ( '
' );
}
public function testComplexContents() {
$this->assertResult ( '' . 'asdf |
' );
$this->assertResult ( '
' );
}
public function testReorderContents() {
$this->assertResult ( '1
', '1
' );
}
public function testXhtml11Illegal() {
$this->assertResult ( 'a |
---|
a |
', 'a |
---|
a |
' );
}
public function testTrOverflowAndClose() {
$this->assertResult ( 'a |
b |
c |
d |
', 'a |
b |
c |
d |
' );
}
public function testDuplicateProcessing() {
$this->assertResult ( '11', '11' );
}
public function testRemoveText() {
$this->assertResult ( 'foo', false );
}
public function testStickyWhitespaceOnTr() {
$this->config->set ( 'Output.Newline', "\n" );
$this->assertResult ( "\n
\n
\n " );
}
public function testStickyWhitespaceOnTSection() {
$this->config->set ( 'Output.Newline', "\n" );
$this->assertResult ( "\n\t\n\t\t\n\t\t\t", "\n\t\n\t\t\t\n\t\t" );
}
}
// vim: et sw=4 sts=4