Package org.zkoss.ztl

Examples of org.zkoss.ztl.JQuery$JQueryIerator


public class SS_086_1_Test extends SSAbstractTestCase {

    @Override
    protected void executeTest() {
        JQuery cell_K_6 = loadCellK6();
        clickCell(cell_K_6);
        clickCell(cell_K_6);
        click(jq("$insertHyperlinkBtn"));
        waitResponse();
        String urlValue = "http://ja.wikipedia.org/wiki";
        type(jq("$addrCombobox input.z-combobox-inp"), urlValue);
        waitResponse();
       
        keyDownNative(SHIFT);
        keyDownNative(TAB);
        keyUpNative(TAB);
        keyUpNative(SHIFT);
       
        type(jq("$displayHyperlink"), "Wiki Japan");
       
        click(jq("$okBtn"));
        waitResponse();
       
        cell_K_6 = loadCellK6();
        JQuery aTag = cell_K_6.find("a");
       
        if (aTag != null) {
            String href = aTag.attr("href");
            verifyEquals("Unexpected result: " + href, "http://ja.wikipedia.org/wiki", href);
        } else {
            verifyTrue("Cannot get value of specified cell!", false);
        }
    }
View Full Code Here


public class SS_086_3_Test extends SSAbstractTestCase {

    @Override
    protected void executeTest() {
        JQuery cell_K_6 = loadCellK6();
        clickCell(cell_K_6);
        clickCell(cell_K_6);
        click(jq("$insertHyperlinkBtn"));
        waitResponse();
        click(jq("$docBtn"));
        waitResponse();
        click(jq("$refSheet .z-treecell:eq(0)"));
        waitResponse();
        click(jq("$okBtn"));
        waitResponse();
       
        cell_K_6 = loadCellK6();
        JQuery aTag = cell_K_6.find("a");
       
        if (aTag != null) {
            String href = aTag.attr("href");
            if (isIE6() || isIE7()) //IE6 / IE7 add "http://...." in href attr
              verifyTrue("Unexpected result: " + href, href.lastIndexOf("Input!A1") >= 0);
            else
              verifyEquals("Unexpected result: " + href, "Input!A1", href);
        } else {
View Full Code Here

public class SS_065_Test extends SSAbstractTestCase {

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

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

public class SS_179_Test extends SSAbstractTestCase {

    @Override
    protected void executeTest() {
        // Select source cell
        JQuery cell_J_13 = getSpecifiedCell(9, 12);
        clickCell(cell_J_13);
        clickCell(cell_J_13);
       
        // Ctrl + C
        keyDownNative(CTRL);
        waitResponse();
        keyDownNative(C);
        waitResponse();
        keyUpNative(C);
        waitResponse();
        keyUpNative(CTRL);
        waitResponse();
       
        // Right click target cell
        JQuery cell_L_13 = loadTargetCell();
        clickCell(cell_L_13);
        rightClickCell(cell_L_13);
        waitResponse();
       
        // Click Paste Special on the context menu
        click(jq("$pasteSpecial"));
        waitResponse();
       
        // Choose Column width
        click(jq("$colWidth input[id*=real]"));
        waitResponse();
        click(jq("$okBtn"));
        waitResponse();
       
        // Verify
        cell_L_13 = loadTargetCell();
        verifyEquals("Different width! Source width: " + cell_J_13.width() + ", Target width: " + cell_L_13.width(),
                cell_J_13.width(), cell_L_13.width());
    }
View Full Code Here

  /**
   * Paste (value only)
   */
    @Override
    protected void executeTest() {
      JQuery srcFormulaCell = focusOnCell(5, 14);
      String formulaBarValue = jq("$formulaEditor").val();
      String srcCellText = getCellText(srcFormulaCell);
      verifyTrue("Shall select formula cell as paste source",
        formulaBarValue.startsWith("=") && !Objects.equal(srcFormulaCell, srcCellText));
      verifyTrue("Shall select format cell as paste source", srcCellText.indexOf(",") >= 0);
View Full Code Here

public class SS_025_Test extends SSAbstractTestCase {

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

      click("$viewMenu");
      waitResponse();
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_177_Test extends SSAbstractTestCase {

    @Override
    protected void executeTest() {
        // Select source cell
        JQuery cell_J_13 = getSpecifiedCell(9, 12);
        clickCell(cell_J_13);
        clickCell(cell_J_13);
       
        // Ctrl + C
        keyDownNative(CTRL);
        waitResponse();
        keyDownNative(C);
        waitResponse();
        keyUpNative(C);
        waitResponse();
        keyUpNative(CTRL);
        waitResponse();
       
        // Right click target cell
        JQuery cell_L_13 = loadTargetCell();
        clickCell(cell_L_13);
        rightClickCell(cell_L_13);
        waitResponse();
       
        // Click Paste Special on the context menu
View Full Code Here

public class SS_058_Test extends SSAbstractTestCase {

    @Override
    protected void executeTest() {
        JQuery cell_F_21 = getSpecifiedCell(5, 20);
        clickCell(cell_F_21);
        clickCell(cell_F_21);
        click(jq("$cutBtn"));
       
        // Verify
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.