Package org.zkoss.ztl

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


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


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

     */
    public JQuery getSpecifiedCell(int col, int row) {
      if (isIE6() || isIE7()) {
        JQuery r = getRow(row);
        JQuery cell = r.children().eq(col);
        return cell.children().first();
      }
      return jq("div.zscell[z\\\\.c=\"" + col + "\"][z\\\\.r=\"" + row + "\"] div").first()
    }
   
    public String getCellTextColor(int col, int row) {
View Full Code Here

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

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

      waitResponse();
      // TODO: Verify correct row is frozen
      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

      click(jq("$freezeRow7"));
      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(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

      click(jq("$freezeRow9"));
      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(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();
      // 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

      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

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.