Examples of CellCacheAggeration


Examples of org.zkoss.test.zss.CellCacheAggeration

    int tRow = 15;
    int lCol = 6;
    int bRow = 18;
    int rCol = 7;
    CellCacheAggeration.Builder builder = getCellCacheAggerationBuilder(tRow, lCol, bRow, rCol);
    CellCacheAggeration copyFrom = builder.build();
    keyboardDirector.ctrlCopy(tRow, lCol, bRow, rCol);
   
    mouseDirector.openCellContextMenu(11, 10);
    click(".z-menupopup:visible .zsmenuitem-pasteSpecial");
   
    jq("$colWidth input").getWebElement().click();
    click("$_pasteSpecialDialog $okBtn");
   
    Assert.assertTrue(copyFrom.equals(builder.offset(11, 10).build(), EqualCondition.COLUMN_WIDTH_ONLY));
  }
View Full Code Here

Examples of org.zkoss.test.zss.CellCacheAggeration

    int tRow = 15;
    int lCol = 6;
    int bRow = 18;
    int rCol = 7;
    CellCacheAggeration.Builder builder = getCellCacheAggerationBuilder(tRow, lCol, bRow, rCol);
    CellCacheAggeration copyFrom = builder.build();
    keyboardDirector.ctrlCopy(tRow, lCol, bRow, rCol);
   
    mouseDirector.openCellContextMenu(11, 10);
    click(".z-menupopup:visible .zsmenuitem-pasteSpecial");
   
    jq("$formula input").getWebElement().click();
    click("$_pasteSpecialDialog $okBtn");
   
    CellCacheAggeration pasteTo = builder.offset(11, 10).build();
    copyFrom.merge(pasteTo, CellCache.Field.VERTICAL_ALIGN, CellCache.Field.HORIZONTAL_ALIGN, CellCache.Field.FONT_COLOR, CellCache.Field.FILL_COLOR, CellCache.Field.BOTTOM_BORDER, CellCache.Field.RIGHT_BORDER);
    Assert.assertTrue(copyFrom.equals(pasteTo, CellCache.EqualCondition.IGNORE_NUMBER_FORMAT));
  }
View Full Code Here

Examples of org.zkoss.test.zss.CellCacheAggeration

    int tRow = 15;
    int lCol = 6;
    int bRow = 18;
    int rCol = 7;
    CellCacheAggeration.Builder builder = getCellCacheAggerationBuilder(tRow, lCol, bRow, rCol);
    CellCacheAggeration copyFrom = builder.build();
    keyboardDirector.ctrlCopy(tRow, lCol, bRow, rCol);
   
    mouseDirector.openCellContextMenu(11, 10);
    click(".z-menupopup:visible .zsmenuitem-pasteSpecial");
   
    jq("$formulaWithNum input").getWebElement().click();
    click("$_pasteSpecialDialog $okBtn");
   
    CellCacheAggeration pasteTo = builder.offset(11, 10).build();
    copyFrom.merge(pasteTo, CellCache.Field.VERTICAL_ALIGN, CellCache.Field.HORIZONTAL_ALIGN, CellCache.Field.FONT_COLOR, CellCache.Field.FILL_COLOR, CellCache.Field.BOTTOM_BORDER, CellCache.Field.RIGHT_BORDER);
    Assert.assertEquals(copyFrom, pasteTo)
  }
View Full Code Here

Examples of org.zkoss.test.zss.CellCacheAggeration

    int tRow = 15;
    int lCol = 6;
    int bRow = 18;
    int rCol = 7;
    CellCacheAggeration.Builder builder = getCellCacheAggerationBuilder(tRow, lCol, bRow, rCol);
    CellCacheAggeration copyFrom = builder.build();
    keyboardDirector.ctrlCopy(tRow, lCol, bRow, rCol);
   
    mouseDirector.openCellContextMenu(11, 10);
    click(".z-menupopup:visible .zsmenuitem-pasteSpecial");
   
    jq("$value input").getWebElement().click();
    click("$_pasteSpecialDialog $okBtn");
   
    CellCacheAggeration pasteTo = builder.offset(11, 10).build();
    copyFrom.merge(pasteTo, CellCache.Field.VERTICAL_ALIGN, CellCache.Field.HORIZONTAL_ALIGN, CellCache.Field.FONT_COLOR, CellCache.Field.FILL_COLOR, CellCache.Field.BOTTOM_BORDER, CellCache.Field.RIGHT_BORDER);
    Assert.assertTrue(copyFrom.equals(pasteTo, EqualCondition.VALUE, EqualCondition.IGNORE_NUMBER_FORMAT));
  }
View Full Code Here

Examples of org.zkoss.test.zss.CellCacheAggeration

    int tRow = 15;
    int lCol = 6;
    int bRow = 18;
    int rCol = 7;
    CellCacheAggeration.Builder builder = getCellCacheAggerationBuilder(tRow, lCol, bRow, rCol);
    CellCacheAggeration copyFrom = builder.build();
    keyboardDirector.ctrlCopy(tRow, lCol, bRow, rCol);
   
    mouseDirector.openCellContextMenu(11, 10);
    click(".z-menupopup:visible .zsmenuitem-pasteSpecial");
   
    jq("$valueWithNumFmt input").getWebElement().click();
    click("$_pasteSpecialDialog $okBtn");
   
    CellCacheAggeration pasteTo = builder.offset(11, 10).build();
    copyFrom.merge(pasteTo, CellCache.Field.VERTICAL_ALIGN, CellCache.Field.HORIZONTAL_ALIGN, CellCache.Field.FONT_COLOR, CellCache.Field.FILL_COLOR, CellCache.Field.BOTTOM_BORDER, CellCache.Field.RIGHT_BORDER);
    Assert.assertTrue(copyFrom.equals(pasteTo, EqualCondition.VALUE));
  }
View Full Code Here

Examples of org.zkoss.test.zss.CellCacheAggeration

    int tRow = 15;
    int lCol = 6;
    int bRow = 18;
    int rCol = 7;
    CellCacheAggeration.Builder builder = getCellCacheAggerationBuilder(tRow, lCol, bRow, rCol);
    CellCacheAggeration copyFrom = builder.build();
    keyboardDirector.ctrlCopy(tRow, lCol, bRow, rCol);
   
    mouseDirector.openCellContextMenu(11, 10);
    click(".z-menupopup:visible .zsmenuitem-pasteSpecial");
   
    jq("$fmt input").getWebElement().click();
    click("$_pasteSpecialDialog $okBtn");
   
    CellCacheAggeration pasteTo = builder.offset(11, 10).build();
    copyFrom.merge(pasteTo, CellCache.Field.CELL_TYPE, CellCache.Field.TEXT, CellCache.Field.EDIT);
    Assert.assertEquals(copyFrom, pasteTo)
  }
View Full Code Here

Examples of org.zkoss.test.zss.CellCacheAggeration

    int tRow = 12;
    int lCol = 5;
    int bRow = 13;
    int rCol = 6;
    CellCacheAggeration.Builder builder = getCellCacheAggerationBuilder(tRow, lCol, bRow, rCol);
    CellCacheAggeration cache = builder.build();
    mouseDirector.dragEdit(tRow, lCol, bRow, rCol, 12, 10);
   
    Assert.assertEquals(cache, builder.offset(12, 10).build());
  }
View Full Code Here

Examples of org.zkoss.test.zss.CellCacheAggeration

  public void row_border() {
    int tRow = 12;
    int lCol = 5;
    int bRow = 12;
    int rCol = 9;
    CellCacheAggeration cache = getCellCacheAggerationBuilder(tRow, lCol, bRow, rCol).build();
    mouseDirector.openRowContextMenu(12);
   
    click(".zsstylepanel .zstbtn-border .zstbtn-arrow");
    click(".zsmenuitem-" + BorderType.BOTTOM.toString());
   
View Full Code Here

Examples of org.zkoss.test.zss.CellCacheAggeration

    verifyAlign(AlignType.HORIZONTAL_ALIGN_LEFT, 12, 5, 12, 9);
  }
 
  @Test
  public void row_cut() {
    CellCacheAggeration from = getCellCacheAggerationBuilder(12, 5, 12, 9).build();
   
    mouseDirector.openRowContextMenu(12);
    click(".z-menupopup:visible .zsmenuitem-cut");
   
    mouseDirector.openRowContextMenu(16);
View Full Code Here

Examples of org.zkoss.test.zss.CellCacheAggeration

    verifyPasteAll(PasteSource.CUT, from, 16, 5, 16, 9);
  }
 
  @Test
  public void row_copy() {
    CellCacheAggeration from = getCellCacheAggerationBuilder(12, 5, 12, 9).build();
   
    mouseDirector.openRowContextMenu(12);
    click(".z-menupopup:visible .zsmenuitem-copy");
   
    mouseDirector.openRowContextMenu(16);
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.