From f96fec6b8cceb5d4f25cc1cd7c50c4c200905a8c Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 11 Apr 2014 09:13:59 +0200 Subject: Fix "washing" of unicoded style attributes (#1489777) --- tests/Framework/Washtml.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/Framework/Washtml.php b/tests/Framework/Washtml.php index f98a8a781..ab1ada05f 100644 --- a/tests/Framework/Washtml.php +++ b/tests/Framework/Washtml.php @@ -144,11 +144,19 @@ class Framework_Washtml extends PHPUnit_Framework_TestCase function test_style_unicode() { $html = " - 令全場爆滿"; + test"; $washer = new rcube_washtml; $washed = $washer->wash($html); - $this->assertRegExp('|style=\'font-family: "新細明體","serif"; color: red\'|', $washed, "Unicode chars in style attribute (#1489697)"); + $this->assertRegExp('|style=\'font-family: "新細明體","serif"; color: red\'|', $washed, "Unicode chars in style attribute - quoted (#1489697)"); + + $html = " + test"; + + $washer = new rcube_washtml; + $washed = $washer->wash($html); + + $this->assertRegExp('|style="font-family: 新細明體; color: red"|', $washed, "Unicode chars in style attribute (#1489697)"); } } -- cgit v1.2.3