Return-Path: X-Original-To: apmail-incubator-ooo-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4F86AD80F for ; Mon, 3 Sep 2012 07:08:39 +0000 (UTC) Received: (qmail 57416 invoked by uid 500); 3 Sep 2012 07:08:39 -0000 Delivered-To: apmail-incubator-ooo-commits-archive@incubator.apache.org Received: (qmail 57378 invoked by uid 500); 3 Sep 2012 07:08:38 -0000 Mailing-List: contact ooo-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-dev@incubator.apache.org Delivered-To: mailing list ooo-commits@incubator.apache.org Received: (qmail 57367 invoked by uid 99); 3 Sep 2012 07:08:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2012 07:08:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2012 07:08:36 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id C11932388962; Mon, 3 Sep 2012 07:07:52 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1380143 - /incubator/ooo/trunk/test/testuno/source/testcase/uno/sc/rowcolumn/ResizeHideShowRowColumn.java Date: Mon, 03 Sep 2012 07:07:52 -0000 To: ooo-commits@incubator.apache.org From: liuzhe@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120903070752.C11932388962@eris.apache.org> 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 Review By: Liu Zhe 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(); - - } - }