incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liu...@apache.org
Subject svn commit: r1380143 - /incubator/ooo/trunk/test/testuno/source/testcase/uno/sc/rowcolumn/ResizeHideShowRowColumn.java
Date Mon, 03 Sep 2012 07:07:52 GMT
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 <binbjguo@gmail.com>
Review By: Liu Zhe <aliuzhe@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();
-
-    }
-
 }
 
 



Mime
View raw message