Package

Source Code of SS_035_Test

import org.zkoss.ztl.JQuery;

//Format>>Font>>Align>>Center
public class SS_035_Test extends SSAbstractTestCase {

    @Override
    protected void executeTest() {
        JQuery cell_J_22 = getSpecifiedCell(9, 21);
        clickCell(cell_J_22);
        clickCell(cell_J_22);
    click(jq("$formatMenu"));
    waitResponse();
    mouseOver(jq("$align"));   
    waitResponse();
    click(jq("$alignCenter"));
    waitResponse();
     
        cell_J_22 = getSpecifiedCell(9, 21);
        String textAlign = cell_J_22.css("text-align");
       
        if (textAlign != null) {
            verifyTrue("Unexcepted result: " + textAlign, textAlign.equalsIgnoreCase("center"));
        } else {
            verifyTrue("Cannot get style of specified cell!", false);
        }
    }

}
TOP

Related Classes of SS_035_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.