WebkitFlexGrow extends AbstractCssProperty<WebkitFlexGrow> { public void setAsInitial() { setCssValue(INITIAL); } WebkitFlexGrow();  WebkitFlexGrow(final String cssValue);  WebkitFlexGrow(final WebkitFlexGrow webkitFlexGrow);  WebkitFlexGrow(final float value); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); Float getValue(); void setValue(final float value); @Override WebkitFlexGrow setCssValue(final String cssValue); void setAsInitial(); void setAsInherit(); static boolean isValid(final String cssValue); static final String INITIAL; static final String INHERIT; }
@Test public void testSetAsInitial() { WebkitFlexGrow webkitFlexGrow = new WebkitFlexGrow(); webkitFlexGrow.setCssValue("0.5"); assertEquals(Float.valueOf(0.5F), webkitFlexGrow.getValue()); webkitFlexGrow.setAsInitial(); assertEquals(WebkitFlexGrow.INITIAL, webkitFlexGrow.getCssValue()); assertNull(webkitFlexGrow.getValue()); }