|
|
@ -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");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|