Add test case for #1489777

pull/175/head
Aleksander Machniak 10 years ago
parent 1d1fdcbf8c
commit 5e3ee8418e

@ -138,4 +138,17 @@ class Framework_Washtml extends PHPUnit_Framework_TestCase
$this->assertRegExp('|font-size: 10px|', $washed, "Font-size style");
}
/**
* Test handling of unicode chars in style (#1489777)
*/
function test_style_unicode()
{
$html = "<html><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
<body><span style='font-family:\"新細明體\",\"serif\";color:red'>令全場爆滿</span></body></html>";
$washer = new rcube_washtml;
$washed = $washer->wash($html);
$this->assertRegExp('|style=\'font-family: "新細明體","serif"; color: red\'|', $washed, "Unicode chars in style attribute (#1489697)");
}
}

Loading…
Cancel
Save