}
public void testParseSingleStyle() throws Exception
{
StyleSheet s = new StyleSheet();
CSSStyleRule rule = new CSSStyleRule(s, null);
rule.setPropertyValueAsString(BoxStyleKeys.HEIGHT, "10%");
assertEquals("10%", rule.getPropertyCSSValue(BoxStyleKeys.HEIGHT).toString());
rule.setPropertyValueAsString(BoxStyleKeys.HEIGHT, "10pt");
assertEquals("10pt", rule.getPropertyCSSValue(BoxStyleKeys.HEIGHT).toString());
rule.setPropertyValueAsString(BoxStyleKeys.HEIGHT, "10px");
assertEquals("10px", rule.getPropertyCSSValue(BoxStyleKeys.HEIGHT).toString());
}