Package org.zkoss.ztl

Examples of org.zkoss.ztl.JQuery


public class SS_090_Test extends SSAbstractTestCase {

    @Override
    protected void executeTest() {
        JQuery cell_O_6 = getSpecifiedCell(14, 5);
        click(jq("$gridlinesCheckbox input"));
        waitResponse();
        cell_O_6 = getSpecifiedCell(14, 5);
        verifyTrue(ColorVerifingHelper.isEqualColor("rgb(208, 215, 233)",
                cell_O_6.parent().css("border-bottom-color")));
    }
View Full Code Here


public class SS_061_Test extends SSAbstractTestCase {

    @Override
    protected void executeTest() {
        JQuery cell_B_8 = getSpecifiedCell(1, 7);
        clickCell(cell_B_8);
        clickCell(cell_B_8);
        click(jq("i.z-combobox-rounded-btn:eq(1)"));
        JQuery fontSizeItem = jq(".z-combobox-rounded-pp .z-comboitem-text").eq(13);
       
        if (fontSizeItem != null) {
            click(fontSizeItem);
        }
    }
View Full Code Here

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

   */
    @Override
    protected void executeTest() {
      focusOnCell(1, 7);
        click(jq("$fontCtrlPanel $fontFamily:visible i.z-combobox-rounded-btn"));
        JQuery fontItem = jq(".z-combobox-rounded-pp .timeFont:visible");
       
        click(fontItem);
        String cellFont = getCellFontFamily(1, 7);
        verifyTrue("Unexcepted result: " + cellFont, "Times New Roman".equalsIgnoreCase(cellFont));
    }
View Full Code Here

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

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]*?")) {
View Full Code Here

public class SS_037_Test extends SSAbstractTestCase {

    @Override
    protected void executeTest() {
        JQuery cell = getSpecifiedCell(5, 20);
        clickCell(cell);
        clickCell(cell);

      click(jq("$insertMenu"));
      waitResponse();
View Full Code Here

  /**
   * Paste selection
   */
    @Override
    protected void executeTest() {
        JQuery cell_F_21 = getSpecifiedCell(5, 20);
       
        String sourceValue = getCellText(cell_F_21);
        clickCell(cell_F_21);
        clickCell(cell_F_21);
      click("$editMenu");
      waitResponse();
      click("$copy");
      waitResponse();
        JQuery cell_M_10 = getSpecifiedCell(12, 9);
        clickCell(cell_M_10);
      click("$editMenu");
      waitResponse();
      click("$paste");
      waitResponse();
View Full Code Here

public class SS_024_Test extends SSAbstractTestCase {

  @Override
  protected void executeTest() {
    JQuery cell_F_11 = getSpecifiedCell(5, 10);
    String origValue = getCellText(cell_F_11);
    JQuery cell_G_11 = getSpecifiedCell(6, 10);
    String rightCellValue = getCellText(cell_G_11);
    clickCell(cell_F_11);
    clickCell(cell_F_11);
    click("$editMenu");
    waitResponse();
View Full Code Here

  /**
   * Clear Style
   */
    @Override
    protected void executeTest() {
        JQuery cell_F_5 = getSpecifiedCell(5, 5);
        String orgTextColor = getCellTextColor(5, 5);
        clickCell(cell_F_5);
        clickCell(cell_F_5);
      click("$editMenu");
      waitResponse();
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.