* @param result Element whose name and Styles to compare
*/
private void assertStylesEqual(Element original, Element result) {
assertEquals(original.getName(), result.getName());
Styles originalStyles = original.getStyles();
Styles resultStyles = result.getStyles();
if (originalStyles == null) {
assertNull(resultStyles);
} else {
PropertyValues originalValues = originalStyles.getPropertyValues();
PropertyValues resultValues = resultStyles.getPropertyValues();
StylePropertyDefinitions definitions =
StylePropertyDetails.getDefinitions();
for(Iterator i = definitions.stylePropertyIterator(); i.hasNext();) {
StyleProperty property = (StyleProperty)i.next();
assertEquals(originalValues.getComputedValue(property),