Package booton.css

Examples of booton.css.MyCSS.countProperty()


        MyCSS css = new MyCSS();
        css.transform.translateY(one.add(two));

        assert css.has("-webkit-transform", "translateY(-webkit-calc(1px + 2em))");
        assert css.has("transform", "translateY(calc(1px + 2em))");
        assert css.countProperty() == 2;
    }

    @Test
    public void noneInPrefixedProperty() throws Exception {
        MyCSS css = new MyCSS();
View Full Code Here


        MyCSS css = new MyCSS();
        css.transform.translateY(one);

        assert css.has("-webkit-transform", "translateY(1px)");
        assert css.has("transform", "translateY(1px)");
        assert css.countProperty() == 2;
    }
}
View Full Code Here

    @Test
    public void base() throws Exception {
        MyCSS css = new MyCSS();
        css.background.image(new RadialGradient().color(black, white));

        assert css.countProperty() == 2;
        assert css.has("background-image", "radial-gradient(black,white)");
        assert css.has("background-image", "-webkit-radial-gradient(black,white)");
    }

    @Test
View Full Code Here

    @Test
    public void colors() throws Exception {
        MyCSS css = new MyCSS();
        css.background.image(new RadialGradient().color(black, white, black));

        assert css.countProperty() == 2;
        assert css.has("background-image", "radial-gradient(black,white,black)");
        assert css.has("background-image", "-webkit-radial-gradient(black,white,black)");
    }

    @Test
View Full Code Here

    @Test
    public void percentage() throws Exception {
        MyCSS css = new MyCSS();
        css.background.image(new RadialGradient().color(black, 10).color(white, 90));

        assert css.countProperty() == 2;
        assert css.has("background-image", "radial-gradient(black 10%,white 90%)");
        assert css.has("background-image", "-webkit-radial-gradient(black 10%,white 90%)");
    }

    @Test
View Full Code Here

    @Test
    public void length() throws Exception {
        MyCSS css = new MyCSS();
        css.background.image(new RadialGradient().color(black, one).color(white, two));

        assert css.countProperty() == 2;
        assert css.has("background-image", "radial-gradient(black 10px,white 20em)");
        assert css.has("background-image", "-webkit-radial-gradient(black 10px,white 20em)");
    }

    @Test
View Full Code Here

    @Test
    public void repeat() throws Exception {
        MyCSS css = new MyCSS();
        css.background.image(new RadialGradient().repeat().color(black, white));

        assert css.countProperty() == 2;
        assert css.has("background-image", "repeating-radial-gradient(black,white)");
        assert css.has("background-image", "-webkit-repeating-radial-gradient(black,white)");
    }

    @Test
View Full Code Here

    @Test
    public void position() throws Exception {
        MyCSS css = new MyCSS();
        css.background.image(new RadialGradient().position(pos).color(black, white));

        assert css.countProperty() == 2;
        assert css.has("background-image", "radial-gradient(at 10px 20em,black,white)");
        assert css.has("background-image", "-webkit-radial-gradient(10px 20em,black,white)");
    }
}
View Full Code Here

    @Test
    public void base() throws Exception {
        MyCSS css = new MyCSS();
        css.background.image(new LinearGradient().color(black, white));

        assert css.countProperty() == 2;
        assert css.has("background-image", "linear-gradient(black,white)");
        assert css.has("background-image", "-webkit-linear-gradient(black,white)");
    }

    @Test
View Full Code Here

    @Test
    public void angle() throws Exception {
        MyCSS css = new MyCSS();
        css.background.image(new LinearGradient().angle(10, deg).color(black, white));

        assert css.countProperty() == 2;
        assert css.has("background-image", "linear-gradient(10deg,black,white)");
        assert css.has("background-image", "-webkit-linear-gradient(280deg,black,white)");
    }

    @Test
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.