Examples of countProperty()


Examples of booton.css.MyCSS.countProperty()

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

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

    @Test
View Full Code Here

Examples of booton.css.MyCSS.countProperty()

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

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

    @Test
View Full Code Here

Examples of booton.css.MyCSS.countProperty()

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

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

    @Test
View Full Code Here

Examples of booton.css.MyCSS.countProperty()

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

        assert css.countProperty() == 2;
        assert css.has("background-image", "repeating-linear-gradient(black,white)");
        assert css.has("background-image", "-webkit-repeating-linear-gradient(black,white)");
    }
}
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.