summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-03-18 11:12:08 +0100
committerAleksander Machniak <alec@alec.pl>2014-03-18 11:12:08 +0100
commit68cf8f19d23e8bda1b7d903702bfe497408d1e4c (patch)
treee32789a378d09e7ebfa982c717fcd17c5c5fefd3
parent9da808470df7efe6e93d1cdafea904be2cf670a9 (diff)
Add some tests
-rw-r--r--tests/Framework/Washtml.php14
1 files changed, 14 insertions, 0 deletions
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 = "<p style=\"font-size: 10px; color: rgb(241, 245, 218)\">a</p>";
+
+ $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");
+ }
+
}