MDL-2794 testweblib: adapt the unit tests to the output of new html2text library
This commit is contained in:
@@ -42,17 +42,17 @@ class web_test extends UnitTestCase {
|
||||
}
|
||||
|
||||
function test_format_text_email() {
|
||||
$this->assertEqual('This is a TEST',
|
||||
$this->assertEqual("\n\nThis is a TEST",
|
||||
format_text_email('<p>This is a <strong>test</strong></p>',FORMAT_HTML));
|
||||
$this->assertEqual('This is a TEST',
|
||||
$this->assertEqual("\n\nThis is a TEST",
|
||||
format_text_email('<p class="frogs">This is a <strong class=\'fishes\'>test</strong></p>',FORMAT_HTML));
|
||||
$this->assertEqual('& so is this',
|
||||
format_text_email('<p>& so is this</p>',FORMAT_HTML));
|
||||
format_text_email('& so is this',FORMAT_HTML));
|
||||
$tl = textlib_get_instance();
|
||||
$this->assertEqual('Two bullets: '.$tl->code2utf8(8226).' '.$tl->code2utf8(8226),
|
||||
format_text_email('<p>Two bullets: • •</p>',FORMAT_HTML));
|
||||
$this->assertEqual('Two bullets: '.$tl->code2utf8(8226).' *',
|
||||
format_text_email('Two bullets: • •',FORMAT_HTML));
|
||||
$this->assertEqual($tl->code2utf8(0x7fd2).$tl->code2utf8(0x7fd2),
|
||||
format_text_email('<p>習習</p>',FORMAT_HTML));
|
||||
format_text_email('習習',FORMAT_HTML));
|
||||
}
|
||||
|
||||
function test_highlight() {
|
||||
|
||||
Reference in New Issue
Block a user