Package booton.css

Examples of booton.css.MyCSS


        assert css.has("outline", "2em solid black");
    }

    @Test
    public void top() throws Exception {
        MyCSS css = new MyCSS();
        css.outline.top.solid().width(1, px).color(Black);

        assert css.outline.top.color() == Black;
        assert css.outline.top.style() == Solid;
        assert css.outline.top.width().equals("1px");
        assert css.has("outline-top", "1px solid black");
    }
View Full Code Here


        assert css.has("outline-top", "1px solid black");
    }

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

        assert css.outline.top.color() == Black;
        assert css.has("outline-top-color", "black");
    }
View Full Code Here

        assert css.no(Mozilla, IE);
    }

    @Test
    public void delay() throws Exception {
        MyCSS css = new MyCSS();
        css.transition.delay(10, s);

        assert css.has("transition", "10s");
        assert css.has("-webkit-transition", "10s");
        assert css.no(Mozilla, IE);
    }
View Full Code Here

        assert css.no(Mozilla, IE);
    }

    @Test
    public void duration() throws Exception {
        MyCSS css = new MyCSS();
        css.transition.duration(10, s);

        assert css.has("transition", "10s");
        assert css.has("-webkit-transition", "10s");
        assert css.no(Mozilla, IE);
    }
View Full Code Here

        assert css.no(Mozilla, IE);
    }

    @Test
    public void timing() throws Exception {
        MyCSS css = new MyCSS();
        css.transition.timing.ease();

        assert css.has("transition", "ease");
        assert css.has("-webkit-transition", "ease");
        assert css.no(Mozilla, IE);
    }
View Full Code Here

*/
public class OpacityTest {

    @Test
    public void point() throws Exception {
        MyCSS css = new MyCSS();
        css.box.opacity(0.5);

        assert css.has("opacity", "0.5");
    }
View Full Code Here

        assert css.has("opacity", "0.5");
    }

    @Test
    public void one() throws Exception {
        MyCSS css = new MyCSS();
        css.box.opacity(1);

        assert css.has("opacity", "1");
    }
View Full Code Here

        assert css.has("opacity", "1");
    }

    @Test
    public void zero() throws Exception {
        MyCSS css = new MyCSS();
        css.box.opacity(0);

        assert css.has("opacity", "0");
    }
View Full Code Here

*/
public class FlexDirectionTest {

    @Test
    public void row() throws Exception {
        MyCSS css = new MyCSS();
        css.display.flex().direction.row();

        assert css.has("flex-direction", "row");
        assert css.has("-webkit-flex-direction", "row");
        assert css.has("-webkit-box-direction", "normal");
        assert css.has("-webkit-box-orient", "horizontal");
        assert css.has("-ms-flex-direction", "row");
        assert css.no(Vendor.Mozilla);
    }
View Full Code Here

        assert css.no(Vendor.Mozilla);
    }

    @Test
    public void rowReverse() throws Exception {
        MyCSS css = new MyCSS();
        css.display.flex().direction.rowReverse();

        assert css.has("flex-direction", "row-reverse");
        assert css.has("-webkit-flex-direction", "row-reverse");
        assert css.has("-webkit-box-direction", "reverse");
        assert css.has("-webkit-box-orient", "horizontal");
        assert css.has("-ms-flex-direction", "row-reverse");
        assert css.no(Vendor.Mozilla);
    }
View Full Code Here

TOP

Related Classes of booton.css.MyCSS

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.