You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by li...@apache.org on 2012/09/03 09:07:52 UTC
svn commit: r1380143 -
/incubator/ooo/trunk/test/testuno/source/testcase/uno/sc/rowcolumn/ResizeHideShowRowColumn.java
Author: liuzhe
Date: Mon Sep 3 07:07:52 2012
New Revision: 1380143
URL: http://svn.apache.org/viewvc?rev=1380143&view=rev
Log:
#120797 - [testuno] [update] Resize and Hide/Show Row and Column.
Patch By: Guo Bin <bi...@gmail.com>
Review By: Liu Zhe <al...@gmail.com>
Modified:
incubator/ooo/trunk/test/testuno/source/testcase/uno/sc/rowcolumn/ResizeHideShowRowColumn.java
Modified: incubator/ooo/trunk/test/testuno/source/testcase/uno/sc/rowcolumn/ResizeHideShowRowColumn.java
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/test/testuno/source/testcase/uno/sc/rowcolumn/ResizeHideShowRowColumn.java?rev=1380143&r1=1380142&r2=1380143&view=diff
==============================================================================
--- incubator/ooo/trunk/test/testuno/source/testcase/uno/sc/rowcolumn/ResizeHideShowRowColumn.java (original)
+++ incubator/ooo/trunk/test/testuno/source/testcase/uno/sc/rowcolumn/ResizeHideShowRowColumn.java Mon Sep 3 07:07:52 2012
@@ -20,7 +20,6 @@ import com.sun.star.beans.XPropertySet;
import com.sun.star.table.XCellRange;
import com.sun.star.frame.XModel;
import com.sun.star.frame.XController;
-import com.sun.star.frame.XStorable;
import com.sun.star.sheet.XSpreadsheetView;
@@ -74,9 +73,6 @@ public void testResizeColumn() throws Ex
PropSet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, aColumnObj);
//Verify the default values of specified column A1
- int expectedDefaultWidth = 2267;
-
- assertEquals("Verify default width value is 2267.", expectedDefaultWidth, PropSet.getPropertyValue("Width"));
assertTrue("Verify column is visible as default.", (Boolean) PropSet.getPropertyValue("IsVisible"));
//Resize width of column A1 to "6001"
@@ -169,9 +165,6 @@ public void testResizeRow() throws Excep
PropSet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, aRowObj );
//Verify the default values of specified Row 1
- int expectedDefaultHeight = 453;
-
- assertEquals("Verify default width value is 453.", expectedDefaultHeight, PropSet.getPropertyValue("Height"));
assertTrue("Verify column is visible as default.", (Boolean) PropSet.getPropertyValue("IsVisible"));
//Resize Height of Row 1 to "5001"
@@ -227,25 +220,11 @@ public void testResizeRow() throws Excep
PropSet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, aRowObj);
//Verify the values of specified Row 1 after resize
- assertEquals("Verify current width value is 5001 after hide it.", expectedHeight, PropSet.getPropertyValue("Height"));
+ assertEquals("Verify current height value is 5001 after hide it.", expectedHeight, PropSet.getPropertyValue("Height"));
assertFalse("Verify column is invisible.", (Boolean) PropSet.getPropertyValue("IsVisible"));
}
-/* Save file after open file.
-*
-* @param xSpreadsheetDocument
-* @throws Exception
-*/
-public static void save(XSpreadsheetDocument xSpreadsheetDocument)
- throws Exception {
-
- XStorable scStorable = (XStorable) UnoRuntime.queryInterface(
- XStorable.class, xSpreadsheetDocument);
- scStorable.store();
-
- }
-
}