Author: hdu
Date: Mon Sep  2 15:13:28 2013
New Revision: 1519460

URL: http://svn.apache.org/r1519460
Log:
#i123164# prevent timeout+kill in fvt.gui.sd.shape.ShapeTypes autotests

If the modified test documents are neither saved nor discarded a QueryBox
"The document $DOC has been modified.\nDo you want to save your changes?"
would prevent the application from quitting normally. Calling AppTool's
discard() method handles this message box.

Modified:
    openoffice/trunk/test/testgui/source/fvt/gui/sd/shape/ShapeTypes.java

Modified: openoffice/trunk/test/testgui/source/fvt/gui/sd/shape/ShapeTypes.java
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/test/testgui/source/fvt/gui/sd/shape/ShapeTypes.java?rev=1519460&r1=1519459&r2=1519460&view=diff
==============================================================================
--- openoffice/trunk/test/testgui/source/fvt/gui/sd/shape/ShapeTypes.java 
(original)
+++ openoffice/trunk/test/testgui/source/fvt/gui/sd/shape/ShapeTypes.java Mon 
Sep  2 15:13:28 2013
@@ -60,11 +60,11 @@ public class ShapeTypes {
 
        @After
        public void tearDown() throws Exception {
-               sleep(3);
                //close navigator
                if (sdNavigatorDlg.exists()) {
                        app.dispatch(".uno:Navigator");
                }
+               AppTool.discard();
                app.stop();
        }
 
@@ -101,9 +101,8 @@ public class ShapeTypes {
                typeKeys("<enter>");
                allShapes=sdNavigator.getAllItemsText();
                assertEquals(4, allShapes.length);
-
-
        }
+
        /**
         * Insert a new Star shape
         * @throws Exception
@@ -137,7 +136,6 @@ public class ShapeTypes {
                typeKeys("<enter>");
                allShapes=sdNavigator.getAllItemsText();
                assertEquals(4, allShapes.length);
-
        }
 
 }


Reply via email to