Perspective extends AbstractCssProperty<Perspective> { @Override public String getCssValue() { return cssValue; } Perspective();  Perspective(final String cssValue);  Perspective(final Perspective perspective);  Perspective(final float percent);  Perspective(final float value, final CssLengthUnit cssLengthUnit); Perspective setValue(final float value,
            final CssLengthUnit cssLengthUnit); void setPercent(final float percent); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); Float getValue(); CssLengthUnit getUnit(); @Override Perspective setCssValue(final String cssValue); void setAsAuto(); static boolean isValid(final String cssValue); static final String NONE; }
@Test public void testPerspectiveString() { { Perspective perspective = new Perspective(Perspective.NONE); assertEquals(Perspective.NONE, perspective.getCssValue()); } { Perspective perspective = new Perspective("50px"); assertEquals("50px", perspective.getCssValue()); } }
@Test public void testPerspectivePerspective() { Perspective perspective = new Perspective("50px"); Perspective perspective1 = new Perspective(perspective); assertEquals("50px", perspective1.getCssValue()); }
@Test public void testPerspectiveFloat() { Perspective perspective = new Perspective(75); assertEquals("75.0%", perspective.getCssValue()); }
@Test public void testGetCssValue() { Perspective perspective = new Perspective(); assertEquals(Perspective.NONE, perspective.getCssValue()); perspective.setCssValue("25px"); assertEquals("25px", perspective.getCssValue()); }