Package org.zkoss.ztl

Examples of org.zkoss.ztl.JQuery


public class SS_036_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("$alignRight"));
    waitResponse();
     
        cell_J_22 = getSpecifiedCell(9, 21);
        String textAlign = cell_J_22.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


  @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

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

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

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

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

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

      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

      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

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

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.