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