Package org.zkoss.ztl

Examples of org.zkoss.ztl.JQuery$JQueryIerator


      waitResponse();
      click(jq("$freezeRow3"));
      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(3)");
      int width = c.width();
      verifyTrue("no. of children=" + clen + ", widht=" + width, clen == 3 && jq("div.zstopblock").children("div:nth-child(3)").width() != 0);
    }
View Full Code Here


      mouseOver(jq("$freezeCols"));
      waitResponse();
      click(jq("$freezeCol4"));
      waitResponse();
      // TODO: Verify correct row is frozen
      JQuery p = jq("div.zsleftblock");
      verifyTrue(p.width() != 0);
      JQuery r = p.children("div:nth-child(4)");
      int numOfCells = r.children().length();
      int width = r.width();
      verifyTrue("numOfCells=" + numOfCells + ", widht=" + width, r.width() != 0 && numOfCells == 4);
    }
View Full Code Here

   * Selection remain focus
   */
    @Override
    protected void executeTest() {
      verifyFalse(isFocusOnCell(5, 20));
      JQuery cell = focusOnCell(5, 20);

      click("$fileMenu");
      verifyTrue(isFocusOnCell(cell));
    }
View Full Code Here

    protected void executeTest() {
        // Select L13:M14
      selectCells(11, 12, 12, 13);
       
        // Click Border icon
        JQuery borderIcon = jq("$fastIconBtn $borderBtn:visible");
        mouseOver(borderIcon);
        waitResponse();
        clickAt(borderIcon, "30,0");
        waitResponse();
       
View Full Code Here

public class SS_059_Test extends SSAbstractTestCase {

    @Override
    protected void executeTest() {
        JQuery cell_F_21 = getSpecifiedCell(5, 20);
        clickCell(cell_F_21);
        clickCell(cell_F_21);
        click(jq("$copyBtn"));
       
        // Verify
View Full Code Here

      waitResponse();
      click(jq("$freezeRow5"));
      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(5)");
      int width = c.width();
      verifyTrue("no. of children=" + clen + ", widht=" + width, clen == 5 && jq("div.zstopblock").children("div:nth-child(5)").width() != 0);
    }
View Full Code Here

      waitResponse();
      click(jq("$freezeRow2"));
      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(2)");
      int width = c.width();
      verifyTrue("no. of children=" + clen + ", widht=" + width, clen == 2 && jq("div.zstopblock").children("div:nth-child(2)").width() != 0);
    }
View Full Code Here

public class SS_023_Test extends SSAbstractTestCase {

  @Override
  protected void executeTest() {
    JQuery cell_B_12 = getSpecifiedCell(1, 11);
    String origValue = getCellText(cell_B_12);
    JQuery cell_B_13 = getSpecifiedCell(1, 12);
    String downCellValue = getCellText(cell_B_13);
    clickCell(cell_B_12);
    clickCell(cell_B_12);
    click("$editMenu");
    waitResponse();
View Full Code Here

        keyUpNative(C);
        waitResponse();
        keyUpNative(CTRL);
        waitResponse();

        JQuery L13 = rightClickCell(11, 12);
        waitResponse();
       
        // Click Paste Special on the context menu
        click(jq("$pasteSpecial"));
        waitResponse();
View Full Code Here

//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);
View Full Code Here

TOP

Related Classes of org.zkoss.ztl.JQuery$JQueryIerator

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.