Package

Source Code of SS_084_Test

import org.zkoss.ztl.JQuery;

//Toolbar>>Merge cells
//merge k6:L6
public class SS_084_Test extends SSAbstractTestCase {

    @Override
    protected void executeTest() {
        JQuery cell_K_6 = loadCellK6();
        int cellK6Width = cell_K_6.width();
        selectCells(10, 5, 11, 5);
     
        // Merge cells
        click(jq("$mergeCellBtn"));
       
        // Verify
        cell_K_6 = loadCellK6();
        int currentCellWidth = cell_K_6.width();
        verifyTrue("Unexcepted result: original width = " +
                cellK6Width + ", merged cell width = " + currentCellWidth,
                cellK6Width < currentCellWidth);
    }
   
    private JQuery loadCellK6() {
        return getSpecifiedCell(10, 5);
    }

}
TOP

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