Skip to content

Commit

Permalink
* add a test case, expected screenshot, and test sheet for ZSS-1375
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkchen committed Jan 7, 2019
1 parent 5d93ba2 commit a46f9bd
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,21 @@ public void notRenderedCellAtFirst(){
waitForTime(Setup.getTimeoutL1());
captureOrAssert("1", new MyPngCropper(100, 600, 400, 0));
}

@Test //ZSS-1375
public void resizeColumnProtectedSheet(){
getTo("/issue3/1338-overflow-right-align.zul");
basename();
SpreadsheetWidget ss = focusSheet();
sheetFunction().gotoTab(3);
waitForTime(Setup.getTimeoutL1());
//enlarge a column width
dragAndDropBy(jq(".zshbouni").get(5), 100, 0);
click(ss.getSheetCtrl().getCell("A1"));
waitForTime(Setup.getTimeoutL1());
captureOrAssert("1", TOP_BOTTOM_CROPPER);
}

}


Expand Down
11 changes: 7 additions & 4 deletions zss.test/src/main/webapp/issue3/1338-overflow-right-align.zul
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<zk >
<spreadsheet id="ss" src="/issue3/book/1338-overflow-right-align.xlsx" maxVisibleRows="550" maxVisibleColumns="250" width="100%"
height="90%"
showContextMenu="true" showSheetbar="true" showToolbar="true" showFormulabar="true" />
<zk>
<spreadsheet id="ss" src="/issue3/book/1338-overflow-right-align.xlsx" maxVisibleRows="550" maxVisibleColumns="250" width="100%" height="90%" showContextMenu="true" showSheetbar="true" showToolbar="true" showFormulabar="true" />
<button label="enlarge column width">
<attribute name="onClick"><![CDATA[
Ranges.range(ss.getSelectedSheet(), 0, 5).setColumnWidth(200);
]]></attribute>
</button>
</zk>
Binary file not shown.

0 comments on commit a46f9bd

Please sign in to comment.