Examples of JQuery


Examples of org.zkoss.ztl.JQuery

  @Override
  protected void executeTest() {
    rightClickCells(1,10,5,12);

        // Click Border icon
        JQuery borderIcon = jq("$borderBtn:eq(2)");
        mouseOver(borderIcon);
        waitResponse();
       
        //TODO: didn't find the appropriate offset for IE8 to click
        //the same code works in case 69,
View Full Code Here

Examples of org.zkoss.ztl.JQuery

public class SS_063_Test extends SSAbstractTestCase {

    @Override
    protected void executeTest() {
        JQuery cell_B_8 = getSpecifiedCell(1, 7);
        clickCell(cell_B_8);
        clickCell(cell_B_8);
        click(jq("$italicBtn"));
       
        cell_B_8 = getSpecifiedCell(1, 7);
        String style = cell_B_8.css("font-style");
       
        if (style != null) {
            verifyTrue("Unexcepted result: " + style, "italic".equalsIgnoreCase(style));
        } else {
            verifyTrue("Cannot get style of specified cell!", false);
View Full Code Here

Examples of org.zkoss.ztl.JQuery

public class SS_070_Test extends SSAbstractTestCase {

    @Override
    protected void executeTest() {
        // Select cell
        JQuery cell_L_13 = getSpecifiedCell(11, 12);
        clickCell(cell_L_13);
        clickCell(cell_L_13);
       
        focusOnCell(11, 12);
        clickDropdownButtonMenu("$fastIconBtn $borderBtn", "Top border");
View Full Code Here

Examples of org.zkoss.ztl.JQuery

public class SS_064_Test extends SSAbstractTestCase {

    @Override
    protected void executeTest() {
        JQuery cell_B_8 = getSpecifiedCell(1, 7);
        clickCell(cell_B_8);
        clickCell(cell_B_8);
        click(jq("$underlineBtn"));
       
        cell_B_8 = getSpecifiedCell(1, 7);
        String style = cell_B_8.css("text-decoration");
       
        if (style != null) {
            verifyTrue("Unexcepted result: " + style, "underline".equalsIgnoreCase(style));
        } else {
            verifyTrue("Cannot get style of specified cell!", false);
View Full Code Here

Examples of org.zkoss.ztl.JQuery

public class SS_089_Test extends SSAbstractTestCase {

    @Override
    protected void executeTest() {
        // Custom sort - Just show dialog and check it exists or not.
        JQuery cell_B_19 = getSpecifiedCell(1, 18);
        clickCell(cell_B_19);
        clickCell(cell_B_19);
       
        // Select - B19 ~ I22
        selectCells(1, 18, 8, 21);
View Full Code Here

Examples of org.zkoss.ztl.JQuery

public class SS_082_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=\"Center Text\"]").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("center"));
        } else {
            verifyTrue("Cannot get style of specified cell!", false);
View Full Code Here

Examples of org.zkoss.ztl.JQuery

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

Examples of org.zkoss.ztl.JQuery

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

Examples of org.zkoss.ztl.JQuery

public class SS_031_Test extends SSAbstractTestCase {

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

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

Examples of org.zkoss.ztl.JQuery

public class SS_094_Test extends SSAbstractTestCase {

    @Override
    protected void executeTest() {
        // Select a cell
        JQuery cell_L_13 = getCell_L13();
        JQuery formulaBar = jq("$formulaEditor");
        clickCell(cell_L_13);
        clickCell(cell_L_13);
       
        // Input value on formula bar
        // type(formulaBar, "123456"); // <-- It has issue.
        focus(formulaBar);
        keyPress(formulaBar, "1");
        keyPress(formulaBar, "2");
        keyPress(formulaBar, "3");
        keyPress(formulaBar, "4");
        keyPress(formulaBar, "5");
        keyPress(formulaBar, "6");
        keyPressEnter(formulaBar);
       
        // Verify
        cell_L_13 = getCell_L13();
        clickCell(cell_L_13);
        verifyEquals(formulaBar.val(), cell_L_13.text());
    }
View Full Code Here
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.