MozFlexGrow extends AbstractCssProperty<MozFlexGrow> { public void setAsInitial() { setCssValue(INITIAL); } MozFlexGrow();  MozFlexGrow(final String cssValue);  MozFlexGrow(final MozFlexGrow mozFlexGrow);  MozFlexGrow(final float value); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); Float getValue(); void setValue(final float value); @Override MozFlexGrow 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() { MozFlexGrow mozFlexGrow = new MozFlexGrow(); mozFlexGrow.setCssValue("0.5"); assertEquals(Float.valueOf(0.5F), mozFlexGrow.getValue()); mozFlexGrow.setAsInitial(); assertEquals(MozFlexGrow.INITIAL, mozFlexGrow.getCssValue()); assertNull(mozFlexGrow.getValue()); }