assertResult ( '
' );
}
public function testLengthTooLarge() {
$this->assertResult ( '
', '
' );
}
public function testLengthPercentage() {
$this->assertResult ( '
', '
' );
}
public function testLengthCustomMax() {
$this->config->set ( 'HTML.MaxImgLength', 20 );
$this->assertResult ( '
', '
' );
}
public function testLengthCrashFixDisabled() {
$this->config->set ( 'HTML.MaxImgLength', null );
$this->assertResult ( '
' );
$this->assertResult ( '
' );
}
public function testLengthTrusted() {
$this->config->set ( 'HTML.Trusted', true );
$this->assertResult ( '
' );
$this->assertResult ( '
' );
}
}
// vim: et sw=4 sts=4