Examples of CellCacheAggeration


Examples of org.zkoss.test.zss.CellCacheAggeration

  public void column_border() {
    int tRow = 5;
    int lCol = 5;
    int bRow = 20;
    int rCol = 5;
    CellCacheAggeration cache = getCellCacheAggerationBuilder(tRow, lCol, bRow, rCol).build("border");
    mouseDirector.openColumnContextMenu(5);
   
    click(".zsstylepanel .zstbtn-border .zstbtn-arrow");
    click(".zsmenuitem-" + BorderType.LEFT.toString());
   
View Full Code Here

Examples of org.zkoss.test.zss.CellCacheAggeration

    verifyAlign(AlignType.HORIZONTAL_ALIGN_LEFT, 5, 5, 20, 5);
  }
 
  @Test
  public void column_cut() {
    CellCacheAggeration from = getCellCacheAggerationBuilder(5, 5, 20, 5).build();
   
    mouseDirector.openColumnContextMenu(5);//column F
    click(".z-menupopup:visible .zsmenuitem-cut");
   
    mouseDirector.openColumnContextMenu(10);//column K
View Full Code Here

Examples of org.zkoss.test.zss.CellCacheAggeration

    verifyPasteAll(PasteSource.CUT, from, 5, 10, 20, 10);
  }
 
  @Test
  public void column_copy() {
    CellCacheAggeration from = getCellCacheAggerationBuilder(5, 5, 20, 5).build();
   
    mouseDirector.openColumnContextMenu(5);//column F
    click(".z-menupopup:visible .zsmenuitem-copy");
   
    mouseDirector.openColumnContextMenu(10);//column K
View Full Code Here

Examples of org.zkoss.test.zss.CellCacheAggeration

  }
 
 
  @Test
  public void column_paste_special() {
    CellCacheAggeration from = getCellCacheAggerationBuilder(5, 5, 20, 5).build();
    mouseDirector.openColumnContextMenu(5);//column F
    click(".z-menupopup:visible .zsmenuitem-copy");
   
    mouseDirector.openColumnContextMenu(10);//column K
    click(".z-menupopup:visible .zsmenuitem-pasteSpecial");
View Full Code Here

Examples of org.zkoss.test.zss.CellCacheAggeration

  }
 
  @Test
  public void column_insert() {
    CellCacheAggeration.Builder builder = getCellCacheAggerationBuilder(5, 5, 20, 5);
    CellCacheAggeration from = builder.build();
    mouseDirector.openColumnContextMenu(5);//column F
   
    click(".z-menupopup:visible .zsmenuitem-insertSheetColumn");
   
    verifyInsert(Insert.CELL_RIGHT, from, builder);
View Full Code Here

Examples of org.zkoss.test.zss.CellCacheAggeration

  }
 
  @Test
  public void column_delete() {
    CellCacheAggeration.Builder builder = getCellCacheAggerationBuilder(5, 5, 20, 5);
    CellCacheAggeration from = builder.right().build();
    mouseDirector.openColumnContextMenu(5);//column F
   
    click(".z-menupopup:visible .zsmenuitem-deleteSheetColumn");
   
    verifyDelete(Delete.CELL_LEFT, from, builder, null);
View Full Code Here

Examples of org.zkoss.test.zss.CellCacheAggeration

    verifyDelete(Delete.CELL_LEFT, from, builder, null);
  }
 
  @Test
  public void column_clear_content() {
    CellCacheAggeration cache = getCellCacheAggerationBuilder(5, 5, 20, 5).build();
    mouseDirector.openColumnContextMenu(5);//column F
    click(".z-menupopup:visible .zsmenuitem-clearContent");
    verifyClearContent(cache);
  }
View Full Code Here

Examples of org.zkoss.test.zss.CellCacheAggeration

public class SS_012_Test extends ZSSAppTest {

  @Test
  public void paste_all_by_button() {
    CellCacheAggeration.Builder builder = getCellCacheAggerationBuilder(11, 5, 16, 5);
    CellCacheAggeration copyFrom = builder.build();
    prepareCopySource(copyFrom.getTop(), copyFrom.getLeft(), copyFrom.getBottom(), copyFrom.getRight());
   
    focus(11, 10);
    click(".zstbtn-paste");
   
    CellCacheAggeration pasteTo = builder.offset(11, 10).build();
    Assert.assertEquals(copyFrom, pasteTo);
  }
View Full Code Here

Examples of org.zkoss.test.zss.CellCacheAggeration

  }

  @Test
  public void paste_all_by_menuitem() {
    CellCacheAggeration.Builder builder = getCellCacheAggerationBuilder(11, 5, 16, 5);
    CellCacheAggeration copyFrom = builder.build();
    prepareCopySource(copyFrom.getTop(), copyFrom.getLeft(), copyFrom.getBottom(), copyFrom.getRight());
   
    focus(11, 10);
    click(".zstbtn-paste .zstbtn-arrow");
    click(".zsmenuitem-paste");
   
    //test paste twice
    focus(20, 10);
    click(".zstbtn-paste .zstbtn-arrow");
    click(".zsmenuitem-paste");
   
    CellCacheAggeration pasteTo = builder.offset(20, 10).build();
    Assert.assertEquals(copyFrom, pasteTo);
  }
View Full Code Here

Examples of org.zkoss.test.zss.CellCacheAggeration

  }

  @Test
  public void open_paste_special_dialog() {
    CellCacheAggeration.Builder builder = getCellCacheAggerationBuilder(11, 5, 12, 5);
    CellCacheAggeration copyFrom = builder.build();
    spreadsheet.setSelection(11, 5, 12, 5);
    click(".zstbtn-copy");
   
    focus(11, 10);
    click(".zstbtn-paste .zstbtn-arrow");
    click(".zsmenuitem-pasteSpecial");
   
    Assert.assertTrue(isVisible("$_pasteSpecialDialog"));
    click("$_pasteSpecialDialog $okBtn");
    CellCacheAggeration pasteTo = builder.offset(11, 10).build();
   
    Assert.assertEquals(copyFrom, pasteTo);
  }
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.