From 5e3ee8418e67643a145e01bb2248a70a191f2d02 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 8 Apr 2014 12:29:59 +0200 Subject: Add test case for #1489777 --- tests/Framework/Washtml.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tests') diff --git a/tests/Framework/Washtml.php b/tests/Framework/Washtml.php index 08cf147c8..f98a8a781 100644 --- a/tests/Framework/Washtml.php +++ b/tests/Framework/Washtml.php @@ -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 = " + 令全場爆滿"; + + $washer = new rcube_washtml; + $washed = $washer->wash($html); + + $this->assertRegExp('|style=\'font-family: "新細明體","serif"; color: red\'|', $washed, "Unicode chars in style attribute (#1489697)"); + } } -- cgit v1.2.3