config->set('AutoFormat.RemoveEmpty', true);
}
function testPreserve() {
$this->assertResult('asdf');
}
function testRemove() {
$this->assertResult('', '');
}
function testRemoveWithSpace() {
$this->assertResult(' ', '');
}
function testRemoveWithAttr() {
$this->assertResult('', '');
}
function testRemoveIdAndName() {
$this->assertResult('', '');
}
function testPreserveColgroup() {
$this->assertResult('
');
}
function testPreserveId() {
$this->config->set('Attr.EnableID', true);
$this->assertResult('');
}
function testPreserveName() {
$this->config->set('Attr.EnableID', true);
$this->assertResult('');
}
function testRemoveNested() {
$this->assertResult('', '');
}
function testRemoveNested2() {
$this->assertResult('', '');
}
function testRemoveNested3() {
$this->assertResult(' ', '');
}
function testRemoveNbsp() {
$this->config->set('AutoFormat.RemoveEmpty.RemoveNbsp', true);
$this->assertResult(' ', '');
}
function testRemoveNbspMix() {
$this->config->set('AutoFormat.RemoveEmpty.RemoveNbsp', true);
$this->assertResult(' ', '');
}
function testDontRemoveNbsp() {
$this->config->set('AutoFormat.RemoveEmpty.RemoveNbsp', true);
$this->assertResult(' ', " | \xC2\xA0 | ");
}
function testRemoveNbspExceptionsSpecial() {
$this->config->set('AutoFormat.RemoveEmpty.RemoveNbsp', true);
$this->config->set('AutoFormat.RemoveEmpty.RemoveNbsp.Exceptions', 'b');
$this->assertResult(' ', "\xC2\xA0");
}
}
// vim: et sw=4 sts=4