Package booton.css.property

Source Code of booton.css.property.DisplayTest

/*
* Copyright (C) 2013 Nameless Production Committee
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*          http://opensource.org/licenses/mit-license.php
*/
package booton.css.property;

import static booton.css.Vendor.*;

import org.junit.Test;

import booton.css.MyCSS;

/**
* @version 2013/07/16 14:10:31
*/
public class DisplayTest {

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

        assert css.has("display", "block");
        assert css.noVendor();
    }

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

        assert css.has("display", "inline");
        assert css.noVendor();
    }

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

        assert css.has("display", "inline-block");
        assert css.noVendor();
    }

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

        assert css.has("display", "flex");
        assert css.has("display", "-webkit-flex");
        assert css.has("display", "-webkit-box");
        assert css.no(IE);
        assert css.no(Mozilla);
    }

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

        assert css.has("display", "inline-flex");
        assert css.has("display", "-webkit-inline-flex");
        assert css.has("display", "-webkit-box");
        assert css.no(IE);
        assert css.no(Mozilla);
    }
}
TOP

Related Classes of booton.css.property.DisplayTest

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.