From 68cf8f19d23e8bda1b7d903702bfe497408d1e4c Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 18 Mar 2014 11:12:08 +0100 Subject: Add some tests --- tests/Framework/Washtml.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests') diff --git a/tests/Framework/Washtml.php b/tests/Framework/Washtml.php index 7485d4383..08cf147c8 100644 --- a/tests/Framework/Washtml.php +++ b/tests/Framework/Washtml.php @@ -124,4 +124,18 @@ class Framework_Washtml extends PHPUnit_Framework_TestCase } } + /** + * Test color style handling (#1489697) + */ + function test_color_style() + { + $html = "

a

"; + + $washer = new rcube_washtml; + $washed = $washer->wash($html); + + $this->assertRegExp('|color: rgb\(241, 245, 218\)|', $washed, "Color style (#1489697)"); + $this->assertRegExp('|font-size: 10px|', $washed, "Font-size style"); + } + } -- cgit v1.2.3