Package org.zkoss.ztl

Examples of org.zkoss.ztl.JQuery.width()


      JQuery p = jq("div.zsleftblock");
      verifyTrue(p.width() != 0);
      JQuery r = p.children("div:nth-child(9)");
      int numOfCells = r.children().length();
      int width = r.width();
      verifyTrue("numOfCells=" + numOfCells + ", widht=" + width, r.width() != 0 && numOfCells == 9);
    }
}
View Full Code Here


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

public class SS_084_Test extends SSAbstractTestCase {

    @Override
    protected void executeTest() {
        JQuery cell_K_6 = loadCellK6();
        int cellK6Width = cell_K_6.width();
        selectCells(10, 5, 11, 5);
     
        // Merge cells
        click(jq("$mergeCellBtn"));
       
View Full Code Here

        // Merge cells
        click(jq("$mergeCellBtn"));
       
        // Verify
        cell_K_6 = loadCellK6();
        int currentCellWidth = cell_K_6.width();
        verifyTrue("Unexcepted result: original width = " +
                cellK6Width + ", merged cell width = " + currentCellWidth,
                cellK6Width < currentCellWidth);
    }
   
View Full Code Here

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

      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

      // 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

      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

      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

      // 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

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.