Package

Source Code of SS_062_Test

import org.zkoss.ztl.JQuery;


public class SS_062_Test extends SSAbstractTestCase {

    @Override
    protected void executeTest() {
        JQuery cell_B_8 = getSpecifiedCell(1, 7);
        clickCell(cell_B_8);
        clickCell(cell_B_8);
        click(jq("$boldBtn"));
       
        cell_B_8 = getSpecifiedCell(1, 7);
        String style = cell_B_8.css("font-weight");
       
        if (style != null) {
            if (style.matches("[a-zA-Z]*?")) {
                verifyTrue("Unexcepted result: " + style, "bold".equalsIgnoreCase(style));
            } else if (style.matches("[0-9]*?")) {
                int styleNum = Integer.parseInt(style);
                verifyTrue("Unexcepted result: " + style, styleNum > 400);
            } else {
                verifyTrue("Unknown result: " + style, false);
            }
        } else {
            verifyTrue("Cannot get style of specified cell!", false);
        }
    }

}
TOP

Related Classes of SS_062_Test

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.