1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-07-31 19:30:21 +02:00

Commit TagTransform_Font and associated test-cases.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@143 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2006-08-03 00:14:10 +00:00
parent 80281dda55
commit 064fd603d3
4 changed files with 135 additions and 12 deletions

View File

@@ -32,6 +32,10 @@ class HTMLPurifier_Strategy_RemoveForeignElementsTest
$inputs[4] = '<center>Look I am Centered!</center>';
$expect[4] = '<div style="text-align:center;">Look I am Centered!</div>';
// test font transform
$inputs[5] = '<font color="red" face="Arial" size="6">Big Warning!</font>';
$expect[5] = '<span style="color:red;font-family:Arial;font-size:xx-large;">Big Warning!</span>';
$this->assertStrategyWorks($strategy, $inputs, $expect);
}