Package org.zkoss.ztl

Examples of org.zkoss.ztl.JQuery


public class SS_079_Test extends SSAbstractTestCase {

    @Override
    protected void executeTest() {
        JQuery cell_J_22 = getSpecifiedCell(9, 21);
        clickCell(cell_J_22);
        clickCell(cell_J_22);
       
    click(jq("@dropdownbutton$halignBtn div.z-dpbutton-arrow:eq(0)"));
    waitResponse();
    click(jq("@menuitem[label=\"Align Text Left\"]").first());
    waitResponse();
       
        cell_J_22 = getSpecifiedCell(9, 21);
        String textAlign = cell_J_22.css("text-align");
       
        if (textAlign != null) {
            verifyTrue("Unexcepted result: " + textAlign, textAlign.equalsIgnoreCase("left"));
        } else {
            verifyTrue("Cannot get style of specified cell!", false);
View Full Code Here


public class SS_083_Test extends SSAbstractTestCase {

    @Override
    protected void executeTest() {
        JQuery cell_F_6 = loadCell();
        clickCell(cell_F_6);
        clickCell(cell_F_6);
        int originalWidth = cell_F_6.find("div").last().width();
        String beforeCss = cell_F_6.css("white-space");
        click(jq("$fastIconBtn $wrapTextBtn:visible"));
        System.out.println(">>>beforeCss:"+beforeCss);
        waitResponse();

        int currentWidth = cell_F_6.find("div").last().width();
        String afterCss = cell_F_6.css("white-space");
        System.out.println(">>>afterCss:"+afterCss);
        clickCell(cell_F_6);
        clickCell(cell_F_6);
        click(jq("$fastIconBtn $wrapTextBtn:visible"));
        waitResponse();
View Full Code Here

public class SS_181_Test extends SSAbstractTestCase {

    @Override
    protected void executeTest() {
        // Select source cell
        JQuery cell_J_13 = getSpecifiedCell(9, 12);
        clickCell(cell_J_13);
        clickCell(cell_J_13);
       
        // Ctrl + C
        keyDownNative(CTRL);
        waitResponse();
        keyDownNative(C);
        waitResponse();
        keyUpNative(C);
        waitResponse();
        keyUpNative(CTRL);
        waitResponse();
       
        // Right click target cell
        JQuery cell_L_13 = loadTargetCell();
        clickCell(cell_L_13);
        rightClickCell(cell_L_13);
        waitResponse();
       
        // Click Paste Special on the context menu
View Full Code Here

   * Paste All expect border
   */
    @Override
    protected void executeTest() {
        // Select source cell
        JQuery cell_J_13 = getSpecifiedCell(9, 12);
        String sourceBorderBottomStyle = getCellBorderStyle(9, 12, BORDER_BOTTOM);
        String sourceBorderRightStyle = getCellBorderStyle(9, 12, BORDER_RIGHT);
        clickCell(cell_J_13);
        clickCell(cell_J_13);
       
View Full Code Here

public class SS_080_Test extends SSAbstractTestCase {

    @Override
    protected void executeTest() {
        JQuery cell_B_8 = getSpecifiedCell(1, 7);
        clickCell(cell_B_8);
        clickCell(cell_B_8);
       
    click(jq("@dropdownbutton$halignBtn div.z-dpbutton-arrow:eq(0)"));
    waitResponse();
    click(jq("@menuitem[label=\"Align Text Right\"]").first());
    waitResponse();
               
        cell_B_8 = getSpecifiedCell(1, 7);
        String textAlign = cell_B_8.css("text-align");
       
        if (textAlign != null) {
            verifyTrue("Unexcepted result: " + textAlign, textAlign.equalsIgnoreCase("right"));
        } else {
            verifyTrue("Cannot get style of specified cell!", false);
View Full Code Here

      waitResponse();
      click(jq("$freezeRow8"));
      waitResponse();
      // TODO: Verify correct row is frozen
      verifyTrue(jq("div.zstopblock").width() != 0);
      JQuery p = jq("div.zstopblock");
      int clen = p.children().length();
      JQuery c = p.children("div:nth-child(8)");
      int width = c.width();
      verifyTrue("no. of children=" + clen + ", widht=" + width, clen == 8 && jq("div.zstopblock").children("div:nth-child(8)").width() != 0);
    }
View Full Code Here

         * spreadsheet mask is invisible, cell text shall be empty
         */
        verifyFalse("mask shall be invisible", isWidgetVisible(".zssmask")) ;

      Random randomGenerator = new Random();
        JQuery newc = getSpecifiedCell(randomGenerator.nextInt(25), randomGenerator.nextInt(25));
        String newcValue = getCellText(newc);
        verifyTrue("".equals(newcValue) || newc == null);
    }
View Full Code Here

      waitResponse();
      click(jq("$freezeRow6"));
      waitResponse();
      // TODO: Verify correct row is frozen
      verifyTrue(jq("div.zstopblock").width() != 0);
      JQuery p = jq("div.zstopblock");
      int clen = p.children().length();
      JQuery c = p.children("div:nth-child(6)");
      int width = c.width();
      verifyTrue("no. of children=" + clen + ", widht=" + width, clen == 6 && jq("div.zstopblock").children("div:nth-child(6)").width() != 0);
    }
View Full Code Here

    }
   
    public String setCellFontColorByToolbarbutton(int lCol, int tRow, int rCol, int bRow, int nthColorPalette) {
      selectCells(lCol, tRow, rCol, bRow);
      click(jq("$fontCtrlPanel $fontColorBtn"));
        JQuery color = jq(".z-colorpalette:visible div.z-colorpalette-colorbox:nth-child(" + nthColorPalette + ")");
        String selectedColor = color.first().text();
      mouseOver(color);
      click(color);
      waitResponse();
      return selectedColor;
    }
View Full Code Here

    }
   
    public String setCellBackgroundColorByToolbarbutton(int lCol, int tRow, int rCol, int bRow, int nthColorPalette) {
      selectCells(lCol, tRow, rCol, bRow);
      click(jq("$fontCtrlPanel $cellColorBtn"));
        JQuery color = jq(".z-colorpalette:visible div.z-colorpalette-colorbox:nth-child(" + nthColorPalette + ")");
        String selectedColor = color.first().text();
      mouseOver(color);
      click(color);
      waitResponse();
      return selectedColor;
    }
View Full Code Here

TOP

Related Classes of org.zkoss.ztl.JQuery

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.