Package booton.css

Examples of booton.css.MyCSS$Rule


        assert css.countProperty() == 2;
    }

    @Test
    public void skewX() throws Exception {
        MyCSS css = new MyCSS();
        css.transform.skewX(10, deg);

        assert css.has("-webkit-transform", "skewX(10deg)");
        assert css.has("transform", "skewX(10deg)");
        assert css.countProperty() == 2;
    }
View Full Code Here


        assert css.countProperty() == 2;
    }

    @Test
    public void skewY() throws Exception {
        MyCSS css = new MyCSS();
        css.transform.skewY(10, deg);

        assert css.has("-webkit-transform", "skewY(10deg)");
        assert css.has("transform", "skewY(10deg)");
        assert css.countProperty() == 2;
    }
View Full Code Here

*/
public class OverflowTest {

    @Test
    public void normal() throws Exception {
        MyCSS css = new MyCSS();
        css.overflow.hidden();

        assert css.has("overflow", "hidden");
        assert css.countProperty() == 1;
    }
View Full Code Here

        assert css.countProperty() == 1;
    }

    @Test
    public void x() throws Exception {
        MyCSS css = new MyCSS();
        css.overflow.x.scroll();

        assert css.has("overflow-x", "scroll");
        assert css.countProperty() == 1;
    }
View Full Code Here

        assert css.countProperty() == 1;
    }

    @Test
    public void y() throws Exception {
        MyCSS css = new MyCSS();
        css.overflow.y.visible();

        assert css.has("overflow-y", "visible");
        assert css.countProperty() == 1;
    }
View Full Code Here

        assert css.countProperty() == 1;
    }

    @Test
    public void xy() throws Exception {
        MyCSS css = new MyCSS();
        css.overflow.x.auto().y.hidden();

        assert css.has("overflow-x", "auto");
        assert css.has("overflow-y", "hidden");
        assert css.countProperty() == 2;
    }
View Full Code Here

*/
public class OutlineTest {

    @Test
    public void width() throws Exception {
        MyCSS css = new MyCSS();
        css.outline.width(2, em);

        assert css.outline.top.width().equals("2em");
        assert css.outline.right.width().equals("2em");
        assert css.outline.bottom.width().equals("2em");
        assert css.outline.left.width().equals("2em");
        assert css.has("outline-width", "2em");
    }
View Full Code Here

        assert css.has("outline-width", "2em");
    }

    @Test
    public void style() throws Exception {
        MyCSS css = new MyCSS();
        css.outline.solid();

        assert css.outline.top.style() == Solid;
        assert css.outline.left.style() == Solid;
        assert css.outline.bottom.style() == Solid;
        assert css.outline.right.style() == Solid;
        assert css.has("outline-style", "solid");
    }
View Full Code Here

        assert css.has("outline-style", "solid");
    }

    @Test
    public void color() throws Exception {
        MyCSS css = new MyCSS();
        css.outline.color(White);

        assert css.outline.top.color() == White;
        assert css.outline.left.color() == White;
        assert css.outline.bottom.color() == White;
        assert css.outline.right.color() == White;
        assert css.has("outline-color", "white");
    }
View Full Code Here

        assert css.has("outline-color", "white");
    }

    @Test
    public void chain() throws Exception {
        MyCSS css = new MyCSS();
        css.outline.solid().width(2, em).color(Black);

        assert css.has("outline", "2em solid black");
    }
View Full Code Here

TOP

Related Classes of booton.css.MyCSS$Rule

Copyright © 2018 www.massapicom. 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.