summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Lingner <jl@openoffice.org>2010-06-22 09:36:55 +0200
committerJoachim Lingner <jl@openoffice.org>2010-06-22 09:36:55 +0200
commit8b8f40ea64e18416a5bac9a8c69c72b479a4cd5c (patch)
tree48259e3ae25fd33c8c217833b6fd7c0659842d9f
parent3ec2f280695e2ff95b3ad1ce1f58cad47db7a0bf (diff)
parent924eab5afc99b0b0ecfa76ac4606a058e0d67328 (diff)
jl152 merge with DEV300_m83
-rw-r--r--qadevOOo/runner/lib/MultiPropertyTest.java20
-rw-r--r--qadevOOo/tests/java/ifc/beans/_XPropertySet.java484
-rw-r--r--qadevOOo/tests/java/ifc/chart/_Chart3DBarProperties.java34
-rw-r--r--qadevOOo/tests/java/ifc/chart/_ChartDataPointProperties.java4
-rw-r--r--qadevOOo/tests/java/ifc/chart/_LineDiagram.java6
-rw-r--r--qadevOOo/tests/java/ifc/drawing/_LineProperties.java16
-rw-r--r--qadevOOo/tests/java/ifc/sdb/_XSingleSelectQueryComposer.java19
-rw-r--r--qadevOOo/tests/java/mod/_sch/AccArea.java8
-rw-r--r--qadevOOo/tests/java/mod/_sch/AccAxis.java8
-rw-r--r--qadevOOo/tests/java/mod/_sch/AccDataPoint.java8
-rw-r--r--qadevOOo/tests/java/mod/_sch/AccDataSeries.java8
-rw-r--r--qadevOOo/tests/java/mod/_sch/AccDiagram.java8
-rw-r--r--qadevOOo/tests/java/mod/_sch/AccFloor.java8
-rw-r--r--qadevOOo/tests/java/mod/_sch/AccGrid.java8
-rw-r--r--qadevOOo/tests/java/mod/_sch/AccLegend.java8
-rw-r--r--qadevOOo/tests/java/mod/_sch/AccLegendEntry.java8
-rw-r--r--qadevOOo/tests/java/mod/_sch/AccStatisticsObject.java8
-rw-r--r--qadevOOo/tests/java/mod/_sch/AccTitle.java8
-rw-r--r--qadevOOo/tests/java/mod/_sch/AccWall.java8
-rw-r--r--qadevOOo/tests/java/mod/_sch/AccessibleDocumentView.java7
-rw-r--r--qadevOOo/tests/java/mod/_sch/ChXChartAxis.java7
-rw-r--r--qadevOOo/tests/java/mod/_sch/ChXChartData.java7
-rw-r--r--qadevOOo/tests/java/mod/_sch/ChXChartDataArray.java7
-rw-r--r--qadevOOo/tests/java/mod/_sch/ChXChartDocument.java14
-rw-r--r--qadevOOo/tests/java/mod/_sch/ChXChartView.java7
-rw-r--r--qadevOOo/tests/java/mod/_sch/ChXDataPoint.java7
-rw-r--r--qadevOOo/tests/java/mod/_sch/ChXDataRow.java7
-rw-r--r--qadevOOo/tests/java/mod/_sch/ChartArea.java7
-rw-r--r--qadevOOo/tests/java/mod/_sch/ChartGrid.java7
-rw-r--r--qadevOOo/tests/java/mod/_sch/ChartLegend.java7
-rw-r--r--qadevOOo/tests/java/mod/_sch/ChartLine.java7
-rw-r--r--qadevOOo/tests/java/mod/_sch/ChartTitle.java7
-rw-r--r--qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentExporter.java9
-rw-r--r--qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentImporter.java12
-rw-r--r--qadevOOo/tests/java/mod/_xmloff/Chart/XMLExporter.java9
-rw-r--r--qadevOOo/tests/java/mod/_xmloff/Chart/XMLImporter.java12
-rw-r--r--qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesExporter.java9
-rw-r--r--qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesImporter.java14
-rwxr-xr-xsmoketestoo_native/data/smoketestdoc.sxwbin35814 -> 35805 bytes
-rwxr-xr-x[-rw-r--r--]testautomation/dbaccess/optional/includes/ctrl_Several1.inc2
-rwxr-xr-x[-rw-r--r--]testautomation/dbaccess/optional/includes/ctrl_Several2.inc9
-rwxr-xr-x[-rw-r--r--]testautomation/dbaccess/optional/includes/db_Relations.inc14
-rwxr-xr-xtestautomation/dbaccess/optional/includes/wiz_DatabaseWizard.inc31
-rwxr-xr-xtestautomation/dbaccess/required/includes/MainApp.inc5
-rwxr-xr-x[-rw-r--r--]testautomation/dbaccess/required/includes/Query.inc7
-rwxr-xr-x[-rw-r--r--]testautomation/dbaccess/required/includes/Table.inc5
-rwxr-xr-x[-rw-r--r--]testautomation/dbaccess/required/includes/TableDesign.inc5
-rwxr-xr-x[-rw-r--r--]testautomation/dbaccess/tools/formtools.inc2
-rwxr-xr-x[-rw-r--r--]testautomation/dbaccess/tools/reporttools.inc12
-rwxr-xr-x[-rw-r--r--]testautomation/dbaccess/tools/tabletools.inc9
-rw-r--r--testautomation/extensions/optional/e_taskpane.bas49
-rw-r--r--testautomation/extensions/optional/includes/e_taskpane.inc74
-rwxr-xr-xtestautomation/extensions/optional/input/extension_sources/TaskPaneComponent/build.xml72
-rwxr-xr-xtestautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/build-impl.xml794
-rwxr-xr-xtestautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/build-uno-impl.xml462
-rwxr-xr-xtestautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/genfiles.properties8
-rwxr-xr-xtestautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/private/config.properties0
-rwxr-xr-xtestautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/private/private.properties6
-rwxr-xr-xtestautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/project-uno.properties18
-rwxr-xr-xtestautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/project.properties67
-rwxr-xr-xtestautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/project.xml14
-rwxr-xr-xtestautomation/extensions/optional/input/extension_sources/TaskPaneComponent/registry/data/org/openoffice/Office/UI/CalcWindowState.xcu23
-rwxr-xr-xtestautomation/extensions/optional/input/extension_sources/TaskPaneComponent/registry/data/org/openoffice/Office/UI/Factories.xcu35
-rwxr-xr-xtestautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/com/example/CentralRegistrationClass.java140
-rwxr-xr-xtestautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/com/example/TaskPaneComponent.java116
-rwxr-xr-xtestautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/com/example/ToolPanel.java56
-rwxr-xr-xtestautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/com/example/ToolPanelUIElement.java153
-rwxr-xr-xtestautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/description.xml5
-rwxr-xr-xtestautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/toolpanels/TaskPaneComponentUI.xdl8
-rwxr-xr-xtestautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/uno-extension-manifest.xml9
-rwxr-xr-xtestautomation/extensions/optional/input/extensions/TaskPaneComponent/TaskPaneComponent.oxtbin0 -> 9884 bytes
-rwxr-xr-xtestautomation/extensions/optional/input/platform/extensions.info2
-rwxr-xr-xtestautomation/framework/optional/includes/basic_gridcontrol.inc33
-rwxr-xr-xtestautomation/framework/optional/input/gridcontrol.odtbin12000 -> 12600 bytes
-rwxr-xr-xtestautomation/framework/required/includes/script_organizers.inc49
-rw-r--r--testautomation/global/input/officeinfo.txt8
-rw-r--r--testautomation/global/required/includes/g_findbar.inc159
-rwxr-xr-x[-rw-r--r--]testautomation/global/required/includes/g_option.inc18
-rw-r--r--[-rwxr-xr-x]testautomation/global/sid/all.sid4
-rw-r--r--[-rwxr-xr-x]testautomation/global/sid/e_all.sid8
-rwxr-xr-xtestautomation/global/win/bars.win7
-rwxr-xr-xtestautomation/global/win/dial_p_s.win13
-rwxr-xr-xtestautomation/global/win/dial_t_z.win12
-rwxr-xr-xtestautomation/global/win/edia_d_h.win12
-rwxr-xr-xtestautomation/global/win/edia_t_z.win13
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/optional/g_accessability.bas1
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/optional/g_convertto.bas145
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/optional/g_crossfading.bas1
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/optional/g_customshapes.bas1
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/optional/g_group.bas1
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/optional/g_line.bas2
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/optional/g_ole.bas1
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/optional/g_savepictureas.bas1
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/optional/g_tools.bas4
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/optional/i_animation.bas1
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/optional/i_saveloadlayout.bas6
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/optional/i_slidecopy.bas1
-rw-r--r--testautomation/graphics/optional/includes/global/export_graphic.inc4
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/optional/includes/global/export_graphic_2.inc21
-rw-r--r--testautomation/graphics/optional/includes/global/g_accessability.inc29
-rw-r--r--testautomation/graphics/optional/includes/global/g_arrangealign.inc3
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/optional/includes/global/g_autocorrection.inc2
-rw-r--r--testautomation/graphics/optional/includes/global/g_clipboard.inc1
-rw-r--r--testautomation/graphics/optional/includes/global/g_convertto.inc3
-rw-r--r--testautomation/graphics/optional/includes/global/g_crossfading.inc3
-rw-r--r--testautomation/graphics/optional/includes/global/g_customshapes.inc9
-rw-r--r--testautomation/graphics/optional/includes/global/g_demoguide.inc58
-rw-r--r--testautomation/graphics/optional/includes/global/g_edit.inc74
-rw-r--r--testautomation/graphics/optional/includes/global/g_format.inc5
-rw-r--r--testautomation/graphics/optional/includes/global/g_group.inc3
-rw-r--r--testautomation/graphics/optional/includes/global/g_line.inc1
-rw-r--r--testautomation/graphics/optional/includes/global/g_load_save.inc11
-rw-r--r--testautomation/graphics/optional/includes/global/g_mediaplayer.inc2
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/optional/includes/global/g_ole.inc1
-rw-r--r--testautomation/graphics/optional/includes/global/g_savepictureas.inc4
-rw-r--r--testautomation/graphics/optional/includes/global/g_shaddow.inc1
-rw-r--r--testautomation/graphics/optional/includes/global/g_tables.inc2
-rw-r--r--testautomation/graphics/optional/includes/global/g_tools.inc349
-rw-r--r--testautomation/graphics/optional/includes/global/id_006.inc4
-rw-r--r--testautomation/graphics/optional/includes/impress/i_animation.inc3
-rw-r--r--testautomation/graphics/optional/includes/impress/i_pengine2.inc1
-rw-r--r--testautomation/graphics/optional/includes/impress/i_saveloadlayout.inc338
-rw-r--r--testautomation/graphics/optional/includes/impress/i_slidecopy.inc71
-rw-r--r--testautomation/graphics/optional/includes/impress/i_slidelayer.inc1
-rw-r--r--testautomation/graphics/optional/includes/impress/i_slideshow2.inc6
-rw-r--r--testautomation/graphics/optional/includes/impress/i_slideshow3.inc2
-rw-r--r--testautomation/graphics/optional/includes/impress/i_us2_present.inc8
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/optional/includes/impress/i_us_present.inc185
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/required/d_updt.bas2
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/required/i_updt_1.bas2
-rw-r--r--testautomation/graphics/required/includes/global/id_002.inc13
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/required/includes/global/id_005.inc1
-rw-r--r--testautomation/graphics/required/includes/global/id_006.inc210
-rw-r--r--testautomation/graphics/required/includes/global/id_007.inc6
-rw-r--r--testautomation/graphics/required/includes/global/id_011.inc1
-rw-r--r--testautomation/graphics/required/includes/global/id_opt_1.inc2
-rw-r--r--testautomation/graphics/required/includes/impress/im_003_.inc2
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/required/input/recht_3.odpbin13728 -> 12737 bytes
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/required/input/recht_31.odpbin13837 -> 14160 bytes
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/required/input/recht_33.odpbin12994 -> 13251 bytes
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/required/input/recht_34.odpbin14831 -> 19479 bytes
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/required/input/recht_36.odpbin14284 -> 14155 bytes
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/required/input/recht_39.odpbin11319 -> 12338 bytes
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/required/input/recht_46.odpbin15605 -> 19434 bytes
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/required/input/recht_48.odpbin12666 -> 13346 bytes
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/required/input/recht_49.odpbin13159 -> 12783 bytes
-rw-r--r--[-rwxr-xr-x]testautomation/graphics/required/input/recht_55.odpbin13487 -> 18380 bytes
-rw-r--r--testautomation/graphics/tools/id_tools.inc10
-rw-r--r--testautomation/graphics/tools/id_tools_2.inc33
-rwxr-xr-x[-rw-r--r--]testautomation/math/required/includes/m_005_.inc4
-rwxr-xr-x[-rw-r--r--]testautomation/spreadsheet/required/includes/c_upd_toolsmenu.inc50
-rwxr-xr-x[-rw-r--r--]testautomation/writer/optional/includes/fields/w_fields1.inc10
-rwxr-xr-x[-rw-r--r--]testautomation/writer/optional/includes/fields/w_fields2.inc68
-rwxr-xr-x[-rw-r--r--]testautomation/writer/optional/includes/fields/w_fields4.inc5
-rwxr-xr-x[-rw-r--r--]testautomation/writer/optional/includes/fields/w_fields5.inc156
-rwxr-xr-x[-rw-r--r--]testautomation/writer/optional/includes/hyphenation/w_hyphenation.inc20
-rwxr-xr-x[-rw-r--r--]testautomation/writer/optional/includes/number/w_206_.inc20
-rwxr-xr-xtestautomation/writer/optional/includes/regexp/search.inc8
-rwxr-xr-x[-rw-r--r--]testautomation/writer/optional/includes/spellcheck/w_spellcheck.inc309
-rwxr-xr-x[-rw-r--r--]testautomation/writer/required/includes/w_005_.inc43
-rwxr-xr-xtestautomation/writer/required/includes/w_007_.inc29
-rwxr-xr-x[-rw-r--r--]testautomation/writer/tools/includes/w_tools.inc5
162 files changed, 4166 insertions, 1603 deletions
diff --git a/qadevOOo/runner/lib/MultiPropertyTest.java b/qadevOOo/runner/lib/MultiPropertyTest.java
index 286ddf1600a9..a02f93c04347 100644
--- a/qadevOOo/runner/lib/MultiPropertyTest.java
+++ b/qadevOOo/runner/lib/MultiPropertyTest.java
@@ -41,6 +41,7 @@ import java.lang.reflect.Method;
import util.ValueChanger;
import util.ValueComparer;
+import util.utils;
import com.sun.star.uno.Any;
import com.sun.star.uno.AnyConverter;
@@ -179,6 +180,25 @@ public class MultiPropertyTest extends MultiMethodTest
{
Object oldValue = oObj.getPropertyValue(propName);
+ if( (oldValue==null) || utils.isVoid(oldValue) )
+ {
+ // #i111560# method getNewValue() does not work with an empty oldValue
+ Property prop = info.getPropertyByName(propName);
+ if( (prop.Attributes & PropertyAttribute.MAYBEVOID) != 0 )
+ {
+ // todo: implement a new test independent from method getNewValue()
+ log.println("changing initially empty MAYBEVOID properties is not supported by the test framework so far - skip test of property: " + propName);
+ tRes.tested(propName, true);
+ return;
+ }
+ else
+ {
+ log.println( "property '"+propName+"' is not set but is not MAYBEVOID");
+ tRes.tested(propName, false);
+ return;
+ }
+ }
+
Object newValue;
// trying to create new value
diff --git a/qadevOOo/tests/java/ifc/beans/_XPropertySet.java b/qadevOOo/tests/java/ifc/beans/_XPropertySet.java
index 54c1f3431bbf..dfc135843b44 100644
--- a/qadevOOo/tests/java/ifc/beans/_XPropertySet.java
+++ b/qadevOOo/tests/java/ifc/beans/_XPropertySet.java
@@ -27,8 +27,7 @@
package ifc.beans;
-import java.util.Random;
-import java.util.StringTokenizer;
+import java.util.Vector;
import lib.MultiMethodTest;
import util.ValueChanger;
@@ -102,13 +101,13 @@ public class _XPropertySet extends MultiMethodTest {
private final XVetoableChangeListener VClistener = new MyVetoListener();
/**
- * Structure that collects three properties of each type to test :
+ * Structure that collects the properties of different types to test :
* Constrained, Bound and Normal.
*/
private final class PropsToTest {
- String constrained = null;
- String bound = null;
- String normal = null;
+ Vector< String > constrained = new Vector< String >();
+ Vector< String > bound = new Vector< String >();
+ Vector< String > normal = new Vector< String >();
}
private final PropsToTest PTT = new PropsToTest();
@@ -133,9 +132,12 @@ public class _XPropertySet extends MultiMethodTest {
log.println("getPropertySetInfo() method returned null");
tRes.tested("getPropertySetInfo()", true) ;
String[] ptt = (String[]) tEnv.getObjRelation("PTT");
- PTT.normal=ptt[0];
- PTT.bound=ptt[1];
- PTT.constrained=ptt[2];
+ PTT.normal.clear();
+ PTT.bound.clear();
+ PTT.constrained.clear();
+ PTT.normal.add( ptt[0] );
+ PTT.bound.add( ptt[1] );
+ PTT.constrained.add( ptt[2] );
} else {
tRes.tested("getPropertySetInfo()", true );
getPropsToTest(propertySetInfo);
@@ -161,41 +163,46 @@ public class _XPropertySet extends MultiMethodTest {
requiredMethod("getPropertySetInfo()");
- propertyChanged = false;
-
-
- if ( PTT.bound.equals("none") ) {
+ int count = PTT.bound.size();
+ if ( count==0 || PTT.bound.get(0).equals("none") ) {
log.println("*** No bound properties found ***");
tRes.tested("addPropertyChangeListener()", true) ;
} else {
- try {
- oObj.addPropertyChangeListener(PTT.bound,PClistener);
- Object gValue = oObj.getPropertyValue(PTT.bound);
- oObj.setPropertyValue(PTT.bound,
- ValueChanger.changePValue(gValue));
- } catch (com.sun.star.beans.PropertyVetoException e) {
- log.println("Exception occured while trying to change "+
- "property '"+ PTT.bound+"'");
- e.printStackTrace(log);
- } catch (com.sun.star.lang.IllegalArgumentException e) {
- log.println("Exception occured while trying to change "+
- "property '"+ PTT.bound+"'");
- e.printStackTrace(log);
- } catch (com.sun.star.beans.UnknownPropertyException e) {
- log.println("Exception occured while trying to change "+
- "property '"+ PTT.bound+"'");
- e.printStackTrace(log);
- } catch (com.sun.star.lang.WrappedTargetException e) {
- log.println("Exception occured while trying to change "+
- "property '"+ PTT.bound+"'");
- e.printStackTrace(log);
- } // end of try-catch
- tRes.tested("addPropertyChangeListener()", propertyChanged);
- if (!propertyChanged) {
- log.println("propertyChangeListener wasn't called for '"+
- PTT.bound+"'");
+ boolean error = false;
+ for (int i = 0; i < count; i++) {
+ String propertyName = PTT.bound.get(i);
+ propertyChanged = false;
+ try {
+ oObj.addPropertyChangeListener(propertyName,PClistener);
+ Object gValue = oObj.getPropertyValue(propertyName);
+ log.println("Check bound property: " + propertyName );
+ oObj.setPropertyValue(propertyName,
+ ValueChanger.changePValue(gValue));
+ } catch (com.sun.star.beans.PropertyVetoException e) {
+ log.println("Exception occured while trying to change "+
+ "property '"+ propertyName+"'");
+ e.printStackTrace(log);
+ } catch (com.sun.star.lang.IllegalArgumentException e) {
+ log.println("Exception occured while trying to change "+
+ "property '"+ propertyName+"'");
+ e.printStackTrace(log);
+ } catch (com.sun.star.beans.UnknownPropertyException e) {
+ log.println("Exception occured while trying to change "+
+ "property '"+ propertyName+"'");
+ e.printStackTrace(log);
+ } catch (com.sun.star.lang.WrappedTargetException e) {
+ log.println("Exception occured while trying to change "+
+ "property '"+ propertyName+"'");
+ e.printStackTrace(log);
+ } // end of try-catch
+ error = error || !propertyChanged;
+ if (!propertyChanged) {
+ log.println("propertyChangeListener wasn't called for '"+
+ propertyName+"'");
+ }
}
- } //endif
+ tRes.tested("addPropertyChangeListener()", !error);
+ }
return;
@@ -217,40 +224,45 @@ public class _XPropertySet extends MultiMethodTest {
requiredMethod("getPropertySetInfo()");
- vetoableChanged = false;
-
- if ( PTT.constrained.equals("none") ) {
+ int count = PTT.constrained.size();
+ if ( count==0 || PTT.constrained.get(0).equals("none") ) {
log.println("*** No constrained properties found ***");
tRes.tested("addVetoableChangeListener()", true) ;
} else {
- try {
- oObj.addVetoableChangeListener(PTT.constrained,VClistener);
- Object gValue = oObj.getPropertyValue(PTT.constrained);
- oObj.setPropertyValue(PTT.constrained,
- ValueChanger.changePValue(gValue));
- } catch (com.sun.star.beans.PropertyVetoException e) {
- log.println("Exception occured while trying to change "+
- "property '"+ PTT.constrained+"'");
- e.printStackTrace(log);
- } catch (com.sun.star.lang.IllegalArgumentException e) {
- log.println("Exception occured while trying to change "+
- "property '"+ PTT.constrained+"'");
- e.printStackTrace(log);
- } catch (com.sun.star.beans.UnknownPropertyException e) {
- log.println("Exception occured while trying to change "+
- "property '"+ PTT.constrained+"'");
- e.printStackTrace(log);
- } catch (com.sun.star.lang.WrappedTargetException e) {
- log.println("Exception occured while trying to change "+
- "property '"+ PTT.constrained+"'");
- e.printStackTrace(log);
- } // end of try-catch
- tRes.tested("addVetoableChangeListener()",vetoableChanged);
- if (!vetoableChanged) {
- log.println("vetoableChangeListener wasn't called for '"+
- PTT.constrained+"'");
+ boolean error = false;
+ for (int i = 0; i < count; i++) {
+ String propertyName = PTT.constrained.get(i);
+ vetoableChanged = false;
+ try {
+ oObj.addVetoableChangeListener(propertyName,VClistener);
+ Object gValue = oObj.getPropertyValue(propertyName);
+ oObj.setPropertyValue(propertyName,
+ ValueChanger.changePValue(gValue));
+ } catch (com.sun.star.beans.PropertyVetoException e) {
+ log.println("Exception occured while trying to change "+
+ "property '"+ propertyName+"'");
+ e.printStackTrace(log);
+ } catch (com.sun.star.lang.IllegalArgumentException e) {
+ log.println("Exception occured while trying to change "+
+ "property '"+ propertyName+"'");
+ e.printStackTrace(log);
+ } catch (com.sun.star.beans.UnknownPropertyException e) {
+ log.println("Exception occured while trying to change "+
+ "property '"+ propertyName+"'");
+ e.printStackTrace(log);
+ } catch (com.sun.star.lang.WrappedTargetException e) {
+ log.println("Exception occured while trying to change "+
+ "property '"+ propertyName+"'");
+ e.printStackTrace(log);
+ } // end of try-catch
+ error = error || !vetoableChanged;
+ if (!vetoableChanged) {
+ log.println("vetoableChangeListener wasn't called for '"+
+ propertyName+"'");
+ }
}
- } //endif
+ tRes.tested("addVetoableChangeListener()",!error);
+ }
return;
@@ -276,34 +288,44 @@ public class _XPropertySet extends MultiMethodTest {
Object gValue = null;
Object sValue = null;
- if ( PTT.normal.equals("none") ) {
+ int count = PTT.normal.size();
+ if ( count==0 || PTT.normal.get(0).equals("none") ) {
log.println("*** No changeable properties found ***");
tRes.tested("setPropertyValue()", true) ;
} else {
- try {
- log.println("try to cheange value of property '" + PTT.normal + "'" );
- gValue = oObj.getPropertyValue(PTT.normal);
- sValue = ValueChanger.changePValue(gValue);
- oObj.setPropertyValue(PTT.normal, sValue);
- sValue = oObj.getPropertyValue(PTT.normal);
- } catch (com.sun.star.beans.PropertyVetoException e) {
- log.println("Exception occured while trying to change "+
- "property '"+ PTT.normal+"'");
- e.printStackTrace(log);
- } catch (com.sun.star.lang.IllegalArgumentException e) {
- log.println("Exception occured while trying to change "+
- "property '"+ PTT.normal+"'");
- e.printStackTrace(log);
- } catch (com.sun.star.beans.UnknownPropertyException e) {
- log.println("Exception occured while trying to change "+
- "property '"+ PTT.normal+"'");
- e.printStackTrace(log);
- } catch (com.sun.star.lang.WrappedTargetException e) {
- log.println("Exception occured while trying to change "+
- "property '"+ PTT.normal+"'");
- e.printStackTrace(log);
- } // end of try-catch
- tRes.tested("setPropertyValue()",(! gValue.equals(sValue)));
+ boolean error = false;
+ for (int i = 0; i < count; i++) {
+ String propertyName = PTT.normal.get(i);
+ try {
+ log.println("try to change value of property '" + propertyName + "'" );
+ gValue = oObj.getPropertyValue(propertyName);
+ sValue = ValueChanger.changePValue(gValue);
+ oObj.setPropertyValue(propertyName, sValue);
+ sValue = oObj.getPropertyValue(propertyName);
+ } catch (com.sun.star.beans.PropertyVetoException e) {
+ log.println("Exception occured while trying to change "+
+ "property '"+ propertyName+"'");
+ e.printStackTrace(log);
+ } catch (com.sun.star.lang.IllegalArgumentException e) {
+ log.println("Exception occured while trying to change "+
+ "property '"+ propertyName+"'");
+ e.printStackTrace(log);
+ } catch (com.sun.star.beans.UnknownPropertyException e) {
+ log.println("Exception occured while trying to change "+
+ "property '"+ propertyName+"'");
+ e.printStackTrace(log);
+ } catch (com.sun.star.lang.WrappedTargetException e) {
+ log.println("Exception occured while trying to change "+
+ "property '"+ propertyName+"'");
+ e.printStackTrace(log);
+ } // end of try-catch
+ if( gValue.equals(sValue) )
+ {
+ log.println("setting property '"+ propertyName+"' failed");
+ error = true;
+ }
+ }
+ tRes.tested("setPropertyValue()",!error);
} //endif
return;
@@ -311,6 +333,28 @@ public class _XPropertySet extends MultiMethodTest {
} // end of setPropertyValue()
/**
+ * Tests <code>getPropertyValue</code> method for the given property.
+ * Returns true if no exceptions occured
+ */
+ private boolean getSinglePropertyValue( String propertyName )
+ {
+ boolean runOk = false;
+ try {
+ oObj.getPropertyValue(propertyName);
+ runOk = true;
+ } catch (com.sun.star.beans.UnknownPropertyException e) {
+ log.println("Exception occured while trying to get property '"+
+ propertyName+"'");
+ e.printStackTrace(log);
+ } catch (com.sun.star.lang.WrappedTargetException e) {
+ log.println("Exception occured while trying to get property '"+
+ propertyName+"'");
+ e.printStackTrace(log);
+ }
+ return runOk;
+ }
+
+ /**
* Tests <code>getPropertyValue</code> method.
* Just call this method and checks for no exceptions <p>
* Method tests to be successfully completed before :
@@ -325,29 +369,33 @@ public class _XPropertySet extends MultiMethodTest {
requiredMethod("getPropertySetInfo()");
- String toCheck = PTT.normal;
-
- if ( PTT.normal.equals("none") ) {
- toCheck = oObj.getPropertySetInfo().getProperties()[0].Name;
- log.println("All properties are Read Only");
- log.println("Using: "+toCheck);
+ int count = PTT.normal.size();
+ if ( count==0 || PTT.normal.get(0).equals("none") ) {
+ Property[] properties = oObj.getPropertySetInfo().getProperties();
+ if( properties.length > 0 ) {
+ String propertyName = properties[0].Name;
+ log.println("All properties are Read Only");
+ log.println("Using: "+propertyName);
+ tRes.tested("getPropertyValue()", getSinglePropertyValue( propertyName ) );
+ }
+ else {
+ log.println("*** No properties found ***");
+ tRes.tested("getPropertyValue()", true) ;
+ }
+ } else {
+ boolean error = false;
+ for (int i = 0; i < count; i++) {
+ String propertyName = PTT.normal.get(i);
+ boolean runOk = getSinglePropertyValue( propertyName );
+ if( !runOk )
+ {
+ error = true;
+ log.println("getPropertyValue() failed for property '"+propertyName+"'");
+ }
+ }
+ tRes.tested("getPropertyValue()", !error) ;
}
- try {
- oObj.getPropertyValue(toCheck);
- tRes.tested("getPropertyValue()",true);
- } catch (com.sun.star.beans.UnknownPropertyException e) {
- log.println("Exception occured while trying to get property '"+
- PTT.normal+"'");
- e.printStackTrace(log);
- tRes.tested("getPropertyValue()",false);
- } catch (com.sun.star.lang.WrappedTargetException e) {
- log.println("Exception occured while trying to get property '"+
- PTT.normal+"'");
- e.printStackTrace(log);
- tRes.tested("getPropertyValue()",false);
- } // end of try-catch
-
return;
}
@@ -367,42 +415,60 @@ public class _XPropertySet extends MultiMethodTest {
requiredMethod("addPropertyChangeListener()");
- propertyChanged = false;
-
- if ( PTT.bound.equals("none") ) {
+ int count = PTT.bound.size();
+ if ( count==0 || PTT.bound.get(0).equals("none") ) {
log.println("*** No bound properties found ***");
tRes.tested("removePropertyChangeListener()", true) ;
} else {
- try {
- propertyChanged = false;
- oObj.removePropertyChangeListener(PTT.bound,PClistener);
- Object gValue = oObj.getPropertyValue(PTT.bound);
- oObj.setPropertyValue(PTT.bound,
- ValueChanger.changePValue(gValue));
- } catch (com.sun.star.beans.PropertyVetoException e) {
- log.println("Exception occured while trying to change "+
- "property '"+ PTT.bound+"'");
- e.printStackTrace(log);
- } catch (com.sun.star.lang.IllegalArgumentException e) {
- log.println("Exception occured while trying to change "+
- "property '"+ PTT.bound+"'");
- e.printStackTrace(log);
- } catch (com.sun.star.beans.UnknownPropertyException e) {
- log.println("Exception occured while trying to change "+
- "property '"+ PTT.bound+"'");
- e.printStackTrace(log);
- } catch (com.sun.star.lang.WrappedTargetException e) {
- log.println("Exception occured while trying to change "+
- "property '"+ PTT.bound+"'");
- e.printStackTrace(log);
- } // end of try-catch
-
- tRes.tested("removePropertyChangeListener()",!propertyChanged);
- if (propertyChanged) {
- log.println("propertyChangeListener was called after removing"+
- " for '"+PTT.bound+"'");
+
+ //remove all listeners first
+ for (int i = 0; i < count; i++) {
+ String propertyName = PTT.bound.get(i);
+ try {
+ oObj.removePropertyChangeListener(propertyName,PClistener);
+ } catch (Exception e) {
+ log.println("Exception occured while removing change listener from"+
+ "property '"+ propertyName+"'");
+ e.printStackTrace(log);
+ }
}
- } //endif
+
+ boolean error = false;
+ for (int i = 0; i < count; i++) {
+ String propertyName = PTT.bound.get(i);
+ try {
+ propertyChanged = false;
+ oObj.addPropertyChangeListener(propertyName,PClistener);
+ oObj.removePropertyChangeListener(propertyName,PClistener);
+ Object gValue = oObj.getPropertyValue(propertyName);
+ oObj.setPropertyValue(propertyName,
+ ValueChanger.changePValue(gValue));
+ } catch (com.sun.star.beans.PropertyVetoException e) {
+ log.println("Exception occured while trying to change "+
+ "property '"+ propertyName+"'");
+ e.printStackTrace(log);
+ } catch (com.sun.star.lang.IllegalArgumentException e) {
+ log.println("Exception occured while trying to change "+
+ "property '"+ propertyName+"'");
+ e.printStackTrace(log);
+ } catch (com.sun.star.beans.UnknownPropertyException e) {
+ log.println("Exception occured while trying to change "+
+ "property '"+ propertyName+"'");
+ e.printStackTrace(log);
+ } catch (com.sun.star.lang.WrappedTargetException e) {
+ log.println("Exception occured while trying to change "+
+ "property '"+ propertyName+"'");
+ e.printStackTrace(log);
+ } // end of try-catch
+
+ error = error || propertyChanged;
+ if (propertyChanged) {
+ log.println("propertyChangeListener was called after removing"+
+ " for '"+propertyName+"'");
+ }
+ }
+ tRes.tested("removePropertyChangeListener()",!error);
+ }
return;
@@ -425,47 +491,64 @@ public class _XPropertySet extends MultiMethodTest {
requiredMethod("addVetoableChangeListener()");
- vetoableChanged = false;
-
- if ( PTT.constrained.equals("none") ) {
+ int count = PTT.constrained.size();
+ if ( count==0 || PTT.constrained.get(0).equals("none") ) {
log.println("*** No constrained properties found ***");
tRes.tested("removeVetoableChangeListener()", true) ;
} else {
- try {
- oObj.removeVetoableChangeListener(PTT.constrained,VClistener);
- Object gValue = oObj.getPropertyValue(PTT.constrained);
- oObj.setPropertyValue(PTT.constrained,
- ValueChanger.changePValue(gValue));
- } catch (com.sun.star.beans.PropertyVetoException e) {
- log.println("Exception occured while trying to change "+
- "property '"+ PTT.constrained+"'");
- e.printStackTrace(log);
- } catch (com.sun.star.lang.IllegalArgumentException e) {
- log.println("Exception occured while trying to change "+
- "property '"+ PTT.constrained+"'");
- e.printStackTrace(log);
- } catch (com.sun.star.beans.UnknownPropertyException e) {
- log.println("Exception occured while trying to change "+
- "property '"+ PTT.constrained+"'");
- e.printStackTrace(log);
- } catch (com.sun.star.lang.WrappedTargetException e) {
- log.println("Exception occured while trying to change "+
- "property '"+ PTT.constrained+"'");
- e.printStackTrace(log);
- } // end of try-catch
-
- tRes.tested("removeVetoableChangeListener()",!vetoableChanged);
- if (vetoableChanged) {
- log.println("vetoableChangeListener was called after "+
- "removing for '"+PTT.constrained+"'");
+
+ //remove all listeners first
+ for (int i = 0; i < count; i++) {
+ String propertyName = PTT.constrained.get(i);
+ try {
+ oObj.removeVetoableChangeListener(propertyName,VClistener);
+ } catch (Exception e) {
+ log.println("Exception occured while removing veto listener from"+
+ "property '"+ propertyName+"'");
+ e.printStackTrace(log);
+ }
}
- } //endif
+
+ boolean error = false;
+ for (int i = 0; i < count; i++) {
+ String propertyName = PTT.constrained.get(i);
+ vetoableChanged = false;
+ try {
+ oObj.addVetoableChangeListener(propertyName,VClistener);
+ oObj.removeVetoableChangeListener(propertyName,VClistener);
+ Object gValue = oObj.getPropertyValue(propertyName);
+ oObj.setPropertyValue(propertyName,
+ ValueChanger.changePValue(gValue));
+ } catch (com.sun.star.beans.PropertyVetoException e) {
+ log.println("Exception occured while trying to change "+
+ "property '"+ propertyName+"'");
+ e.printStackTrace(log);
+ } catch (com.sun.star.lang.IllegalArgumentException e) {
+ log.println("Exception occured while trying to change "+
+ "property '"+ propertyName+"'");
+ e.printStackTrace(log);
+ } catch (com.sun.star.beans.UnknownPropertyException e) {
+ log.println("Exception occured while trying to change "+
+ "property '"+ propertyName+"'");
+ e.printStackTrace(log);
+ } catch (com.sun.star.lang.WrappedTargetException e) {
+ log.println("Exception occured while trying to change "+
+ "property '"+ propertyName+"'");
+ e.printStackTrace(log);
+ } // end of try-catch
+ error = error || vetoableChanged;
+ if (vetoableChanged) {
+ log.println("vetoableChangeListener was called after "+
+ "removing for '"+propertyName+"'");
+ }
+ }
+ tRes.tested("removeVetoableChangeListener()",!error);
+ }
return;
} // end of removeVetoableChangeListener()
-
/**
* Gets the properties being tested. Searches and stores by one
* property of each kind (Bound, Vetoable, Normal).
@@ -473,9 +556,6 @@ public class _XPropertySet extends MultiMethodTest {
public void getPropsToTest(XPropertySetInfo xPSI) {
Property[] properties = xPSI.getProperties();
- String bound = "";
- String constrained = "";
- String normal = "";
// some properties should not be changed in a unspecific way
String[] skip = {"PrinterName", "CharRelief", "IsLayerMode"};
@@ -522,47 +602,19 @@ public class _XPropertySet extends MultiMethodTest {
if ( isWritable && isNotNull ) canChange = isChangeable(name);
if ( isWritable && isNotNull && isBound && canChange) {
- bound+=name+";";
+ PTT.bound.add(name);
}
if ( isWritable && isNotNull && isConstr && canChange) {
- constrained+=name+";";
+ PTT.constrained.add(name);
}
- if ( isWritable && isNotNull && canChange) normal+=name+";";
+ if ( isWritable && isNotNull && canChange) {
+ PTT.normal.add(name);
+ }
} // endfor
-
- //get a random bound property
- PTT.bound=getRandomString(bound);
- log.println("Bound: "+PTT.bound);
-
- //get a random constrained property
- PTT.constrained=getRandomString(constrained);
- log.println("Constrained: "+PTT.constrained);
-
- //get a random normal property
- PTT.normal=getRandomString(normal);
- }
-
- /**
- * Retrieves one random property name from list (property names separated
- * by ';') of property names.
- */
- public String getRandomString(String str) {
-
- String gRS = "none";
- Random rnd = new Random();
-
- if (str.equals("")) str = "none";
- StringTokenizer ST=new StringTokenizer(str,";");
- int nr = rnd.nextInt(ST.countTokens());
- if (nr < 1) nr+=1;
- for (int i=1; i<nr+1; i++) gRS = ST.nextToken();
-
- return gRS;
-
}
public boolean isChangeable(String name) {
diff --git a/qadevOOo/tests/java/ifc/chart/_Chart3DBarProperties.java b/qadevOOo/tests/java/ifc/chart/_Chart3DBarProperties.java
index f289d68983ce..531ec39478ed 100644
--- a/qadevOOo/tests/java/ifc/chart/_Chart3DBarProperties.java
+++ b/qadevOOo/tests/java/ifc/chart/_Chart3DBarProperties.java
@@ -93,6 +93,40 @@ public class _Chart3DBarProperties extends MultiPropertyTest {
throw new StatusException("Couldn't change Diagram to 3D", e);
}
}
+
+ /**
+ * Sets the diagram back to 2D as 2D rendering is much faster for the following tests.
+ */
+ protected void after() {
+ log.println("Setting Diagram back to 2D");
+ XChartDocument doc = (XChartDocument) tEnv.getObjRelation("CHARTDOC");
+ if (doc == null) throw new StatusException(Status.failed
+ ("Relation 'CHARTDOC' not found"));
+
+ log.println("Change Diagram to 3D");
+ oObj = (XPropertySet)
+ UnoRuntime.queryInterface( XPropertySet.class, doc.getDiagram() );
+ try {
+ oObj.setPropertyValue("Dim3D", new Boolean(false));
+ } catch(com.sun.star.lang.WrappedTargetException e) {
+ log.println("Couldn't change Diagram back to 2D");
+ e.printStackTrace(log);
+ throw new StatusException("Couldn't change Diagram back to 2D", e);
+ } catch(com.sun.star.lang.IllegalArgumentException e) {
+ log.println("Couldn't change Diagram back to 2D");
+ e.printStackTrace(log);
+ throw new StatusException("Couldn't change Diagram back to 2D", e);
+ } catch(com.sun.star.beans.PropertyVetoException e) {
+ log.println("Couldn't change Diagram back to 2D");
+ e.printStackTrace(log);
+ throw new StatusException("Couldn't change Diagram back to 2D", e);
+ } catch(com.sun.star.beans.UnknownPropertyException e) {
+ log.println("Couldn't change Diagram back to 2D");
+ e.printStackTrace(log);
+ throw new StatusException("Couldn't change Diagram back to 2D", e);
+ }
+ }
+
} // finish class _Chart3DBarProperties
diff --git a/qadevOOo/tests/java/ifc/chart/_ChartDataPointProperties.java b/qadevOOo/tests/java/ifc/chart/_ChartDataPointProperties.java
index 99a89cf3373d..2ae9ac7fa36b 100644
--- a/qadevOOo/tests/java/ifc/chart/_ChartDataPointProperties.java
+++ b/qadevOOo/tests/java/ifc/chart/_ChartDataPointProperties.java
@@ -45,7 +45,7 @@ import com.sun.star.chart.XDiagram;
* </ul> <p>
* The following predefined files needed to complete the test:
* <ul>
-* <li> <code>poliball.gif</code> :
+* <li> <code>space-metal.jpg</code> :
* for test of property 'SymbolBitmapURL' </li>
* <ul> <p>
* This test needs the following object relations :
@@ -79,7 +79,7 @@ public class _ChartDataPointProperties extends MultiPropertyTest {
protected PropertyTester URLTester = new PropertyTester() {
protected Object getNewValue(String propName, Object oldValue)
throws java.lang.IllegalArgumentException {
- return utils.getFullTestURL("poliball.gif");
+ return utils.getFullTestURL("space-metal.jpg");
}
};
diff --git a/qadevOOo/tests/java/ifc/chart/_LineDiagram.java b/qadevOOo/tests/java/ifc/chart/_LineDiagram.java
index 37635266715d..a2555ea26f69 100644
--- a/qadevOOo/tests/java/ifc/chart/_LineDiagram.java
+++ b/qadevOOo/tests/java/ifc/chart/_LineDiagram.java
@@ -48,7 +48,7 @@ import com.sun.star.uno.UnoRuntime;
* </ul> <p>
* The following predefined files needed to complete the test:
* <ul>
-* <li> <code>poliball.gif</code> :
+* <li> <code>space-metal.jpg</code> :
* for test of property 'SymbolBitmapURL' </li>
* <li> <code>crazy-blue.jpg</code> :
* for test of property 'SymbolBitmapURL' </li>
@@ -97,9 +97,9 @@ public class _LineDiagram extends MultiPropertyTest {
protected PropertyTester URLTester = new PropertyTester() {
protected Object getNewValue(String propName, Object oldValue)
throws java.lang.IllegalArgumentException {
- if (oldValue.equals(util.utils.getFullTestURL("poliball.gif")))
+ if (oldValue.equals(util.utils.getFullTestURL("space-metal.jpg")))
return util.utils.getFullTestURL("crazy-blue.jpg"); else
- return util.utils.getFullTestURL("poliball.gif");
+ return util.utils.getFullTestURL("space-metal.jpg");
}
} ;
diff --git a/qadevOOo/tests/java/ifc/drawing/_LineProperties.java b/qadevOOo/tests/java/ifc/drawing/_LineProperties.java
index a590bd5c5e1c..b6fb1f2186a1 100644
--- a/qadevOOo/tests/java/ifc/drawing/_LineProperties.java
+++ b/qadevOOo/tests/java/ifc/drawing/_LineProperties.java
@@ -80,21 +80,7 @@ public class _LineProperties extends MultiPropertyTest {
LineDash aLineDash2 = new LineDash();
aLineDash.DashLen = 5;
aLineDash2.DashLen = 1;
- PropertyValue[] firstValue = new PropertyValue[2];
- firstValue[0] = new PropertyValue();
- firstValue[0].Name = "Name";
- firstValue[0].Value = "Name1";
- firstValue[1] = new PropertyValue();
- firstValue[1].Name = "LineDash";
- firstValue[1].Value = aLineDash;
- PropertyValue[] secondValue = new PropertyValue[2];
- secondValue[0] = new PropertyValue();
- secondValue[0].Name = "Name";
- secondValue[0].Value = "Name2";
- secondValue[1] = new PropertyValue();
- secondValue[1].Name = "LineDash";
- secondValue[1].Value = aLineDash2;
- testProperty("LineDash",firstValue,secondValue);
+ testProperty("LineDash",aLineDash,aLineDash2);
}
}
diff --git a/qadevOOo/tests/java/ifc/sdb/_XSingleSelectQueryComposer.java b/qadevOOo/tests/java/ifc/sdb/_XSingleSelectQueryComposer.java
index b11659265441..fa987a09a227 100644
--- a/qadevOOo/tests/java/ifc/sdb/_XSingleSelectQueryComposer.java
+++ b/qadevOOo/tests/java/ifc/sdb/_XSingleSelectQueryComposer.java
@@ -36,6 +36,7 @@ import lib.StatusException;
import lib.Status;
import com.sun.star.beans.PropertyValue;
import com.sun.star.beans.XPropertySet;
+import com.sun.star.sdb.SQLFilterOperator;
/**
* Testing <code>com.sun.star.sdb.XSingleSelectQueryComposer</code>
@@ -172,7 +173,7 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest {
boolean ok = true;
try{
- oObj.appendFilterByColumn(xProp, true);
+ oObj.appendFilterByColumn(xProp, true,SQLFilterOperator.EQUAL);
log.println("appendFilterByColumn: " + xQueryAna.getFilter());
ok = ok && (xQueryAna.getFilter().indexOf(colName) > 0);
@@ -183,7 +184,7 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest {
try{
- oObj.appendFilterByColumn(xProp, false);
+ oObj.appendFilterByColumn(xProp, false,SQLFilterOperator.EQUAL);
log.println("appendFilterByColumn: " + xQueryAna.getFilter());
ok = ok && (xQueryAna.getFilter().indexOf(colName) > 0);
@@ -194,8 +195,8 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest {
try{
XPropertySet dummy = null;
- oObj.appendFilterByColumn(dummy, true);
- log.println("unexpected Exception was not thorwn");
+ oObj.appendFilterByColumn(dummy, true,SQLFilterOperator.EQUAL);
+ log.println("expected Exception was not thrown");
tRes.tested("appendFilterByColumn()", false);
} catch (com.sun.star.sdbc.SQLException e){
@@ -227,7 +228,7 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest {
try{
XPropertySet dummy = null;
oObj.appendGroupByColumn(dummy);
- log.println("unexpected Exception was not thorwn");
+ log.println("expected Exception was not thrown");
tRes.tested("appendGroupByColumn()", false);
} catch (com.sun.star.sdbc.SQLException e){
@@ -320,7 +321,7 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest {
boolean ok = true;
try{
- oObj.appendHavingClauseByColumn(xProp, true);
+ oObj.appendHavingClauseByColumn(xProp, true,SQLFilterOperator.EQUAL);
log.println("appendHavingClauseByColumn: " + xQueryAna.getFilter());
ok = ok && (xQueryAna.getFilter().indexOf(colName) > 0);
@@ -330,8 +331,8 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest {
}
try{
XPropertySet dummy = null;
- oObj.appendHavingClauseByColumn(dummy, true);
- log.println("unexpected Exception was not thorwn");
+ oObj.appendHavingClauseByColumn(dummy, true,SQLFilterOperator.EQUAL);
+ log.println("expected Exception was not thrown");
tRes.tested("appendHavingClauseByColumn()", false);
} catch (com.sun.star.sdbc.SQLException e){
@@ -363,7 +364,7 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest {
try{
XPropertySet dummy = null;
oObj.appendOrderByColumn(dummy, true);
- log.println("unexpected Exception was not thorwn");
+ log.println("expected Exception was not thrown");
tRes.tested("appendOrderByColumn()", false);
} catch (com.sun.star.sdbc.SQLException e){
diff --git a/qadevOOo/tests/java/mod/_sch/AccArea.java b/qadevOOo/tests/java/mod/_sch/AccArea.java
index dae93e6d3326..b371f1950558 100644
--- a/qadevOOo/tests/java/mod/_sch/AccArea.java
+++ b/qadevOOo/tests/java/mod/_sch/AccArea.java
@@ -111,9 +111,11 @@ public class AccArea extends TestCase {
* @param log writer to log information while testing
*/
protected void cleanup( TestParameters Param, PrintWriter log) {
- log.println( " closing xChartDoc " );
- util.DesktopTools.closeDoc(xChartDoc);
-
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
}
diff --git a/qadevOOo/tests/java/mod/_sch/AccAxis.java b/qadevOOo/tests/java/mod/_sch/AccAxis.java
index e0c6b8901345..2cdecae03aca 100644
--- a/qadevOOo/tests/java/mod/_sch/AccAxis.java
+++ b/qadevOOo/tests/java/mod/_sch/AccAxis.java
@@ -109,9 +109,11 @@ public class AccAxis extends TestCase {
* @param log writer to log information while testing
*/
protected void cleanup( TestParameters Param, PrintWriter log) {
- log.println( " closing xChartDoc " );
- util.DesktopTools.closeDoc(xChartDoc);
-
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
}
diff --git a/qadevOOo/tests/java/mod/_sch/AccDataPoint.java b/qadevOOo/tests/java/mod/_sch/AccDataPoint.java
index 45bd6e3e4101..3e94364a0559 100644
--- a/qadevOOo/tests/java/mod/_sch/AccDataPoint.java
+++ b/qadevOOo/tests/java/mod/_sch/AccDataPoint.java
@@ -110,9 +110,11 @@ public class AccDataPoint extends TestCase {
* @param log writer to log information while testing
*/
protected void cleanup( TestParameters Param, PrintWriter log) {
- log.println( " closing xChartDoc " );
- util.DesktopTools.closeDoc(xChartDoc);
-
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
}
diff --git a/qadevOOo/tests/java/mod/_sch/AccDataSeries.java b/qadevOOo/tests/java/mod/_sch/AccDataSeries.java
index 4eff500ebba7..2d5ec4fde1d5 100644
--- a/qadevOOo/tests/java/mod/_sch/AccDataSeries.java
+++ b/qadevOOo/tests/java/mod/_sch/AccDataSeries.java
@@ -110,9 +110,11 @@ public class AccDataSeries extends TestCase {
* @param log writer to log information while testing
*/
protected void cleanup( TestParameters Param, PrintWriter log) {
- log.println( " closing xChartDoc " );
- util.DesktopTools.closeDoc(xChartDoc);
-
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
}
diff --git a/qadevOOo/tests/java/mod/_sch/AccDiagram.java b/qadevOOo/tests/java/mod/_sch/AccDiagram.java
index 50657c0218ac..9b7f90766fdd 100644
--- a/qadevOOo/tests/java/mod/_sch/AccDiagram.java
+++ b/qadevOOo/tests/java/mod/_sch/AccDiagram.java
@@ -110,9 +110,11 @@ public class AccDiagram extends TestCase {
* @param log writer to log information while testing
*/
protected void cleanup( TestParameters Param, PrintWriter log) {
- log.println( " closing xChartDoc " );
- util.DesktopTools.closeDoc(xChartDoc);
-
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
}
diff --git a/qadevOOo/tests/java/mod/_sch/AccFloor.java b/qadevOOo/tests/java/mod/_sch/AccFloor.java
index 9ab1f9542111..37d56815983d 100644
--- a/qadevOOo/tests/java/mod/_sch/AccFloor.java
+++ b/qadevOOo/tests/java/mod/_sch/AccFloor.java
@@ -135,9 +135,11 @@ public class AccFloor extends TestCase {
* @param log writer to log information while testing
*/
protected void cleanup( TestParameters Param, PrintWriter log) {
- log.println( " closing xChartDoc " );
- util.DesktopTools.closeDoc(xChartDoc);
-
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
}
diff --git a/qadevOOo/tests/java/mod/_sch/AccGrid.java b/qadevOOo/tests/java/mod/_sch/AccGrid.java
index f92aa0fe82a6..268f53ec8b3d 100644
--- a/qadevOOo/tests/java/mod/_sch/AccGrid.java
+++ b/qadevOOo/tests/java/mod/_sch/AccGrid.java
@@ -111,9 +111,11 @@ public class AccGrid extends TestCase {
* @param log writer to log information while testing
*/
protected void cleanup( TestParameters Param, PrintWriter log) {
- log.println( " closing xChartDoc " );
- util.DesktopTools.closeDoc(xChartDoc);
-
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
}
diff --git a/qadevOOo/tests/java/mod/_sch/AccLegend.java b/qadevOOo/tests/java/mod/_sch/AccLegend.java
index a0f29e1e0701..aa46cdb8407d 100644
--- a/qadevOOo/tests/java/mod/_sch/AccLegend.java
+++ b/qadevOOo/tests/java/mod/_sch/AccLegend.java
@@ -109,9 +109,11 @@ public class AccLegend extends TestCase {
* @param log writer to log information while testing
*/
protected void cleanup( TestParameters Param, PrintWriter log) {
- log.println( " closing xChartDoc " );
- util.DesktopTools.closeDoc(xChartDoc);
-
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
}
diff --git a/qadevOOo/tests/java/mod/_sch/AccLegendEntry.java b/qadevOOo/tests/java/mod/_sch/AccLegendEntry.java
index 78996d84fa2a..61c221df57e0 100644
--- a/qadevOOo/tests/java/mod/_sch/AccLegendEntry.java
+++ b/qadevOOo/tests/java/mod/_sch/AccLegendEntry.java
@@ -109,9 +109,11 @@ public class AccLegendEntry extends TestCase {
* @param log writer to log information while testing
*/
protected void cleanup( TestParameters Param, PrintWriter log) {
- log.println( " closing xChartDoc " );
- util.DesktopTools.closeDoc(xChartDoc);
-
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
}
diff --git a/qadevOOo/tests/java/mod/_sch/AccStatisticsObject.java b/qadevOOo/tests/java/mod/_sch/AccStatisticsObject.java
index d72723ebea62..aafe91fdd3d4 100644
--- a/qadevOOo/tests/java/mod/_sch/AccStatisticsObject.java
+++ b/qadevOOo/tests/java/mod/_sch/AccStatisticsObject.java
@@ -114,9 +114,11 @@ public class AccStatisticsObject extends TestCase {
* @param log writer to log information while testing
*/
protected void cleanup( TestParameters Param, PrintWriter log) {
- log.println( " closing xChartDoc " );
- util.DesktopTools.closeDoc(xChartDoc);
-
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
}
diff --git a/qadevOOo/tests/java/mod/_sch/AccTitle.java b/qadevOOo/tests/java/mod/_sch/AccTitle.java
index 4fa56ee8f4f1..0639f19ca4cc 100644
--- a/qadevOOo/tests/java/mod/_sch/AccTitle.java
+++ b/qadevOOo/tests/java/mod/_sch/AccTitle.java
@@ -109,9 +109,11 @@ public class AccTitle extends TestCase {
* @param log writer to log information while testing
*/
protected void cleanup( TestParameters Param, PrintWriter log) {
- log.println( " closing xChartDoc " );
- util.DesktopTools.closeDoc(xChartDoc);
-
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
}
diff --git a/qadevOOo/tests/java/mod/_sch/AccWall.java b/qadevOOo/tests/java/mod/_sch/AccWall.java
index 4dc94a173fff..66779421cc0b 100644
--- a/qadevOOo/tests/java/mod/_sch/AccWall.java
+++ b/qadevOOo/tests/java/mod/_sch/AccWall.java
@@ -134,9 +134,11 @@ public class AccWall extends TestCase {
* @param log writer to log information while testing
*/
protected void cleanup( TestParameters Param, PrintWriter log) {
- log.println( " closing xChartDoc " );
- util.DesktopTools.closeDoc(xChartDoc);
-
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
}
diff --git a/qadevOOo/tests/java/mod/_sch/AccessibleDocumentView.java b/qadevOOo/tests/java/mod/_sch/AccessibleDocumentView.java
index a064e7f05a09..9031680f93f1 100644
--- a/qadevOOo/tests/java/mod/_sch/AccessibleDocumentView.java
+++ b/qadevOOo/tests/java/mod/_sch/AccessibleDocumentView.java
@@ -102,8 +102,11 @@ public class AccessibleDocumentView extends TestCase {
* @param log writer to log information while testing
*/
protected void cleanup( TestParameters Param, PrintWriter log) {
- log.println( " closing xChartDoc " );
- util.DesktopTools.closeDoc(xChartDoc);
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
/**
diff --git a/qadevOOo/tests/java/mod/_sch/ChXChartAxis.java b/qadevOOo/tests/java/mod/_sch/ChXChartAxis.java
index da12c9e6b57a..f796d5530a9c 100644
--- a/qadevOOo/tests/java/mod/_sch/ChXChartAxis.java
+++ b/qadevOOo/tests/java/mod/_sch/ChXChartAxis.java
@@ -86,8 +86,11 @@ public class ChXChartAxis extends TestCase {
* Disposes Chart document.
*/
protected void cleanup( TestParameters tParam, PrintWriter log ) {
- log.println( " closing xChartDoc " );
- util.DesktopTools.closeDoc(xChartDoc);
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
/**
diff --git a/qadevOOo/tests/java/mod/_sch/ChXChartData.java b/qadevOOo/tests/java/mod/_sch/ChXChartData.java
index fe14322933a5..3236e345b8e6 100644
--- a/qadevOOo/tests/java/mod/_sch/ChXChartData.java
+++ b/qadevOOo/tests/java/mod/_sch/ChXChartData.java
@@ -73,8 +73,11 @@ public class ChXChartData extends TestCase {
* Disposes Chart document.
*/
protected void cleanup( TestParameters tParam, PrintWriter log ) {
- log.println( " closing xChartDoc " );
- util.DesktopTools.closeDoc(xChartDoc);
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
/**
diff --git a/qadevOOo/tests/java/mod/_sch/ChXChartDataArray.java b/qadevOOo/tests/java/mod/_sch/ChXChartDataArray.java
index 35d15d634054..14caeefff8c1 100644
--- a/qadevOOo/tests/java/mod/_sch/ChXChartDataArray.java
+++ b/qadevOOo/tests/java/mod/_sch/ChXChartDataArray.java
@@ -76,8 +76,11 @@ public class ChXChartDataArray extends TestCase {
* Disposes Chart document.
*/
protected void cleanup( TestParameters tParam, PrintWriter log ) {
- log.println( " closing xChartDoc " );
- util.DesktopTools.closeDoc(xChartDoc);
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
/**
diff --git a/qadevOOo/tests/java/mod/_sch/ChXChartDocument.java b/qadevOOo/tests/java/mod/_sch/ChXChartDocument.java
index a51457d5cde1..deafa9922043 100644
--- a/qadevOOo/tests/java/mod/_sch/ChXChartDocument.java
+++ b/qadevOOo/tests/java/mod/_sch/ChXChartDocument.java
@@ -77,10 +77,16 @@ public class ChXChartDocument extends TestCase {
* Disposes Chart documents.
*/
protected void cleanup(TestParameters Param, PrintWriter log) {
- log.println( " closing xChartDoc " );
- util.DesktopTools.closeDoc(xChartDoc);
- log.println( " closing xChartDoc2 " );
- util.DesktopTools.closeDoc(doc2);
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
+ if( doc2!=null ) {
+ log.println( " closing xChartDoc2" );
+ util.DesktopTools.closeDoc(doc2);
+ doc2 = null;
+ }
}
/**
diff --git a/qadevOOo/tests/java/mod/_sch/ChXChartView.java b/qadevOOo/tests/java/mod/_sch/ChXChartView.java
index 9d1ea2539bfc..f5476f2d0643 100644
--- a/qadevOOo/tests/java/mod/_sch/ChXChartView.java
+++ b/qadevOOo/tests/java/mod/_sch/ChXChartView.java
@@ -84,8 +84,11 @@ public class ChXChartView extends TestCase {
* Disposes Chart document.
*/
protected void cleanup( TestParameters tParam, PrintWriter log ) {
- log.println( " closing xChartDoc " );
- util.DesktopTools.closeDoc(xChartDoc);
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
/**
diff --git a/qadevOOo/tests/java/mod/_sch/ChXDataPoint.java b/qadevOOo/tests/java/mod/_sch/ChXDataPoint.java
index b6ddb94575b4..0c1647684c75 100644
--- a/qadevOOo/tests/java/mod/_sch/ChXDataPoint.java
+++ b/qadevOOo/tests/java/mod/_sch/ChXDataPoint.java
@@ -101,8 +101,11 @@ public class ChXDataPoint extends TestCase {
* Disposes Chart document.
*/
protected void cleanup( TestParameters tParam, PrintWriter log ) {
- log.println( " closing xChartDoc " );
- util.DesktopTools.closeDoc(xChartDoc);
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
/**
diff --git a/qadevOOo/tests/java/mod/_sch/ChXDataRow.java b/qadevOOo/tests/java/mod/_sch/ChXDataRow.java
index ffc13ad95bb7..69139ea5d902 100644
--- a/qadevOOo/tests/java/mod/_sch/ChXDataRow.java
+++ b/qadevOOo/tests/java/mod/_sch/ChXDataRow.java
@@ -107,8 +107,11 @@ public class ChXDataRow extends TestCase {
* Disposes Chart document.
*/
protected synchronized void cleanup( TestParameters tParam, PrintWriter log ) {
- log.println( " closing xChartDoc " );
- util.DesktopTools.closeDoc(xChartDoc);
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
diff --git a/qadevOOo/tests/java/mod/_sch/ChartArea.java b/qadevOOo/tests/java/mod/_sch/ChartArea.java
index 17a04276aaca..614327f94a1e 100644
--- a/qadevOOo/tests/java/mod/_sch/ChartArea.java
+++ b/qadevOOo/tests/java/mod/_sch/ChartArea.java
@@ -92,8 +92,11 @@ public class ChartArea extends TestCase {
* Disposes Chart document.
*/
protected void cleanup( TestParameters tParam, PrintWriter log ) {
- log.println( " closing xChartDoc " );
- util.DesktopTools.closeDoc(xChartDoc);
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
/**
diff --git a/qadevOOo/tests/java/mod/_sch/ChartGrid.java b/qadevOOo/tests/java/mod/_sch/ChartGrid.java
index 671cfcfe86e3..73a44b810436 100644
--- a/qadevOOo/tests/java/mod/_sch/ChartGrid.java
+++ b/qadevOOo/tests/java/mod/_sch/ChartGrid.java
@@ -81,8 +81,11 @@ public class ChartGrid extends TestCase {
* Disposes Chart document.
*/
protected void cleanup( TestParameters tParam, PrintWriter log ) {
- log.println( " closing xChartDoc " );
- util.DesktopTools.closeDoc(xChartDoc);
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
/**
diff --git a/qadevOOo/tests/java/mod/_sch/ChartLegend.java b/qadevOOo/tests/java/mod/_sch/ChartLegend.java
index 78770c5f94b6..a0dd4fe3ec64 100644
--- a/qadevOOo/tests/java/mod/_sch/ChartLegend.java
+++ b/qadevOOo/tests/java/mod/_sch/ChartLegend.java
@@ -109,8 +109,11 @@ public class ChartLegend extends TestCase {
* Disposes Chart document.
*/
protected void cleanup( TestParameters tParam, PrintWriter log ) {
- log.println( " closing xChartDoc " );
- util.DesktopTools.closeDoc(xChartDoc);
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
/**
diff --git a/qadevOOo/tests/java/mod/_sch/ChartLine.java b/qadevOOo/tests/java/mod/_sch/ChartLine.java
index e2345ba7edb5..950885060f5f 100644
--- a/qadevOOo/tests/java/mod/_sch/ChartLine.java
+++ b/qadevOOo/tests/java/mod/_sch/ChartLine.java
@@ -79,8 +79,11 @@ public class ChartLine extends TestCase {
* Disposes Chart document.
*/
protected void cleanup( TestParameters tParam, PrintWriter log ) {
- log.println( " closing xChartDoc " );
- util.DesktopTools.closeDoc(xChartDoc);
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
/**
diff --git a/qadevOOo/tests/java/mod/_sch/ChartTitle.java b/qadevOOo/tests/java/mod/_sch/ChartTitle.java
index b1e47c0ea00b..f88c938693bc 100644
--- a/qadevOOo/tests/java/mod/_sch/ChartTitle.java
+++ b/qadevOOo/tests/java/mod/_sch/ChartTitle.java
@@ -91,8 +91,11 @@ public class ChartTitle extends TestCase {
* Disposes Chart document.
*/
protected void cleanup( TestParameters tParam, PrintWriter log ) {
- log.println( " closing xChartDoc " );
- util.DesktopTools.closeDoc(xChartDoc);
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
/**
diff --git a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentExporter.java b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentExporter.java
index 8ec11a9360b9..6fe4765389da 100644
--- a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentExporter.java
+++ b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentExporter.java
@@ -91,11 +91,14 @@ public class XMLContentExporter extends TestCase {
}
/**
- * Document disposed here.
+ * Close document
*/
protected void cleanup( TestParameters tParam, PrintWriter log ) {
- log.println( " disposing xChartDoc " );
- xChartDoc.dispose();
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
/**
diff --git a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentImporter.java b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentImporter.java
index 1c5970c7d5e0..5e48b073fc9f 100644
--- a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentImporter.java
+++ b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentImporter.java
@@ -91,11 +91,15 @@ public class XMLContentImporter extends TestCase {
}
/**
- * Disposes document.
- */
+ * Close document
+ */
protected void cleanup( TestParameters tParam, PrintWriter log ) {
- log.println( " disposing document " );
- comp.dispose();
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ comp = null;
+ }
}
/**
diff --git a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLExporter.java b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLExporter.java
index 393ddb7492ce..c0edd4f82cda 100644
--- a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLExporter.java
+++ b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLExporter.java
@@ -92,11 +92,14 @@ public class XMLExporter extends TestCase {
}
/**
- * Document disposed here.
+ * Close document
*/
protected void cleanup( TestParameters tParam, PrintWriter log ) {
- log.println( " close xChartDoc " );
- DesktopTools.closeDoc(xChartDoc);
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
/**
diff --git a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLImporter.java b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLImporter.java
index b8d441751540..83a422df9128 100644
--- a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLImporter.java
+++ b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLImporter.java
@@ -91,11 +91,15 @@ public class XMLImporter extends TestCase {
}
/**
- * Disposes document.
- */
+ * Close document
+ */
protected void cleanup( TestParameters tParam, PrintWriter log ) {
- log.println( " disposing document " );
- comp.dispose();
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ comp = null;
+ }
}
/**
diff --git a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesExporter.java b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesExporter.java
index 9435907adb3c..4405b5c5ac60 100644
--- a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesExporter.java
+++ b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesExporter.java
@@ -90,11 +90,14 @@ public class XMLStylesExporter extends TestCase {
}
/**
- * Document disposed here.
+ * Close document
*/
protected void cleanup( TestParameters tParam, PrintWriter log ) {
- log.println( " disposing xChartDoc " );
- xChartDoc.dispose();
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
/**
diff --git a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesImporter.java b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesImporter.java
index 617b2f92cbc4..7bd02228203d 100644
--- a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesImporter.java
+++ b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesImporter.java
@@ -88,12 +88,16 @@ public class XMLStylesImporter extends TestCase {
comp = xChartDoc;
}
- /**
- * Disposes document.
- */
+ /**
+ * Close document
+ */
protected void cleanup( TestParameters tParam, PrintWriter log ) {
- log.println( " disposing document " );
- comp.dispose();
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ comp = null;
+ }
}
/**
diff --git a/smoketestoo_native/data/smoketestdoc.sxw b/smoketestoo_native/data/smoketestdoc.sxw
index 6368911cdbf6..84f5d231b3b7 100755
--- a/smoketestoo_native/data/smoketestdoc.sxw
+++ b/smoketestoo_native/data/smoketestdoc.sxw
Binary files differ
diff --git a/testautomation/dbaccess/optional/includes/ctrl_Several1.inc b/testautomation/dbaccess/optional/includes/ctrl_Several1.inc
index 71a581f52cdf..0d7b24cbc0f2 100644..100755
--- a/testautomation/dbaccess/optional/includes/ctrl_Several1.inc
+++ b/testautomation/dbaccess/optional/includes/ctrl_Several1.inc
@@ -586,7 +586,7 @@ testcase tComboBox
endcase
'--------------------------------------------------------------------------------------
-testcase tLabelField
+testcase tLabelField
'/// Open a new document,
printlog "Open a new document,"
diff --git a/testautomation/dbaccess/optional/includes/ctrl_Several2.inc b/testautomation/dbaccess/optional/includes/ctrl_Several2.inc
index 182be64e9ac8..4d49e459b231 100644..100755
--- a/testautomation/dbaccess/optional/includes/ctrl_Several2.inc
+++ b/testautomation/dbaccess/optional/includes/ctrl_Several2.inc
@@ -234,12 +234,9 @@ testcase tImageButton
printlog "set properties"
'to activate property: scale, following properties must be active: Graphics (with choosen path)
Kontext "TabGeneralControl"
- if gNetzInst = false then
- fsetControlProperty("ImageButton","Graphics", gOfficePath + ConvertPath("share/gallery/bullets/blkpearl.gif"))
- else
- fsetControlProperty("ImageButton","Graphics", gNetzOfficePath + ConvertPath("share/gallery/bullets/blkpearl.gif"))
- endif
- sleep(1)
+ fsetControlProperty("ImageButton","Graphics", gOfficePath + ConvertPath("share/gallery/bullets/blkpearl.gif"))
+
+ sleep(1)
TabGeneralControl.TypeKeys "<RETURN>" , true
fsetControlProperty("ImageControl","Scale","1") 'listbox content: no
'fsetControlProperty("ImageControl","Frame","4")
diff --git a/testautomation/dbaccess/optional/includes/db_Relations.inc b/testautomation/dbaccess/optional/includes/db_Relations.inc
index 3d10a132d43a..e04a1be4c6d6 100644..100755
--- a/testautomation/dbaccess/optional/includes/db_Relations.inc
+++ b/testautomation/dbaccess/optional/includes/db_Relations.inc
@@ -32,8 +32,10 @@
'\***********************************************************************
function tRelation( sFileName, sPWD, sRelTable1, sRelTable2 )
'/// create an 1:1 and 1:n relation between two test tables
- Dim i, j, ix as integer 'counter
- Dim iNoDS as integer 'number of data source in listbox
+ Dim i as integer 'counter
+ Dim j as integer 'counter
+ Dim ix as integer 'counter
+ Dim iNoDS as integer 'number of data source in listbox
Dim iNoTab as integer 'number of tables in grid
Dim DSOK as boolean 'datasource present check
@@ -206,8 +208,10 @@ end function
function tDoubleRelation( sFileName, sPWD, sRelTable1, sRelTable2, sRelTable3 )
'/// create an 1:1 relation, close and save relation dialog,
'/// reopen the dialog and add an 1:n relation with third test table
- Dim i, j, ix as integer 'counter
- Dim iNoDS as integer 'number of data source in listbox
+ Dim i as integer 'counter
+ Dim j as integer 'counter
+ Dim ix as integer 'counter
+ Dim iNoDS as integer 'number of data source in listbox
Dim iNoTab as integer 'number of tables in grid
Dim DSOK as boolean 'datasource present check
@@ -351,7 +355,7 @@ function tDoubleRelation( sFileName, sPWD, sRelTable1, sRelTable2, sRelTable3 )
if breltablefound <> 1 then 'needed table not found if variable <> 1
warnlog "proper table: " + sRelTable3 + " not found - test abort"
- call fCloseRealtionDesign
+ call fCloseRelationDesign
call fCloseDatabase
exit function
else
diff --git a/testautomation/dbaccess/optional/includes/wiz_DatabaseWizard.inc b/testautomation/dbaccess/optional/includes/wiz_DatabaseWizard.inc
index eb8dd4a15c35..bd25224ba429 100755
--- a/testautomation/dbaccess/optional/includes/wiz_DatabaseWizard.inc
+++ b/testautomation/dbaccess/optional/includes/wiz_DatabaseWizard.inc
@@ -233,38 +233,7 @@ qaerrorlog "not yet implemented"
endcase
'-------------------------------------------------------------------------
testcase tAdabas
-
- qaerrorlog "not yet implemented"
- goto endsub
-
qaerrorlog "not yet implemented"
- goto endsub
-
- if gPlatform = "x86" then
- printlog "Adabas doesn't exists under x86."
- goto endsub
- elseif gOOO then
- printlog "Adabas doesn't exists under Openoffice.org."
- goto endsub
- end if
-
- dim aDatabaseProperties(6) as string
- aDatabaseProperties() = tools_dbtools_fgetAdabasDatabaseProperties()
-
- ' if and only if no properties are defined in the environment file the test is stopped
- if(aDatabaseProperties(1) = "no") then
- qaerrorlog "No database properties from Adabas defiened. The Test is stopped here."
- goto endsub
- endif
-
- call fCreateAdabasDatasource( sFileName, aDatabaseProperties(2), aDatabaseProperties(3), aDatabaseProperties(4))
- call fOpendatabase(gOfficePath + "user/work/tt_adabas.odb","testuser")
-
- Kontext "ContainerView"
- ViewTables
-
- call fCloseDatabase(true)
-
endcase
'-------------------------------------------------------------------------
testcase tdBase
diff --git a/testautomation/dbaccess/required/includes/MainApp.inc b/testautomation/dbaccess/required/includes/MainApp.inc
index 0c53fa08a3e6..eab441cbb228 100755
--- a/testautomation/dbaccess/required/includes/MainApp.inc
+++ b/testautomation/dbaccess/required/includes/MainApp.inc
@@ -598,7 +598,10 @@ endcase
'-------------------------------------------------------------------------
function getMenuItemCount as Integer
'use this function becasue this doesn't count the pick list
- Dim i, j, Ende, nID as Integer
+ Dim i as Integer
+ Dim j as Integer
+ Dim Ende as Integer
+ Dim nID as Integer
Sleep 2
j=0
for i=1 to MenuGetItemCount
diff --git a/testautomation/dbaccess/required/includes/Query.inc b/testautomation/dbaccess/required/includes/Query.inc
index d981fd79656e..f6fa45acbdd7 100644..100755
--- a/testautomation/dbaccess/required/includes/Query.inc
+++ b/testautomation/dbaccess/required/includes/Query.inc
@@ -156,7 +156,7 @@ testcase tSwitchDesign
sTableName = TableName.GetSelText
printlog "- Add 'biblio' table to query design"
if sTableName <> "biblio" then
- warnlog "It should be the 'biblio'-database table but it is the '" & SelEntry & "' database table?!"
+ warnlog "It should be the 'biblio'-database table but it is the '" & sTableName & "' database table?!"
goto endsub
else
AddTable.Click
@@ -909,7 +909,10 @@ endcase
'-------------------------------------------------------------------------
function getMenuItemCount as Integer
'use this function becasue this doesn't count the pick list
- Dim i, j, Ende, nID as Integer
+ Dim i as Integer
+ Dim j as Integer
+ Dim Ende as Integer
+ Dim nID as Integer
Sleep 2
j=0
for i=1 to MenuGetItemCount
diff --git a/testautomation/dbaccess/required/includes/Table.inc b/testautomation/dbaccess/required/includes/Table.inc
index 93c9341d5f6a..f7a00c22fcd5 100644..100755
--- a/testautomation/dbaccess/required/includes/Table.inc
+++ b/testautomation/dbaccess/required/includes/Table.inc
@@ -588,7 +588,10 @@ endcase
'-------------------------------------------------------------------------
function getMenuItemCount as Integer
'use this function becasue this doesn't count the pick list
- Dim i, j, Ende, nID as Integer
+ Dim i as Integer
+ Dim j as Integer
+ Dim Ende as Integer
+ Dim nID as Integer
Sleep 2
j=0
for i=1 to MenuGetItemCount
diff --git a/testautomation/dbaccess/required/includes/TableDesign.inc b/testautomation/dbaccess/required/includes/TableDesign.inc
index 42d86ccd0c5f..9204d34de1b9 100644..100755
--- a/testautomation/dbaccess/required/includes/TableDesign.inc
+++ b/testautomation/dbaccess/required/includes/TableDesign.inc
@@ -467,7 +467,10 @@ endcase
'-------------------------------------------------------------------------
function getMenuItemCount as Integer
'use this function becasue this doesn't count the pick list
- Dim i, j, Ende, nID as Integer
+ Dim i as Integer
+ Dim j as Integer
+ Dim Ende as Integer
+ Dim nID as Integer
Sleep 2
j=0
for i=1 to MenuGetItemCount
diff --git a/testautomation/dbaccess/tools/formtools.inc b/testautomation/dbaccess/tools/formtools.inc
index 058fa5cb52bd..90d29b647384 100644..100755
--- a/testautomation/dbaccess/tools/formtools.inc
+++ b/testautomation/dbaccess/tools/formtools.inc
@@ -118,7 +118,7 @@ function fSaveForm( sFormName as string, optional bCloseForm as boolean )
endif
fSaveForm = true
else
- fSaveFrom = false
+ fSaveForm = false
end if
if ( IsMissing( bCloseForm ) ) then
diff --git a/testautomation/dbaccess/tools/reporttools.inc b/testautomation/dbaccess/tools/reporttools.inc
index 32a4926edee0..89dd00b504c6 100644..100755
--- a/testautomation/dbaccess/tools/reporttools.inc
+++ b/testautomation/dbaccess/tools/reporttools.inc
@@ -138,23 +138,23 @@ function fSaveReport( sReportName as string, optional bCloseReport as boolean )
hMenuSelectNr(6) ' the Save
Kontext "ReportSaveDialog"
- if ReportSaveDialog.exists(3) then
- ReportName.setText(sReportName)
+ if FormSaveDialog.exists(3) then
+ FormName.setText(sReportName)
SaveBtn.Click
'click yes in the overwrite messages box
Kontext "MessageBox"
if MessageBox.exists(1) then
MessageBox.Yes
endif
- fSaveReport = true
+ fSaveReport = true
else
- fSaveFrom = false
+ fSaveReport = false
end if
if ( IsMissing( bCloseReport ) ) then
' nothing
else
- call fCloseReport()
+ call fCloseReportDesign()
end if
end function
@@ -167,7 +167,7 @@ function fOpenReport(sReportName as string)
if ( fFindReport(sReportName) = true ) then
printlog "Report found -> open"
Kontext "ContainerView"
- OpenReport ' uno-Slot .uno:DB/Open
+ OpenForm ' uno-Slot .uno:DB/Open
sleep(1)
fOpenReport = true
else
diff --git a/testautomation/dbaccess/tools/tabletools.inc b/testautomation/dbaccess/tools/tabletools.inc
index 44887eb78c0f..fb354dcd4a75 100644..100755
--- a/testautomation/dbaccess/tools/tabletools.inc
+++ b/testautomation/dbaccess/tools/tabletools.inc
@@ -127,7 +127,7 @@ function tCompareMatrixValues(sDSName as string, sRefFileUrl as string, cTable_o
endif
else
if cTable_or_Query = "t" then warnlog "Table: " + sTableName + " not found - Test aborted"
- if cTable_or_Query = "q" then warnlog "Table: " + sQueryName + " not found - Test aborted"
+ if cTable_or_Query = "q" then warnlog "Query: " + sTableName + " not found - Test aborted"
endif
printlog "*** End Testcase"
sleep 1
@@ -203,7 +203,8 @@ function fCreateRefFile(sDSName as string, cTable_or_Query as string, sTableName
'/// reading out values from table, create a reference table and input values in
printlog "start reading out values from table and writing in ref table"
iNumber = Freefile
- dim i,j as integer 'counter
+ dim i as integer 'counter
+ dim j as integer 'counter
Open sRefFileUrl for Output as iNumber
for i = 1 to iRowAmount
for j = 1 to iColAmount
@@ -708,10 +709,10 @@ function fFindTableInBeamer(sDSName1,sTableName1)
next i
if (bfindTable = false) then
- warnlog "Datasource " + sDSName + " not found!"
+ warnlog "Datasource " + sDSName1 + " not found!"
exit function
else
- printlog "Datasource " + sDSName + " found!"
+ printlog "Datasource " + sDSName1 + " found!"
' I set the bfindTable flag again back to false
' for the next test of the table
bfindTable = false
diff --git a/testautomation/extensions/optional/e_taskpane.bas b/testautomation/extensions/optional/e_taskpane.bas
new file mode 100644
index 000000000000..b6d29d22283d
--- /dev/null
+++ b/testautomation/extensions/optional/e_taskpane.bas
@@ -0,0 +1,49 @@
+'encoding UTF-8 Do not remove or change this line!
+'**************************************************************************
+' DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+'
+' Copyright 2000, 2010 Oracle and/or its affiliates.
+'
+' OpenOffice.org - a multi-platform office productivity suite
+'
+' This file is part of OpenOffice.org.
+'
+' OpenOffice.org is free software: you can redistribute it and/or modify
+' it under the terms of the GNU Lesser General Public License version 3
+' only, as published by the Free Software Foundation.
+'
+' OpenOffice.org is distributed in the hope that it will be useful,
+' but WITHOUT ANY WARRANTY; without even the implied warranty of
+' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+' GNU Lesser General Public License version 3 for more details
+' (a copy is included in the LICENSE file that accompanied this code).
+'
+' You should have received a copy of the GNU Lesser General Public License
+' version 3 along with OpenOffice.org. If not, see
+' <http://www.openoffice.org/license.html>
+' for a copy of the LGPLv3 License.
+'
+'/************************************************************************
+'*
+'* owner :
+'*
+'* short description :
+'*
+'\***********************************************************************
+
+sub main
+
+ use "extensions/optional/includes/e_taskpane.inc"
+ call tTaskPane
+
+end sub
+
+sub LoadIncludeFiles
+
+ use "global\system\includes\gvariabl.inc"
+ use "global\system\includes\master.inc"
+ use "global\tools\includes\optional\t_extension_manager_tools.inc"
+ gApplication = "CALC"
+ call GetUseFiles()
+
+end sub \ No newline at end of file
diff --git a/testautomation/extensions/optional/includes/e_taskpane.inc b/testautomation/extensions/optional/includes/e_taskpane.inc
new file mode 100644
index 000000000000..6d1794e68456
--- /dev/null
+++ b/testautomation/extensions/optional/includes/e_taskpane.inc
@@ -0,0 +1,74 @@
+'encoding UTF-8 Do not remove or change this line!
+'**************************************************************************
+' DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+'
+' Copyright 2000, 2010 Oracle and/or its affiliates.
+'
+' OpenOffice.org - a multi-platform office productivity suite
+'
+' This file is part of OpenOffice.org.
+'
+' OpenOffice.org is free software: you can redistribute it and/or modify
+' it under the terms of the GNU Lesser General Public License version 3
+' only, as published by the Free Software Foundation.
+'
+' OpenOffice.org is distributed in the hope that it will be useful,
+' but WITHOUT ANY WARRANTY; without even the implied warranty of
+' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+' GNU Lesser General Public License version 3 for more details
+' (a copy is included in the LICENSE file that accompanied this code).
+'
+' You should have received a copy of the GNU Lesser General Public License
+' version 3 along with OpenOffice.org. If not, see
+' <http://www.openoffice.org/license.html>
+' for a copy of the LGPLv3 License.
+'
+'/************************************************************************
+'*
+'* owner :
+'*
+'* short description :
+'*
+'\***********************************************************************
+testcase tTaskPane
+
+ Dim sExtensionPath as String
+ Dim iStatus as integer
+
+ sExtensionPath = gTesttoolPath + "extensions/optional/input/extensions/TaskPaneComponent/TaskPaneComponent.oxt"
+
+ iStatus = hExtensionAddGUI( sExtensionPath, "InstallForUser, NoLicense" )
+ if(iStatus <= 0 ) then
+ warnlog "extension could not installed. ErrorCode is " + iStatus
+ goto endsub
+ endif
+
+ call hNewDocument
+
+ kontext "DocumentCalc"
+
+ DocumentCalc.useMenu
+
+ hMenuSelectNr(3)
+ if(hMenuItemIsChecked(11)) then
+ ' do nothing. The pane is displayed
+ else
+ hMenuSelectNr(11)
+ endif
+
+ kontext "MSC_Special_Dialog"
+ if ( MSC_Special_Dialog.exists(1) ) then
+ printlog "task pane exists"
+ else
+ warnlog "task pane does not exists"
+ endif
+
+ call hCloseDocument
+
+ iStatus = hExtensionRemoveGUI("TaskPaneComponent.oxt")
+ if(iStatus <> 0 ) then
+ warnlog "extension could not deinstalled. ErrorCode is " + iStatus
+ goto endsub
+ endif
+
+endcase
diff --git a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/build.xml b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/build.xml
new file mode 100755
index 000000000000..4428a95f551b
--- /dev/null
+++ b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/build.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- You may freely edit this file. See commented blocks below for -->
+<!-- some examples of how to customize the build. -->
+<!-- (If you delete it and reopen the project it will be recreated.) -->
+<project name="TaskPaneComponent" default="default" basedir=".">
+ <description>Builds, tests, and runs the project extension project.</description>
+ <import file="nbproject/build-uno-impl.xml"/>
+ <!--
+
+ There exist several targets which are by default empty and which can be
+ used for execution of your tasks. These targets are usually executed
+ before and after some main targets. They are:
+
+ -pre-init: called before initialization of project properties
+ -post-init: called after initialization of project properties
+ -pre-compile: called before javac compilation
+ -post-compile: called after javac compilation
+ -pre-compile-single: called before javac compilation of single file
+ -post-compile-single: called after javac compilation of single file
+ -pre-compile-test: called before javac compilation of JUnit tests
+ -post-compile-test: called after javac compilation of JUnit tests
+ -pre-compile-test-single: called before javac compilation of single JUnit test
+ -post-compile-test-single: called after javac compilation of single JUunit test
+ -pre-jar: called before JAR building
+ -post-jar: called after JAR building
+ -pre-uno-package: called before OXT creation
+ -post-uno-package: called after OXT creation
+ -post-clean: called after cleaning build products
+
+ (Targets beginning with '-' are not intended to be called on their own.)
+
+ Example of inserting an obfuscator after compilation could look like this:
+
+ <target name="-post-compile">
+ <obfuscate>
+ <fileset dir="${build.classes.dir}"/>
+ </obfuscate>
+ </target>
+
+ For list of available properties check the imported
+ nbproject/build-impl.xml file.
+
+
+ Another way to customize the build is by overriding existing main targets.
+ The targets of interest are:
+
+ -init-macrodef-javac: defines macro for javac compilation
+ -init-macrodef-junit: defines macro for junit execution
+ -init-macrodef-debug: defines macro for class debugging
+ -init-macrodef-java: defines macro for class execution
+ -do-jar-with-manifest: JAR building (if you are using a manifest)
+ -do-jar-without-manifest: JAR building (if you are not using a manifest)
+ run: execution of project
+ -javadoc-build: Javadoc generation
+ test-report: JUnit report generation
+
+ An example of overriding the target for project execution could look like this:
+
+ <target name="run" depends="TypeBrowser2-impl.jar">
+ <exec dir="bin" executable="launcher.exe">
+ <arg file="${dist.jar}"/>
+ </exec>
+ </target>
+
+ Notice that the overridden target depends on the jar target and not only on
+ the compile target as the regular run target does. Again, for a list of available
+ properties which you can use, check the target you are overriding in the
+ nbproject/build-impl.xml file.
+
+ -->
+
+</project>
diff --git a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/build-impl.xml b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/build-impl.xml
new file mode 100755
index 000000000000..f01ad79df06e
--- /dev/null
+++ b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/build-impl.xml
@@ -0,0 +1,794 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+*** GENERATED FROM project.xml - DO NOT EDIT ***
+*** EDIT ../build.xml INSTEAD ***
+
+For the purpose of easier reading the script
+is divided into following sections:
+
+ - initialization
+ - compilation
+ - jar
+ - execution
+ - debugging
+ - javadoc
+ - junit compilation
+ - junit execution
+ - junit debugging
+ - applet
+ - cleanup
+
+ -->
+<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="TaskPaneComponent-impl">
+ <fail message="Please build using Ant 1.7.1 or higher.">
+ <condition>
+ <not>
+ <antversion atleast="1.7.1"/>
+ </not>
+ </condition>
+ </fail>
+ <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
+ <!--
+ ======================
+ INITIALIZATION SECTION
+ ======================
+ -->
+ <target name="-pre-init">
+ <!-- Empty placeholder for easier customization. -->
+ <!-- You can override this target in the ../build.xml file. -->
+ </target>
+ <target depends="-pre-init" name="-init-private">
+ <property file="nbproject/private/config.properties"/>
+ <property file="nbproject/private/configs/${config}.properties"/>
+ <property file="nbproject/private/private.properties"/>
+ </target>
+ <target depends="-pre-init,-init-private" name="-init-user">
+ <property file="${user.properties.file}"/>
+ <!-- The two properties below are usually overridden -->
+ <!-- by the active platform. Just a fallback. -->
+ <property name="default.javac.source" value="1.4"/>
+ <property name="default.javac.target" value="1.4"/>
+ </target>
+ <target depends="-pre-init,-init-private,-init-user" name="-init-project">
+ <property file="nbproject/configs/${config}.properties"/>
+ <property file="nbproject/project.properties"/>
+ </target>
+ <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
+ <available file="${manifest.file}" property="manifest.available"/>
+ <condition property="main.class.available">
+ <and>
+ <isset property="main.class"/>
+ <not>
+ <equals arg1="${main.class}" arg2="" trim="true"/>
+ </not>
+ </and>
+ </condition>
+ <condition property="manifest.available+main.class">
+ <and>
+ <isset property="manifest.available"/>
+ <isset property="main.class.available"/>
+ </and>
+ </condition>
+ <condition property="do.mkdist">
+ <and>
+ <isset property="libs.CopyLibs.classpath"/>
+ <not>
+ <istrue value="${mkdist.disabled}"/>
+ </not>
+ </and>
+ </condition>
+ <condition property="manifest.available+main.class+mkdist.available">
+ <and>
+ <istrue value="${manifest.available+main.class}"/>
+ <isset property="do.mkdist"/>
+ </and>
+ </condition>
+ <condition property="manifest.available+mkdist.available">
+ <and>
+ <istrue value="${manifest.available}"/>
+ <isset property="do.mkdist"/>
+ </and>
+ </condition>
+ <condition property="manifest.available-mkdist.available">
+ <or>
+ <istrue value="${manifest.available}"/>
+ <isset property="do.mkdist"/>
+ </or>
+ </condition>
+ <condition property="manifest.available+main.class-mkdist.available">
+ <or>
+ <istrue value="${manifest.available+main.class}"/>
+ <isset property="do.mkdist"/>
+ </or>
+ </condition>
+ <condition property="have.tests">
+ <or/>
+ </condition>
+ <condition property="have.sources">
+ <or>
+ <available file="${src.dir}"/>
+ </or>
+ </condition>
+ <condition property="netbeans.home+have.tests">
+ <and>
+ <isset property="netbeans.home"/>
+ <isset property="have.tests"/>
+ </and>
+ </condition>
+ <condition property="no.javadoc.preview">
+ <and>
+ <isset property="javadoc.preview"/>
+ <isfalse value="${javadoc.preview}"/>
+ </and>
+ </condition>
+ <property name="run.jvmargs" value=""/>
+ <property name="javac.compilerargs" value=""/>
+ <property name="work.dir" value="${basedir}"/>
+ <condition property="no.deps">
+ <and>
+ <istrue value="${no.dependencies}"/>
+ </and>
+ </condition>
+ <property name="javac.debug" value="true"/>
+ <property name="javadoc.preview" value="true"/>
+ <property name="application.args" value=""/>
+ <property name="source.encoding" value="${file.encoding}"/>
+ <property name="runtime.encoding" value="${source.encoding}"/>
+ <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
+ <and>
+ <isset property="javadoc.encoding"/>
+ <not>
+ <equals arg1="${javadoc.encoding}" arg2=""/>
+ </not>
+ </and>
+ </condition>
+ <property name="javadoc.encoding.used" value="${source.encoding}"/>
+ <property name="includes" value="**"/>
+ <property name="excludes" value=""/>
+ <property name="do.depend" value="false"/>
+ <condition property="do.depend.true">
+ <istrue value="${do.depend}"/>
+ </condition>
+ <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
+ <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
+ <length length="0" string="${endorsed.classpath}" when="greater"/>
+ </condition>
+ <property name="javac.fork" value="false"/>
+ </target>
+ <target name="-post-init">
+ <!-- Empty placeholder for easier customization. -->
+ <!-- You can override this target in the ../build.xml file. -->
+ </target>
+ <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
+ <fail unless="src.dir">Must set src.dir</fail>
+ <fail unless="build.dir">Must set build.dir</fail>
+ <fail unless="dist.dir">Must set dist.dir</fail>
+ <fail unless="build.classes.dir">Must set build.classes.dir</fail>
+ <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
+ <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
+ <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
+ <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
+ <fail unless="dist.jar">Must set dist.jar</fail>
+ </target>
+ <target name="-init-macrodef-property">
+ <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
+ <attribute name="name"/>
+ <attribute name="value"/>
+ <sequential>
+ <property name="@{name}" value="${@{value}}"/>
+ </sequential>
+ </macrodef>
+ </target>
+ <target name="-init-macrodef-javac">
+ <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
+ <attribute default="${src.dir}" name="srcdir"/>
+ <attribute default="${build.classes.dir}" name="destdir"/>
+ <attribute default="${javac.classpath}" name="classpath"/>
+ <attribute default="${includes}" name="includes"/>
+ <attribute default="${excludes}" name="excludes"/>
+ <attribute default="${javac.debug}" name="debug"/>
+ <attribute default="${empty.dir}" name="sourcepath"/>
+ <attribute default="${empty.dir}" name="gensrcdir"/>
+ <element name="customize" optional="true"/>
+ <sequential>
+ <property location="${build.dir}/empty" name="empty.dir"/>
+ <mkdir dir="${empty.dir}"/>
+ <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
+ <src>
+ <dirset dir="@{gensrcdir}" erroronmissingdir="false">
+ <include name="*"/>
+ </dirset>
+ </src>
+ <classpath>
+ <path path="@{classpath}"/>
+ </classpath>
+ <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
+ <compilerarg line="${javac.compilerargs}"/>
+ <customize/>
+ </javac>
+ </sequential>
+ </macrodef>
+ <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
+ <attribute default="${src.dir}" name="srcdir"/>
+ <attribute default="${build.classes.dir}" name="destdir"/>
+ <attribute default="${javac.classpath}" name="classpath"/>
+ <sequential>
+ <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
+ <classpath>
+ <path path="@{classpath}"/>
+ </classpath>
+ </depend>
+ </sequential>
+ </macrodef>
+ <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
+ <attribute default="${build.classes.dir}" name="destdir"/>
+ <sequential>
+ <fail unless="javac.includes">Must set javac.includes</fail>
+ <pathconvert pathsep="," property="javac.includes.binary">
+ <path>
+ <filelist dir="@{destdir}" files="${javac.includes}"/>
+ </path>
+ <globmapper from="*.java" to="*.class"/>
+ </pathconvert>
+ <delete>
+ <files includes="${javac.includes.binary}"/>
+ </delete>
+ </sequential>
+ </macrodef>
+ </target>
+ <target name="-init-macrodef-junit">
+ <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
+ <attribute default="${includes}" name="includes"/>
+ <attribute default="${excludes}" name="excludes"/>
+ <attribute default="**" name="testincludes"/>
+ <sequential>
+ <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
+ <batchtest todir="${build.test.results.dir}"/>
+ <classpath>
+ <path path="${run.test.classpath}"/>
+ </classpath>
+ <syspropertyset>
+ <propertyref prefix="test-sys-prop."/>
+ <mapper from="test-sys-prop.*" to="*" type="glob"/>
+ </syspropertyset>
+ <formatter type="brief" usefile="false"/>
+ <formatter type="xml"/>
+ <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
+ <jvmarg line="${run.jvmargs}"/>
+ </junit>
+ </sequential>
+ </macrodef>
+ </target>
+ <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
+ <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
+ <attribute default="${main.class}" name="name"/>
+ <attribute default="${debug.classpath}" name="classpath"/>
+ <attribute default="" name="stopclassname"/>
+ <sequential>
+ <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
+ <classpath>
+ <path path="@{classpath}"/>
+ </classpath>
+ </nbjpdastart>
+ </sequential>
+ </macrodef>
+ <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
+ <attribute default="${build.classes.dir}" name="dir"/>
+ <sequential>
+ <nbjpdareload>
+ <fileset dir="@{dir}" includes="${fix.classes}">
+ <include name="${fix.includes}*.class"/>
+ </fileset>
+ </nbjpdareload>
+ </sequential>
+ </macrodef>
+ </target>
+ <target name="-init-debug-args">
+ <property name="version-output" value="java version &quot;${ant.java.version}"/>
+ <condition property="have-jdk-older-than-1.4">
+ <or>
+ <contains string="${version-output}" substring="java version &quot;1.0"/>
+ <contains string="${version-output}" substring="java version &quot;1.1"/>
+ <contains string="${version-output}" substring="java version &quot;1.2"/>
+ <contains string="${version-output}" substring="java version &quot;1.3"/>
+ </or>
+ </condition>
+ <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
+ <istrue value="${have-jdk-older-than-1.4}"/>
+ </condition>
+ <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
+ <os family="windows"/>
+ </condition>
+ <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
+ <isset property="debug.transport"/>
+ </condition>
+ </target>
+ <target depends="-init-debug-args" name="-init-macrodef-debug">
+ <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
+ <attribute default="${main.class}" name="classname"/>
+ <attribute default="${debug.classpath}" name="classpath"/>
+ <element name="customize" optional="true"/>
+ <sequential>
+ <java classname="@{classname}" dir="${work.dir}" fork="true">
+ <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
+ <jvmarg line="${debug-args-line}"/>
+ <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
+ <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
+ <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
+ <jvmarg line="${run.jvmargs}"/>
+ <classpath>
+ <path path="@{classpath}"/>
+ </classpath>
+ <syspropertyset>
+ <propertyref prefix="run-sys-prop."/>
+ <mapper from="run-sys-prop.*" to="*" type="glob"/>
+ </syspropertyset>
+ <customize/>
+ </java>
+ </sequential>
+ </macrodef>
+ </target>
+ <target name="-init-macrodef-java">
+ <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
+ <attribute default="${main.class}" name="classname"/>
+ <attribute default="${run.classpath}" name="classpath"/>
+ <element name="customize" optional="true"/>
+ <sequential>
+ <java classname="@{classname}" dir="${work.dir}" fork="true">
+ <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
+ <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
+ <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
+ <jvmarg line="${run.jvmargs}"/>
+ <classpath>
+ <path path="@{classpath}"/>
+ </classpath>
+ <syspropertyset>
+ <propertyref prefix="run-sys-prop."/>
+ <mapper from="run-sys-prop.*" to="*" type="glob"/>
+ </syspropertyset>
+ <customize/>
+ </java>
+ </sequential>
+ </macrodef>
+ </target>
+ <target name="-init-presetdef-jar">
+ <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
+ <jar compress="${jar.compress}" jarfile="${dist.jar}">
+ <j2seproject1:fileset dir="${build.classes.dir}"/>
+ </jar>
+ </presetdef>
+ </target>
+ <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar" name="init"/>
+ <!--
+ ===================
+ COMPILATION SECTION
+ ===================
+ -->
+ <target name="-deps-jar-init" unless="built-jar.properties">
+ <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
+ <delete file="${built-jar.properties}" quiet="true"/>
+ </target>
+ <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
+ <echo level="warn" message="Cycle detected: TaskPaneComponent was already built"/>
+ </target>
+ <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
+ <mkdir dir="${build.dir}"/>
+ <touch file="${built-jar.properties}" verbose="false"/>
+ <property file="${built-jar.properties}" prefix="already.built.jar."/>
+ <antcall target="-warn-already-built-jar"/>
+ <propertyfile file="${built-jar.properties}">
+ <entry key="${basedir}" value=""/>
+ </propertyfile>
+ </target>
+ <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
+ <target depends="init" name="-check-automatic-build">
+ <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
+ </target>
+ <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
+ <antcall target="clean"/>
+ </target>
+ <target depends="init,deps-jar" name="-pre-pre-compile">
+ <mkdir dir="${build.classes.dir}"/>
+ </target>
+ <target name="-pre-compile">
+ <!-- Empty placeholder for easier customization. -->
+ <!-- You can override this target in the ../build.xml file. -->
+ </target>
+ <target if="do.depend.true" name="-compile-depend">
+ <pathconvert property="build.generated.subdirs">
+ <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
+ <include name="*"/>
+ </dirset>
+ </pathconvert>
+ <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
+ </target>
+ <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">
+ <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
+ <copy todir="${build.classes.dir}">
+ <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
+ </copy>
+ </target>
+ <target name="-post-compile">
+ <!-- Empty placeholder for easier customization. -->
+ <!-- You can override this target in the ../build.xml file. -->
+ </target>
+ <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
+ <target name="-pre-compile-single">
+ <!-- Empty placeholder for easier customization. -->
+ <!-- You can override this target in the ../build.xml file. -->
+ </target>
+ <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
+ <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
+ <j2seproject3:force-recompile/>
+ <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
+ </target>
+ <target name="-post-compile-single">
+ <!-- Empty placeholder for easier customization. -->
+ <!-- You can override this target in the ../build.xml file. -->
+ </target>
+ <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
+ <!--
+ ====================
+ JAR BUILDING SECTION
+ ====================
+ -->
+ <target depends="init" name="-pre-pre-jar">
+ <dirname file="${dist.jar}" property="dist.jar.dir"/>
+ <mkdir dir="${dist.jar.dir}"/>
+ </target>
+ <target name="-pre-jar">
+ <!-- Empty placeholder for easier customization. -->
+ <!-- You can override this target in the ../build.xml file. -->
+ </target>
+ <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
+ <j2seproject1:jar/>
+ </target>
+ <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
+ <j2seproject1:jar manifest="${manifest.file}"/>
+ </target>
+ <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
+ <j2seproject1:jar manifest="${manifest.file}">
+ <j2seproject1:manifest>
+ <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
+ </j2seproject1:manifest>
+ </j2seproject1:jar>
+ <echo>To run this application from the command line without Ant, try:</echo>
+ <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
+ <property location="${dist.jar}" name="dist.jar.resolved"/>
+ <pathconvert property="run.classpath.with.dist.jar">
+ <path path="${run.classpath}"/>
+ <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
+ </pathconvert>
+ <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
+ </target>
+ <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
+ <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
+ <pathconvert property="run.classpath.without.build.classes.dir">
+ <path path="${run.classpath}"/>
+ <map from="${build.classes.dir.resolved}" to=""/>
+ </pathconvert>
+ <pathconvert pathsep=" " property="jar.classpath">
+ <path path="${run.classpath.without.build.classes.dir}"/>
+ <chainedmapper>
+ <flattenmapper/>
+ <globmapper from="*" to="lib/*"/>
+ </chainedmapper>
+ </pathconvert>
+ <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
+ <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
+ <fileset dir="${build.classes.dir}"/>
+ <manifest>
+ <attribute name="Main-Class" value="${main.class}"/>
+ <attribute name="Class-Path" value="${jar.classpath}"/>
+ </manifest>
+ </copylibs>
+ <echo>To run this application from the command line without Ant, try:</echo>
+ <property location="${dist.jar}" name="dist.jar.resolved"/>
+ <echo>java -jar "${dist.jar.resolved}"</echo>
+ </target>
+ <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+mkdist.available" name="-do-jar-with-libraries-without-mainclass" unless="main.class.available">
+ <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
+ <pathconvert property="run.classpath.without.build.classes.dir">
+ <path path="${run.classpath}"/>
+ <map from="${build.classes.dir.resolved}" to=""/>
+ </pathconvert>
+ <pathconvert pathsep=" " property="jar.classpath">
+ <path path="${run.classpath.without.build.classes.dir}"/>
+ <chainedmapper>
+ <flattenmapper/>
+ <globmapper from="*" to="lib/*"/>
+ </chainedmapper>
+ </pathconvert>
+ <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
+ <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
+ <fileset dir="${build.classes.dir}"/>
+ <manifest>
+ <attribute name="Class-Path" value="${jar.classpath}"/>
+ </manifest>
+ </copylibs>
+ </target>
+ <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.mkdist" name="-do-jar-with-libraries-without-manifest" unless="manifest.available">
+ <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
+ <pathconvert property="run.classpath.without.build.classes.dir">
+ <path path="${run.classpath}"/>
+ <map from="${build.classes.dir.resolved}" to=""/>
+ </pathconvert>
+ <pathconvert pathsep=" " property="jar.classpath">
+ <path path="${run.classpath.without.build.classes.dir}"/>
+ <chainedmapper>
+ <flattenmapper/>
+ <globmapper from="*" to="lib/*"/>
+ </chainedmapper>
+ </pathconvert>
+ <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
+ <copylibs compress="${jar.compress}" jarfile="${dist.jar}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
+ <fileset dir="${build.classes.dir}"/>
+ <manifest>
+ <attribute name="Class-Path" value="${jar.classpath}"/>
+ </manifest>
+ </copylibs>
+ </target>
+ <target name="-post-jar">
+ <!-- Empty placeholder for easier customization. -->
+ <!-- You can override this target in the ../build.xml file. -->
+ </target>
+ <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-do-jar-with-libraries-without-mainclass,-do-jar-with-libraries-without-manifest,-post-jar" description="Build JAR." name="jar"/>
+ <!--
+ =================
+ EXECUTION SECTION
+ =================
+ -->
+ <target depends="init,compile" description="Run a main class." name="run">
+ <j2seproject1:java>
+ <customize>
+ <arg line="${application.args}"/>
+ </customize>
+ </j2seproject1:java>
+ </target>
+ <target name="-do-not-recompile">
+ <property name="javac.includes.binary" value=""/>
+ </target>
+ <target depends="init,compile-single" name="run-single">
+ <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
+ <j2seproject1:java classname="${run.class}"/>
+ </target>
+ <target depends="init,compile-test-single" name="run-test-with-main">
+ <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
+ <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
+ </target>
+ <!--
+ =================
+ DEBUGGING SECTION
+ =================
+ -->
+ <target depends="init" if="netbeans.home" name="-debug-start-debugger">
+ <j2seproject1:nbjpdastart name="${debug.class}"/>
+ </target>
+ <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
+ <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
+ </target>
+ <target depends="init,compile" name="-debug-start-debuggee">
+ <j2seproject3:debug>
+ <customize>
+ <arg line="${application.args}"/>
+ </customize>
+ </j2seproject3:debug>
+ </target>
+ <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
+ <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
+ <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
+ </target>
+ <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
+ <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
+ <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
+ <j2seproject3:debug classname="${debug.class}"/>
+ </target>
+ <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
+ <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
+ <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
+ <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
+ </target>
+ <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
+ <target depends="init" name="-pre-debug-fix">
+ <fail unless="fix.includes">Must set fix.includes</fail>
+ <property name="javac.includes" value="${fix.includes}.java"/>
+ </target>
+ <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
+ <j2seproject1:nbjpdareload/>
+ </target>
+ <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
+ <!--
+ ===============
+ JAVADOC SECTION
+ ===============
+ -->
+ <target depends="init" name="-javadoc-build">
+ <mkdir dir="${dist.javadoc.dir}"/>
+ <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
+ <classpath>
+ <path path="${javac.classpath}"/>
+ </classpath>
+ <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
+ <filename name="**/*.java"/>
+ </fileset>
+ <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
+ <include name="**/*.java"/>
+ </fileset>
+ </javadoc>
+ </target>
+ <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
+ <nbbrowse file="${dist.javadoc.dir}/index.html"/>
+ </target>
+ <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
+ <!--
+ =========================
+ JUNIT COMPILATION SECTION
+ =========================
+ -->
+ <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
+ <mkdir dir="${build.test.classes.dir}"/>
+ </target>
+ <target name="-pre-compile-test">
+ <!-- Empty placeholder for easier customization. -->
+ <!-- You can override this target in the ../build.xml file. -->
+ </target>
+ <target if="do.depend.true" name="-compile-test-depend">
+ <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir=""/>
+ </target>
+ <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
+ <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir=""/>
+ <copy todir="${build.test.classes.dir}"/>
+ </target>
+ <target name="-post-compile-test">
+ <!-- Empty placeholder for easier customization. -->
+ <!-- You can override this target in the ../build.xml file. -->
+ </target>
+ <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
+ <target name="-pre-compile-test-single">
+ <!-- Empty placeholder for easier customization. -->
+ <!-- You can override this target in the ../build.xml file. -->
+ </target>
+ <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
+ <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
+ <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
+ <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="" srcdir=""/>
+ <copy todir="${build.test.classes.dir}"/>
+ </target>
+ <target name="-post-compile-test-single">
+ <!-- Empty placeholder for easier customization. -->
+ <!-- You can override this target in the ../build.xml file. -->
+ </target>
+ <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
+ <!--
+ =======================
+ JUNIT EXECUTION SECTION
+ =======================
+ -->
+ <target depends="init" if="have.tests" name="-pre-test-run">
+ <mkdir dir="${build.test.results.dir}"/>
+ </target>
+ <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
+ <j2seproject3:junit testincludes="**/*Test.java"/>
+ </target>
+ <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
+ <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
+ </target>
+ <target depends="init" if="have.tests" name="test-report"/>
+ <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
+ <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
+ <target depends="init" if="have.tests" name="-pre-test-run-single">
+ <mkdir dir="${build.test.results.dir}"/>
+ </target>
+ <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
+ <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
+ <j2seproject3:junit excludes="" includes="${test.includes}"/>
+ </target>
+ <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
+ <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
+ </target>
+ <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
+ <!--
+ =======================
+ JUNIT DEBUGGING SECTION
+ =======================
+ -->
+ <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
+ <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
+ <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
+ <delete file="${test.report.file}"/>
+ <mkdir dir="${build.test.results.dir}"/>
+ <j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}">
+ <customize>
+ <syspropertyset>
+ <propertyref prefix="test-sys-prop."/>
+ <mapper from="test-sys-prop.*" to="*" type="glob"/>
+ </syspropertyset>
+ <arg value="${test.class}"/>
+ <arg value="showoutput=true"/>
+ <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
+ <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
+ </customize>
+ </j2seproject3:debug>
+ </target>
+ <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
+ <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
+ </target>
+ <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
+ <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
+ <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
+ </target>
+ <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
+ <!--
+ =========================
+ APPLET EXECUTION SECTION
+ =========================
+ -->
+ <target depends="init,compile-single" name="run-applet">
+ <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
+ <j2seproject1:java classname="sun.applet.AppletViewer">
+ <customize>
+ <arg value="${applet.url}"/>
+ </customize>
+ </j2seproject1:java>
+ </target>
+ <!--
+ =========================
+ APPLET DEBUGGING SECTION
+ =========================
+ -->
+ <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
+ <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
+ <j2seproject3:debug classname="sun.applet.AppletViewer">
+ <customize>
+ <arg value="${applet.url}"/>
+ </customize>
+ </j2seproject3:debug>
+ </target>
+ <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
+ <!--
+ ===============
+ CLEANUP SECTION
+ ===============
+ -->
+ <target name="-deps-clean-init" unless="built-clean.properties">
+ <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
+ <delete file="${built-clean.properties}" quiet="true"/>
+ </target>
+ <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
+ <echo level="warn" message="Cycle detected: TaskPaneComponent was already built"/>
+ </target>
+ <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
+ <mkdir dir="${build.dir}"/>
+ <touch file="${built-clean.properties}" verbose="false"/>
+ <property file="${built-clean.properties}" prefix="already.built.clean."/>
+ <antcall target="-warn-already-built-clean"/>
+ <propertyfile file="${built-clean.properties}">
+ <entry key="${basedir}" value=""/>
+ </propertyfile>
+ </target>
+ <target depends="init" name="-do-clean">
+ <delete dir="${build.dir}"/>
+ <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
+ </target>
+ <target name="-post-clean">
+ <!-- Empty placeholder for easier customization. -->
+ <!-- You can override this target in the ../build.xml file. -->
+ </target>
+ <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
+ <target name="-check-call-dep">
+ <property file="${call.built.properties}" prefix="already.built."/>
+ <condition property="should.call.dep">
+ <not>
+ <isset property="already.built.${call.subproject}"/>
+ </not>
+ </condition>
+ </target>
+ <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
+ <ant antfile="${call.script}" inheritall="false" target="${call.target}">
+ <propertyset>
+ <propertyref prefix="transfer."/>
+ <mapper from="transfer.*" to="*" type="glob"/>
+ </propertyset>
+ </ant>
+ </target>
+</project>
diff --git a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/build-uno-impl.xml b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/build-uno-impl.xml
new file mode 100755
index 000000000000..25b3f25f86c7
--- /dev/null
+++ b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/build-uno-impl.xml
@@ -0,0 +1,462 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+*** AUTOMATICALLY GENERATED - DO NOT EDIT ***
+*** EDIT ../build.xml INSTEAD ***
+-->
+<project name="TaskPaneComponentuno-impl" default="netbeans" basedir="..">
+ <description>Builds, tests, and runs an UNO project.</description>
+
+ <import file="build-impl.xml"/>
+
+ <!-- ================================================================================== -->
+
+ <target name="-uno-project-init" depends="-do-init">
+ <property file="nbproject/project-uno.properties"/>
+ <property name="build.uno.version" value="2.0.6"/>
+
+ <!-- set variablers from SDK and Office -->
+ <echo message="setting up UNO environment ..."/>
+ <property name="office.unopkg" value="${office.program.dir}${file.separator}unopkg"/>
+ <property name="office.soffice" value="${office.program.dir}${file.separator}soffice"/>
+
+ <property name="sdk.idl.dir" location="${oo.sdk.dir}${file.separator}idl"/>
+ <property name="sdk.idlc" value="${sdk.bin.dir}${file.separator}idlc"/>
+ <property name="sdk.regmerge" value="${ure.bin.dir}${file.separator}regmerge"/>
+ <property name="sdk.javamaker" value="${sdk.bin.dir}${file.separator}javamaker"/>
+
+ <dirname property="project.dir" file="build.xml"/>
+ <property name="uno.package.name" value="${project.dir}${file.separator}${dist.dir}${file.separator}${project.name}.oxt"/>
+ <property name="src.dir.absolute" value="${project.dir}${file.separator}${src.dir}"/>
+
+ <property name="idl.out" value="${project.dir}${file.separator}${build.dir}${file.separator}idl"/>
+ <property name="idl.classes.dir" value="${project.dir}${file.separator}${build.classes.dir}"/>
+ <property name="idl.out.urd" value="${idl.out}/urd"/>
+ <property name="idl.out.rdb" value="${idl.out}/rdb"/>
+ <property name="idl.rdb.name" value="types.rdb"/>
+ <property name="idl.rdb.fullpath" value="${idl.out.rdb}/${idl.rdb.name}"/>
+
+ <property name="images.base.dir" value="${build.dir}/img"/>
+ <property name="build.registry.dir" value="${build.dir}/cpreg"/>
+
+ <mkdir dir="${idl.out}"/>
+ <mkdir dir="${idl.out.urd}"/>
+ <mkdir dir="${idl.out.rdb}"/>
+ <mkdir dir="${images.base.dir}"/>
+ <mkdir dir="${build.registry.dir}"/>
+
+ <condition property="oo.version.three">
+ <equals arg1="${oo.version.number}" arg2="three"/>
+ </condition>
+ </target>
+
+ <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
+ <!-- handle images -->
+ <target name="-uno-images-condition" description="check images" depends="-uno-project-init">
+ <available file="${images.dir}" type="dir" property="images.required"/>
+ </target>
+
+ <target name="images" description="copy images" depends="-uno-images-condition" if="images.required">
+ <mkdir dir="${images.base.dir}/${images.dir}"/>
+ <copy todir="${images.base.dir}/${images.dir}">
+ <fileset dir="${images.dir}"/>
+ </copy>
+ </target>
+
+ <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
+ <!-- handle xcu/xcs files with package names -->
+
+ <target name="-uno-registryfiles-condition" description="check xcu and xcs files" depends="-uno-project-init">
+ <available file="${registry.dir}" type="dir" property="xcuxcs.required"/>
+ </target>
+
+ <target name="registry" description="copy registry files" depends="-uno-registryfiles-condition" if="xcuxcs.required">
+ <mkdir dir="${build.registry.dir}/${registry.dir}"/>
+ <copy todir="${build.registry.dir}/${registry.dir}">
+ <fileset dir="${registry.dir}" includes="**/*.xcu,**/*.xcs"/>
+ </copy>
+ </target>
+
+ <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
+
+ <target name="-uno-idl-idlc-condition" description="check idlc dependencies" depends="-uno-project-init">
+ <uptodate property="idlc.notRequired" targetfile ="${build.dir}/idlc.compile">
+ <srcfiles dir= "${src.dir}" includes="**/*.idl"/>
+ </uptodate>
+ </target>
+
+ <!-- compile UNO idl files: execution -->
+ <target name="-uno-idl-idlc" description="Compile the IDL Conditionally" depends="-uno-idl-idlc-condition" unless="idlc.notRequired">
+ <apply executable="${sdk.idlc}" dir="${office.program.dir}" failonerror="true">
+ <env key="PATH" path="${office.tool.path}"/>
+ <env key="LD_LIBRARY_PATH" path="${office.tool.path}"/>
+ <env key="DYLD_LIBRARY_PATH" path="${office.tool.path}"/>
+ <arg value="-C"/>
+ <arg value="-O"/>
+ <arg value="${idl.out.urd}"/>
+ <arg value="-I"/>
+ <arg value="${src.dir.absolute}"/>
+ <arg value="-I"/>
+ <arg value="${sdk.idl.dir}"/>
+ <fileset dir="${src.dir}" includes="**/*.idl" casesensitive="yes" id="idl.list.id"/>
+ </apply>
+ <!-- list for copying idl files in own jar -->
+ <property name="idl.file" refid="idl.list.id"/>
+ <propertyfile file="${idl.out}/idl_list.properties">
+ <entry key="idl.file.list" value="${idl.file}"/>
+ </propertyfile>
+ <replace file="${idl.out}/idl_list.properties" token=".idl" value=".class"/>
+ <replace file="${idl.out}/idl_list.properties" token=";" value=","/>
+ </target>
+
+ <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
+
+ <!-- merge urd files: execution -->
+ <target name="-uno-idl-regmerge" description="Merge urd Files Conditionally" depends="-uno-idl-idlc,-uno-idl-idlc-condition" unless="idlc.notRequired">
+ <!-- to only extract the new files, delete the old rdb -->
+ <delete file="${idl.rdb.fullpath}"/>
+ <apply executable="${sdk.regmerge}" dir="${office.program.dir}" failonerror="true">
+ <env key="PATH" path="${office.tool.path}"/>
+ <env key="LD_LIBRARY_PATH" path="${office.tool.path}"/>
+ <env key="DYLD_LIBRARY_PATH" path="${office.tool.path}"/>
+ <arg file="${idl.rdb.fullpath}"/>
+ <arg value="/UCR"/>
+ <fileset dir="${idl.out.urd}" includes="**/*.urd" casesensitive="yes"/>
+ </apply>
+ </target>
+
+ <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
+
+ <!-- should javamaker be executed -->
+ <target name="-uno-idl-javamaker-condition" description="check if rdb was created" depends="-uno-idl-regmerge,-uno-idl-idlc-condition">
+ <available file="${idl.rdb.name}" filepath="${idl.out.rdb}" property="javamaker.Required"/>
+ </target>
+
+ <!-- generate Java class files from type library: execution -->
+ <target name="-uno-idl-javamaker" depends="-uno-idl-regmerge,-uno-idl-idlc-condition,-uno-idl-javamaker-condition" if="javamaker.Required" unless="idlc.notRequired">
+ <echo message="generating java class files from rdb..."/>
+ <exec executable="${sdk.javamaker}" dir="${office.program.dir}" failonerror="true">
+ <env key="PATH" path="${office.tool.path}"/>
+ <env key="LD_LIBRARY_PATH" path="${office.tool.path}"/>
+ <env key="DYLD_LIBRARY_PATH" path="${office.tool.path}"/>
+ <arg value="-BUCR"/>
+ <arg value="-O"/>
+ <arg value="${idl.classes.dir}"/>
+ <arg file="${idl.rdb.fullpath}"/>
+ <arg value="${oo.unotypes.rdb}"/> <!-- from ConfigurationSettings -->
+ <arg value="${oo.offapi.rdb}"/> <!-- from ConfigurationSettings -->
+ </exec>
+ </target>
+
+ <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
+
+ <target name="-uno-idl-result" depends="-uno-idl-javamaker">
+ <touch file="${build.dir}/idlc.compile"/>
+ <echo message="build UNO idl files finished"/>
+ </target>
+
+ <!-- the main target, called in recursive builds -->
+ <target name="uno-idl-compile" description="Compiles UNO idl files" depends="-uno-idl-result"/>
+
+ <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
+
+ <target name="jar" depends="-uno-project-init,uno-idl-compile,-jar-idl-types,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-do-openoffice-manifest,-post-jar">
+ <jar basedir="${build.classes.dir}" compress="true" filesonly="true" manifest="${build.dir}/MANIFEST.MF" jarfile="${dist.jar}" excludes="**/*.xml,**/*.txt,${idl.file.list},${build.classes.excludes}"/>
+ </target>
+
+ <target name="-jar-idl-types" depends="-do-uno-types" unless="no.idl.files">
+ <mkdir dir="${dist.dir}"/>
+ <jar basedir="${build.classes.dir}" compress="true" jarfile="${dist.dir}/${idl_types.jar}" includes="${idl.file.list}">
+ <manifest>
+ <attribute name="UNO-Type-Path" value="&lt;&gt;"/>
+ </manifest>
+ </jar>
+ </target>
+
+ <target name="-do-openoffice-manifest" depends="-copy-user-manifest,-external-jars,-do-registration,-do-class-path"/>
+
+ <!-- macro for checking manifest entries from a user manifest -->
+ <macrodef name="check-manifest-entry">
+ <attribute name="entry.name"/>
+ <attribute name="condition.property.name"/>
+ <sequential>
+ <condition property="@{condition.property.name}">
+ <and>
+ <!-- if file does not exist, "isfileselected" is not executed -->
+ <!-- necessary construct because available is not allowed here
+ but should be according to documentation -->
+ <istrue value="${build.manifest.exists}"/>
+ <!-- produces an error if file is not there -->
+ <isfileselected file="${build.dir}/MANIFEST.MF">
+ <contains text="@{entry.name}"/>
+ </isfileselected>
+ </and>
+ </condition>
+ </sequential>
+ </macrodef>
+
+ <!-- enter the class path with external jars, if external jars exit and the user did not enter his own -->
+ <target name="-do-class-path" depends="-external-jars,-check-class-path" unless="class.path.exists">
+ <manifest file="${build.dir}/MANIFEST.MF" mode="update">
+ <attribute name="Class-Path" value="${external.jars}"/>
+ </manifest>
+ </target>
+ <target name="-check-class-path">
+ <check-manifest-entry condition.property.name="class.path.exists" entry.name="Class-Path"/>
+ </target>
+
+ <!-- enter idl type definitions if it exists and if the user did not overwrite it -->
+ <target name="-do-uno-types" depends="-do-empty-unopath,-do-idl-unopath"/>
+ <target name="-do-idl-unopath" depends="-check-uno-types" if="own.idl.files" unless="uno.path.exists">
+ <manifest file="${build.dir}/MANIFEST.MF" mode="update">
+ <attribute name="UNO-Type-Path" value="${idl_types.jar}"/>
+ </manifest>
+ </target>
+ <target name="-do-empty-unopath" depends="-check-uno-types" if="no.idl.files" unless="uno.path.exists">
+ <manifest file="${build.dir}/MANIFEST.MF" mode="update">
+ <attribute name="UNO-Type-Path" value=""/>
+ </manifest>
+ </target>
+ <target name="-check-uno-types">
+ <property file="${idl.out}/idl_list.properties"/>
+ <check-manifest-entry condition.property.name="uno.path.exists" entry.name="UNO-Type-Path"/>
+ <condition property="no.idl.files">
+ <equals arg1="${idl.file.list}" arg2="" trim="true"/>
+ </condition>
+ <condition property="own.idl.files">
+ <not>
+ <istrue value="${no.idl.files}"/>
+ </not>
+ </condition>
+ </target>
+
+ <!-- enter the registration classes unless the user did not enter his own. Do nothing when the project is old -->
+ <target name="-do-registration" depends="-do-central-registration,-check-registration-classes-name"
+ if="new.project.registration" unless="do.no.registration">
+ <manifest file="${build.dir}/MANIFEST.MF" mode="update">
+ <section name="${slash.registration.class}">
+ <attribute name="RegistrationClasses" value="${registration.classname}"/>
+ </section>
+ </manifest>
+ </target>
+ <target name="-check-registration-classes-name">
+ <check-manifest-entry condition.property.name="registration.classes.exists" entry.name="RegistrationClasses"/>
+ <condition property="do.no.registration">
+ <or>
+ <istrue value="${registration.classes.exists}"/>
+ <istrue value="${registration.class.exists}"/>
+ </or>
+ </condition>
+ </target>
+
+ <!-- enter the registration class name unless the user did not enter his own. Do nothing when the project is old -->
+ <target name="-do-central-registration" depends="-check-registration-class-name,-do-old-project-registration" if="new.project.registration" unless="registration.class.exists">
+ <property name="regclass.properties" value="${build.dir}/regclass.properties"/>
+ <propertyfile file="${regclass.properties}">
+ <entry key="dot.registration" value="${slash.registration.class}"/>
+ </propertyfile>
+ <replace file="${regclass.properties}" token=".class" value=""/>
+ <replace file="${regclass.properties}" token="/" value="."/>
+ <property file="${regclass.properties}"/>
+ <manifest file="${build.dir}/MANIFEST.MF" mode="update">
+ <attribute name="RegistrationClassName" value="${dot.registration}"/>
+ </manifest>
+ </target>
+ <target name="-check-registration-class-name">
+ <check-manifest-entry condition.property.name="registration.class.exists" entry.name="RegistrationClassName"/>
+ </target>
+
+ <!-- Do the registration for older projects without a central registration class -->
+ <target name="-do-old-project-registration" depends="-check-for-old-project" if="old.project.registration" unless="registration.class.exists">
+ <manifest file="${build.dir}/MANIFEST.MF" mode="update">
+ <attribute name="RegistrationClassName" value="${registration.classname}"/>
+ </manifest>
+ </target>
+ <target name="-check-for-old-project">
+ <!-- central registration class in project -->
+ <fileset id="registration.class.name" dir="${build.dir}/classes">
+ <patternset>
+ <include name="**/CentralRegistrationClass.class"/>
+ </patternset>
+ </fileset>
+ <property name="systemslash.registration.class" refid="registration.class.name"/>
+ <!-- make forward slash from backslash on Windows -->
+ <property name="regclass.properties" value="${build.dir}/regclass.properties"/>
+ <propertyfile file="${regclass.properties}">
+ <entry key="slash.registration.class" value="${systemslash.registration.class}"/>
+ </propertyfile>
+ <replace file="${regclass.properties}" token="\\" value="/"/>
+ <property file="${regclass.properties}"/>
+ <!-- now slash is ok -->
+ <condition property="old.project.registration">
+ <equals trim="true" arg1="${slash.registration.class}" arg2=""/>
+ </condition>
+ <condition property="new.project.registration">
+ <isfalse value="${old.project.registration}"/>
+ </condition>
+ </target>
+
+ <!-- copy the user manifest if it exists -->
+ <target name="-copy-user-manifest" depends="-check-user-manifest" if="user.manifest.exists">
+ <copy file="manifest.mf" tofile="${build.dir}/MANIFEST.MF" overwrite="true"/>
+ <available file="${build.dir}/MANIFEST.MF" property="build.manifest.exists"/>
+ </target>
+ <target name="-check-user-manifest">
+ <available file="manifest.mf" property="user.manifest.exists"/>
+ </target>
+
+ <!-- handle the class path for external jar files unless there is a user overwrite -->
+ <target name="-external-jars" depends="-rm-external-jars,-add-external-jars"/>
+
+ <target name="-add-external-jars" depends="-external-jars-condition" if="do.externalJars">
+ <!-- get property external.jars for classpath from props file -->
+ <property file="${dist.dir}/${external.jar.dir}/jars.properties"/>
+ </target>
+
+ <target name="-rm-external-jars" depends="-external-jars-condition" unless="do.externalJars">
+ <!-- empty property, if no jars -->
+ <property name="external.jars" value=""/>
+ </target>
+
+ <target name="-external-jars-condition">
+ <available file="${dist.dir}/${external.jar.dir}" type="dir" property="do.externalJars"/>
+ </target>
+
+ <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
+
+ <target name="-delete-uno-package">
+ <delete failonerror="false" file="${uno.package.name}"/>
+ </target>
+
+ <target name="-pre-uno-package">
+ <!-- Empty placeholder for easier customization. -->
+ <!-- You can override this target in the ../build.xml file. -->
+ </target>
+
+ <target name="-license-exists">
+ <available file="${project.dir}/${licenses.dir}" type="dir" property="do.license"/>
+ </target>
+
+ <!-- test for licenses dir is necessary because zipfileset fails if dir not there -->
+ <target name="-uno-package-with-license" depends="-license-exists" if="do.license">
+ <zip update="true" destfile="${uno.package.name}">
+ <zipfileset dir="${project.dir}/${licenses.dir}" includes="**" casesensitive="yes" prefix="${licenses.dir}"/>
+ </zip>
+ </target>
+
+ <target name="-description-exists">
+ <available file="${project.dir}/${description.dir}" type="dir" property="do.description"/>
+ </target>
+
+ <!-- test for description dir is necessary because zipfileset fails if dir not there -->
+ <target name="-uno-package-with-description" depends="-description-exists" if="do.description">
+ <zip update="true" destfile="${uno.package.name}">
+ <zipfileset dir="${project.dir}/${description.dir}" includes="**" casesensitive="yes" prefix="${description.dir}"/>
+ </zip>
+ </target>
+
+ <target name="-help-exists">
+ <available file="${project.dir}/${help.dir}" type="dir" property="do.help"/>
+ </target>
+
+ <!-- test for help dir is necessary because zipfileset fails if dir not there -->
+ <target name="-uno-package-with-help" depends="-help-exists" if="do.help">
+ <zip update="true" destfile="${uno.package.name}">
+ <zipfileset dir="${help.dir}" includes="${help.content.extensions}" prefix="${help.dir}"/>
+ </zip>
+ </target>
+
+ <target name="-dialogs-exists">
+ <available file="${project.dir}/${dialogs.dir}" type="dir" property="do.dialogs"/>
+ </target>
+
+ <!-- test for dialogs dir is necessary because zipfileset fails if dir not there -->
+ <target name="-uno-package-with-dialogs" depends="-dialogs-exists" if="do.dialogs">
+ <zip update="true" destfile="${uno.package.name}">
+ <zipfileset dir="${dialogs.dir}" includes="${dialog.content.extensions}" prefix="dialogs"/>
+ </zip>
+ </target>
+
+ <target name="-do-uno-package" description="Creates UNO extension pacakge" depends="-uno-package-with-license,-uno-package-with-help,-uno-package-with-dialogs,-uno-package-with-description">
+ <echo message="creating UNO extension package ..."/>
+ <zip update="true" destfile="${uno.package.name}">
+ <fileset dir="${src.dir}" includes="${manifest.package.extensions}" casesensitive="yes"/>
+ <fileset dir="${build.registry.dir}" casesensitive="yes"/>
+ <fileset dir="${src.dir}" includes="description.xml" casesensitive="yes"/>
+ <fileset dir="${dist.dir}" includes="**/*.jar" casesensitive="yes"/>
+ <fileset dir="${images.base.dir}" includes="**" casesensitive="yes"/>
+ <fileset dir="${idl.out.rdb}" includes="**/*.rdb" casesensitive="yes"/>
+ <zipfileset dir="${src.dir}" includes="uno-extension-manifest.xml" fullpath="META-INF/manifest.xml"/>
+ </zip>
+ </target>
+
+ <target name="-post-uno-package">
+ <!-- Empty placeholder for easier customization. -->
+ <!-- You can override this target in the ../build.xml file. -->
+ </target>
+
+ <target name="uno-package" description="Creates UNO extension pacakge" depends="jar,images,registry,-delete-uno-package,-pre-uno-package,-do-uno-package,-post-uno-package"/>
+
+ <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
+
+<!-- <target name="uno-deploy" description="Deploys UNO extension package" depends="uno-package">
+ <echo message="deploying UNO extension package ..."/>
+ <echo message="${office.unopkg} gui -f ${uno.package.name}"/>
+ <echo message="${office.soffice} ${uno.package.name}"/>
+ <exec executable="${office.soffice}" dir="${office.program.dir}" failonerror="true">
+ <arg file="${uno.package.name}"/>
+ </exec>
+ </target> -->
+
+ <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
+
+ <target name="uno-run" description="Run OpenOffice.org" depends="uno-package,-run-oo"/>
+
+ <!-- subtargets for different office versions -->
+ <target name="-run-oo">
+ <echo message="${office.unopkg} gui -f ${uno.package.name}"/>
+ <exec dir="${office.program.dir}" executable="${office.unopkg}" failonerror="true">
+ <arg value="gui"/>
+ <arg value="-f"/>
+ <arg file="${uno.package.name}"/>
+ </exec>
+ <echo message="${office.soffice}"/>
+ <exec executable="${office.soffice}" dir="${office.program.dir}" failonerror="true">
+ <arg value="${office.startup.options}"/>
+ </exec>
+ </target>
+
+ <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
+
+ <target name="uno-debug" description="Debugss UNO extension package in Target Office" depends="uno-package,-oo-debug"/>
+
+ <target name="-oo-debug">
+ <!-- security fail for executing this without netbeans -->
+ <fail unless="netbeans.home">This target can only run inside the NetBeans IDE.</fail>
+ <!-- start debugger and get connection address jpda.address -->
+ <nbjpdastart name="Debug Office" addressproperty="jpda.address" transport="dt_socket">
+ <classpath path="${build.classes.dir}"/>
+ <sourcepath path="${src.dir}"/>
+ </nbjpdastart>
+ <!-- register component in temporary user installation -->
+ <echo message="debugging UNO extension package ..."/>
+ <echo message="${office.unopkg} gui -f ${uno.package.name}"/>
+ <exec dir="${office.program.dir}" executable="${office.unopkg}">
+ <arg value="gui"/>
+ <arg value="-f"/>
+ <arg file="${uno.package.name}"/>
+ <env key="UserInstallation" value="${office.debug.user.directory}"/>
+ </exec>
+ <!-- start Office with debug Java and user installation -->
+ <echo message="starting the Office with ..."/>
+ <echo message="user installation: ${office.debug.user.directory}"/>
+ <echo message="debug options: &quot;-Xdebug&quot; &quot;-Xrunjdwp:transport=dt_socket,address=${jpda.address}&quot;"/>
+ <echo message="${office.soffice}"/>
+ <exec dir="${office.program.dir}" executable="${office.soffice}" failonerror="true">
+ <arg value="-nofirststartwizard"/>
+ <arg value="${office.startup.options}"/>
+ <env key="UserInstallation" value="${office.debug.user.directory}"/>
+ <env key="JAVA_TOOL_OPTIONS" value="&quot;-Xdebug&quot; &quot;-Xrunjdwp:transport=dt_socket,address=${jpda.address}&quot;"/>
+ </exec>
+ </target>
+
+</project>
diff --git a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/genfiles.properties b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/genfiles.properties
new file mode 100755
index 000000000000..e4e5fc11997d
--- /dev/null
+++ b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/genfiles.properties
@@ -0,0 +1,8 @@
+build.xml.data.CRC32=2b754fcd
+build.xml.script.CRC32=0a20deac
+build.xml.stylesheet.CRC32=d5b6853a
+# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
+# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
+nbproject/build-impl.xml.data.CRC32=54a58ff4
+nbproject/build-impl.xml.script.CRC32=25927849
+nbproject/build-impl.xml.stylesheet.CRC32=576378a2@1.32.1.45
diff --git a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/private/config.properties b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/private/config.properties
new file mode 100755
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/private/config.properties
diff --git a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/private/private.properties b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/private/private.properties
new file mode 100755
index 000000000000..c090eb0e8f9c
--- /dev/null
+++ b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/private/private.properties
@@ -0,0 +1,6 @@
+compile.on.save=false
+do.depend=false
+do.jar=true
+javac.debug=true
+javadoc.preview=true
+user.properties.file=/localuser/qamsc/.netbeans/6.8/build.properties
diff --git a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/project-uno.properties b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/project-uno.properties
new file mode 100755
index 000000000000..35a0535e7d02
--- /dev/null
+++ b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/project-uno.properties
@@ -0,0 +1,18 @@
+uno.project.type=office.component.project
+project.name=TaskPaneComponent
+registration.classname=com.example.TaskPaneComponent
+external.jar.dir=lib
+idl_types.jar=TaskPaneComponent_IDL_types.jar
+central.registration.class=com.example.CentralRegistrationClass
+# extensions for files that go into the .oxt package; some are also referenced in the manifest
+manifest.package.extensions=**/*.xcu,**/*.xcs,**/*.xdl,**/*.xlb,**/*.xba,**/*.properties,**/*.default
+imgae.extensions=**/*.png,**/*.jpg,**/*.jpeg,**/*.gif
+help.content.extensions=**/*.xhp,**/*.tree,${image.extensions}
+dialog.content.extensions=**/*.xdl,**/*.properties,**/*.default,${image.extensions}
+office.startup.options=
+images.dir=images
+registry.dir=registry
+help.dir=help
+dialogs.dir=dialogs
+licenses.dir=licenses
+description.dir=description
diff --git a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/project.properties b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/project.properties
new file mode 100755
index 000000000000..b6059cf3113c
--- /dev/null
+++ b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/project.properties
@@ -0,0 +1,67 @@
+application.args=
+application.title=TaskPaneComponent
+application.vendor=qamsc
+build.classes.dir=${build.dir}/classes
+build.classes.excludes=**/*.java,**/*.form,**/*.xcu,**/*.xcs,**/*.idl,**/*manifest.xml
+# This directory is removed when the project is cleaned:
+build.dir=build
+build.generated.dir=${build.dir}/generated
+build.generated.sources.dir=${build.dir}/generated-sources
+# Only compile against the classpath explicitly listed here:
+build.sysclasspath=ignore
+build.test.classes.dir=${build.dir}/test/classes
+build.test.results.dir=${build.dir}/test/results
+debug.classpath=\
+ ${run.classpath}
+debug.test.classpath=\
+ ${run.test.classpath}
+# This directory is removed when the project is cleaned:
+dist.dir=dist
+dist.jar=${dist.dir}/TaskPaneComponent.jar
+dist.javadoc.dir=${dist.dir}/javadoc
+endorsed.classpath=
+excludes=
+file.reference.juh.jar=../../office/slidecopy/openoffice.org/ure/share/java/juh.jar
+file.reference.jurt.jar=../../office/slidecopy/openoffice.org/ure/share/java/jurt.jar
+file.reference.ridl.jar=../../office/slidecopy/openoffice.org/ure/share/java/ridl.jar
+file.reference.unoil.jar=../../office/slidecopy/openoffice.org/basis3.3/program/classes/unoil.jar
+includes=**
+jar.compress=false
+javac.classpath=\
+ ${file.reference.unoil.jar}:\
+ ${file.reference.juh.jar}:\
+ ${file.reference.jurt.jar}:\
+ ${file.reference.ridl.jar}
+# Space-separated list of extra javac options
+javac.compilerargs=
+javac.deprecation=false
+javac.source=1.5
+javac.target=1.5
+javac.test.classpath=\
+ ${javac.classpath}:\
+ ${build.classes.dir}:\
+ ${libs.junit.classpath}
+javadoc.additionalparam=
+javadoc.author=false
+javadoc.encoding=
+javadoc.noindex=false
+javadoc.nonavbar=false
+javadoc.notree=false
+javadoc.private=false
+javadoc.splitindex=true
+javadoc.use=true
+javadoc.version=false
+javadoc.windowtitle=
+meta.inf.dir=${src.dir}/META-INF
+platform.active=default_platform
+run.classpath=\
+ ${javac.classpath}:\
+ ${build.classes.dir}
+# Space-separated list of JVM arguments used when running the project
+# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value
+# or test-sys-prop.name=value to set system properties for unit tests):
+run.jvmargs=
+run.test.classpath=\
+ ${javac.test.classpath}:\
+ ${build.test.classes.dir}
+src.dir=src
diff --git a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/project.xml b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/project.xml
new file mode 100755
index 000000000000..43c253f3c7e5
--- /dev/null
+++ b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/project.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://www.netbeans.org/ns/project/1">
+ <type>org.netbeans.modules.java.j2seproject</type>
+ <configuration>
+ <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
+ <name>TaskPaneComponent</name>
+ <minimum-ant-version>1.6.5</minimum-ant-version>
+ <source-roots>
+ <root id="src.dir"/>
+ </source-roots>
+ <test-roots/>
+ </data>
+ </configuration>
+</project>
diff --git a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/registry/data/org/openoffice/Office/UI/CalcWindowState.xcu b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/registry/data/org/openoffice/Office/UI/CalcWindowState.xcu
new file mode 100755
index 000000000000..ba2c8c692d4e
--- /dev/null
+++ b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/registry/data/org/openoffice/Office/UI/CalcWindowState.xcu
@@ -0,0 +1,23 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<oor:component-data oor:name="CalcWindowState" oor:package="org.openoffice.Office.UI" xmlns:install="http://openoffice.org/2004/installation" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <node oor:name="UIElements">
+ <node oor:name="States">
+ <node oor:name="private:resource/toolpanel/com.example.TestPanel1" oor:op="replace">
+ <prop oor:name="UIName" oor:type="xs:string">
+ <value xml:lang="en-US">ein Panel</value>
+ </prop>
+ <prop oor:name="Visible" oor:type="xs:boolean">
+ <value>true</value>
+ </prop>
+ </node>
+ <node oor:name="private:resource/toolpanel/com.example.TestPanel2" oor:op="replace">
+ <prop oor:name="UIName" oor:type="xs:string">
+ <value xml:lang="en-US">noch ein Panel</value>
+ </prop>
+ <prop oor:name="Visible" oor:type="xs:boolean">
+ <value>true</value>
+ </prop>
+ </node>
+ </node>
+ </node>
+</oor:component-data>
diff --git a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/registry/data/org/openoffice/Office/UI/Factories.xcu b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/registry/data/org/openoffice/Office/UI/Factories.xcu
new file mode 100755
index 000000000000..90dce8595a1b
--- /dev/null
+++ b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/registry/data/org/openoffice/Office/UI/Factories.xcu
@@ -0,0 +1,35 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<oor:component-data oor:name="Factories" oor:package="org.openoffice.Office.UI" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <node oor:name="Registered">
+ <node oor:name="UIElementFactories">
+ <node oor:name="com.example.TaskPaneComponent1" oor:op="replace">
+ <prop oor:name="Type">
+ <value>toolpanel</value>
+ </prop>
+ <prop oor:name="Name">
+ <value>com.example.TestPanel1</value>
+ </prop>
+ <prop oor:name="Module">
+ <value/>
+ </prop>
+ <prop oor:name="FactoryImplementation">
+ <value>com.example.TaskPaneComponent</value>
+ </prop>
+ </node>
+ <node oor:name="com.example.TaskPaneComponent2" oor:op="replace">
+ <prop oor:name="Type">
+ <value>toolpanel</value>
+ </prop>
+ <prop oor:name="Name">
+ <value>com.example.TestPanel2</value>
+ </prop>
+ <prop oor:name="Module">
+ <value/>
+ </prop>
+ <prop oor:name="FactoryImplementation">
+ <value>com.example.TaskPaneComponent</value>
+ </prop>
+ </node>
+ </node>
+ </node>
+</oor:component-data>
diff --git a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/com/example/CentralRegistrationClass.java b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/com/example/CentralRegistrationClass.java
new file mode 100755
index 000000000000..5276f584aa3e
--- /dev/null
+++ b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/com/example/CentralRegistrationClass.java
@@ -0,0 +1,140 @@
+/*************************************************************************
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+package com.example;
+
+import com.sun.star.lang.XSingleComponentFactory;
+import com.sun.star.registry.XRegistryKey;
+import java.io.IOException;
+import java.lang.reflect.Method;
+import java.net.JarURLConnection;
+import java.net.URL;
+import java.util.Enumeration;
+import java.util.StringTokenizer;
+import java.util.jar.Attributes;
+import java.util.jar.Manifest;
+
+/**
+ *
+ * @author Marc Neumann
+ */
+public class CentralRegistrationClass
+{
+
+ public static XSingleComponentFactory __getComponentFactory(String sImplementationName)
+ {
+ String regClassesList = getRegistrationClasses();
+ StringTokenizer t = new StringTokenizer(regClassesList, " ");
+ while (t.hasMoreTokens())
+ {
+ String className = t.nextToken();
+ if (className != null && className.length() != 0)
+ {
+ try
+ {
+ Class regClass = Class.forName(className);
+ Method writeRegInfo = regClass.getDeclaredMethod("__getComponentFactory", new Class[]
+ {
+ String.class
+ });
+ Object result = writeRegInfo.invoke(regClass, sImplementationName);
+ if (result != null)
+ {
+ return (XSingleComponentFactory) result;
+ }
+ }
+ catch (Exception ex)
+ {
+ ex.printStackTrace();
+ }
+ }
+ }
+ return null;
+ }
+
+ public static boolean __writeRegistryServiceInfo(XRegistryKey xRegistryKey)
+ {
+ boolean bResult = true;
+ String regClassesList = getRegistrationClasses();
+ StringTokenizer t = new StringTokenizer(regClassesList, " ");
+ while (t.hasMoreTokens())
+ {
+ String className = t.nextToken();
+ if (className != null && className.length() != 0)
+ {
+ try
+ {
+ Class regClass = Class.forName(className);
+ Method writeRegInfo = regClass.getDeclaredMethod("__writeRegistryServiceInfo", new Class[]
+ {
+ XRegistryKey.class
+ });
+ Object result = writeRegInfo.invoke(regClass, xRegistryKey);
+ bResult &= ((Boolean) result).booleanValue();
+ }
+ catch (Exception ex)
+ {
+ ex.printStackTrace();
+ }
+ }
+ }
+ return bResult;
+ }
+
+ private static String getRegistrationClasses()
+ {
+ CentralRegistrationClass c = new CentralRegistrationClass();
+ String name = c.getClass().getCanonicalName().replace('.', '/').concat(".class");
+ try
+ {
+ Enumeration<URL> urlEnum = c.getClass().getClassLoader().getResources("META-INF/MANIFEST.MF");
+ while (urlEnum.hasMoreElements())
+ {
+ URL url = urlEnum.nextElement();
+ String file = url.getFile();
+ JarURLConnection jarConnection = (JarURLConnection) url.openConnection();
+ Manifest mf = jarConnection.getManifest();
+
+ Attributes attrs = (Attributes) mf.getAttributes(name);
+ if (attrs != null)
+ {
+ String classes = attrs.getValue("RegistrationClasses");
+ return classes;
+ }
+ }
+ }
+ catch (IOException ex)
+ {
+ ex.printStackTrace();
+ }
+
+ return "";
+ }
+
+ /** Creates a new instance of CentralRegistrationClass */
+ private CentralRegistrationClass()
+ {
+ }
+}
diff --git a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/com/example/TaskPaneComponent.java b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/com/example/TaskPaneComponent.java
new file mode 100755
index 000000000000..0c5fdb782fad
--- /dev/null
+++ b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/com/example/TaskPaneComponent.java
@@ -0,0 +1,116 @@
+/*************************************************************************
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+package com.example;
+
+import com.sun.star.awt.XWindow;
+import com.sun.star.frame.XFrame;
+import com.sun.star.uno.XComponentContext;
+import com.sun.star.lib.uno.helper.Factory;
+import com.sun.star.lang.XSingleComponentFactory;
+import com.sun.star.registry.XRegistryKey;
+import com.sun.star.lib.uno.helper.WeakBase;
+import com.sun.star.uno.UnoRuntime;
+
+public final class TaskPaneComponent extends WeakBase
+ implements com.sun.star.ui.XUIElementFactory,
+ com.sun.star.lang.XServiceInfo
+{
+
+ private final XComponentContext m_xContext;
+ private static final String m_implementationName = TaskPaneComponent.class.getName();
+ private static final String[] m_serviceNames =
+ {
+ "com.sun.star.ui.UIElementFactory"
+ };
+
+ public TaskPaneComponent(XComponentContext context)
+ {
+ m_xContext = context;
+ }
+
+ public static XSingleComponentFactory __getComponentFactory(String sImplementationName)
+ {
+ XSingleComponentFactory xFactory = null;
+
+ if (sImplementationName.equals(m_implementationName))
+ {
+ xFactory = Factory.createComponentFactory(TaskPaneComponent.class, m_serviceNames);
+ }
+ return xFactory;
+ }
+
+ public static boolean __writeRegistryServiceInfo(XRegistryKey xRegistryKey)
+ {
+ return Factory.writeRegistryServiceInfo(m_implementationName,
+ m_serviceNames,
+ xRegistryKey);
+ }
+
+ public com.sun.star.ui.XUIElement createUIElement(String ResourceURL, com.sun.star.beans.PropertyValue[] creationArgs) throws com.sun.star.container.NoSuchElementException, com.sun.star.lang.IllegalArgumentException
+ {
+
+ XFrame docFrame = null;
+ XWindow panelParentWindow = null;
+ for (int i = 0; i < creationArgs.length; ++i)
+ {
+ if (creationArgs[i].Name.equals("Frame"))
+ {
+ docFrame = UnoRuntime.queryInterface(XFrame.class, creationArgs[i].Value);
+ } else if (creationArgs[i].Name.equals("ParentWindow"))
+ {
+ panelParentWindow = UnoRuntime.queryInterface(XWindow.class, creationArgs[i].Value);
+ }
+ }
+
+ return new ToolPanelUIElement(m_xContext, docFrame, panelParentWindow);
+
+ }
+
+ // com.sun.star.lang.XServiceInfo:
+ public String getImplementationName()
+ {
+ return m_implementationName;
+ }
+
+ public boolean supportsService(String sService)
+ {
+ int len = m_serviceNames.length;
+
+ for (int i = 0; i < len; i++)
+ {
+ if (sService.equals(m_serviceNames[i]))
+ {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public String[] getSupportedServiceNames()
+ {
+ return m_serviceNames;
+ }
+}
diff --git a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/com/example/ToolPanel.java b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/com/example/ToolPanel.java
new file mode 100755
index 000000000000..a28e07d5847b
--- /dev/null
+++ b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/com/example/ToolPanel.java
@@ -0,0 +1,56 @@
+/*************************************************************************
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+package com.example;
+
+import com.sun.star.accessibility.XAccessible;
+import com.sun.star.awt.XWindow;
+import com.sun.star.ui.XToolPanel;
+import com.sun.star.uno.UnoRuntime;
+
+/**
+ *
+ * @author frank.schoenheit@sun.com
+ */
+public class ToolPanel implements XToolPanel
+{
+ ToolPanel( final XWindow i_panelWindow )
+ {
+ m_panelWindow = i_panelWindow;
+ }
+
+ public XWindow getWindow()
+ {
+ return m_panelWindow;
+ }
+
+ public XAccessible createAccessible( XAccessible i_parentAccessible )
+ {
+ return UnoRuntime.queryInterface( XAccessible.class, m_panelWindow );
+ }
+
+ private XWindow m_panelWindow;
+}
diff --git a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/com/example/ToolPanelUIElement.java b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/com/example/ToolPanelUIElement.java
new file mode 100755
index 000000000000..6fb17d17f3d6
--- /dev/null
+++ b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/com/example/ToolPanelUIElement.java
@@ -0,0 +1,153 @@
+/*************************************************************************
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+package com.example;
+
+import com.sun.star.awt.XContainerWindowProvider;
+import com.sun.star.awt.XWindow;
+import com.sun.star.awt.XWindowPeer;
+import com.sun.star.deployment.PackageInformationProvider;
+import com.sun.star.deployment.XPackageInformationProvider;
+import com.sun.star.frame.XFrame;
+import com.sun.star.lang.DisposedException;
+import com.sun.star.lang.XComponent;
+import com.sun.star.lib.uno.helper.ComponentBase;
+import com.sun.star.ui.UIElementType;
+import com.sun.star.ui.XUIElement;
+import com.sun.star.uno.UnoRuntime;
+import com.sun.star.uno.XComponentContext;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+/**
+ *
+ * @author frank.schoenheit@sun.com
+ */
+public class ToolPanelUIElement extends ComponentBase implements XUIElement
+{
+
+ protected final XFrame m_docFrame;
+ protected final XWindow m_parentWindow;
+ private XWindow m_panelRootWindow = null;
+ private Object m_toolPanel = null;
+ XComponentContext context = null;
+
+
+ protected ToolPanelUIElement( XComponentContext _context, final XFrame i_docFrame, final XWindow i_parentWindow )
+ {
+ context = _context;
+ m_docFrame = i_docFrame;
+ m_parentWindow = i_parentWindow;
+ }
+
+ public static String getResourceURLBase()
+ {
+ return "private:resource/toolpanel/com.example.TaskPaneComponent/";
+ }
+
+ // XUIElement overridables
+ public XFrame getFrame() { return m_docFrame; }
+ public short getType() { return UIElementType.TOOLPANEL; }
+ public String getResourceURL() { return getResourceURLBase() + getPanelResourceURLSuffix(); }
+
+ public Object getRealInterface()
+ {
+ synchronized( this )
+ {
+ if ( this.bDisposed || this.bInDispose )
+ throw new DisposedException( new String(), this );
+
+ if ( m_toolPanel == null )
+ m_toolPanel = new ToolPanel( getOrCreatePanelRootWindow() );
+ }
+ return m_toolPanel;
+ }
+
+ // own overridables
+ /** returns the name of the dialog description file of the tool panel, without .xdl suffix
+ */
+ protected String getPanelResourceLocation()
+ {
+ return "TaskPaneComponentUI";
+
+ }
+
+ /** returns the resource URL suffix to use for the tool panel
+ * @return
+ */
+ protected String getPanelResourceURLSuffix()
+ {
+ return "TaskPaneComponentUI";
+ }
+
+
+ // ComponentBase overridables
+ protected void postDisposing()
+ {
+ super.postDisposing();
+ synchronized ( this )
+ {
+ if ( m_panelRootWindow != null )
+ {
+ XComponent panelWindowComp = UnoRuntime.queryInterface( XComponent.class, m_panelRootWindow );
+ panelWindowComp.dispose();
+ m_panelRootWindow = null;
+
+ }
+ m_toolPanel = null;
+ }
+ }
+
+ // helpers
+ synchronized private XWindow getOrCreatePanelRootWindow()
+ {
+ try
+ {
+ XPackageInformationProvider pip = PackageInformationProvider.get(context);
+ String s = pip.getPackageLocation("com.example.TaskPaneComponent");
+
+ String dialogUrl = s + "/toolpanels/" + getPanelResourceLocation() + ".xdl";
+
+ XContainerWindowProvider provider = UnoRuntime.queryInterface(
+ XContainerWindowProvider.class,
+ context.getServiceManager().createInstanceWithContext("com.sun.star.awt.ContainerWindowProvider",context)
+ );
+
+ m_panelRootWindow = provider.createContainerWindow(
+ dialogUrl,
+ "",
+ UnoRuntime.queryInterface( XWindowPeer.class, m_parentWindow ),
+ null
+ );
+
+ }
+ catch ( final Exception e )
+ {
+ Logger.getLogger( ToolPanelUIElement.class.getName() ).log( Level.SEVERE, null, e );
+ }
+ return m_panelRootWindow;
+ }
+}
diff --git a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/description.xml b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/description.xml
new file mode 100755
index 000000000000..9e32a6e8bfed
--- /dev/null
+++ b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/description.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<description xmlns="http://openoffice.org/extensions/description/2006" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <version value="0.0.1"/>
+ <identifier value="com.example.TaskPaneComponent"/>
+</description>
diff --git a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/toolpanels/TaskPaneComponentUI.xdl b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/toolpanels/TaskPaneComponentUI.xdl
new file mode 100755
index 000000000000..7820e3d52c59
--- /dev/null
+++ b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/toolpanels/TaskPaneComponentUI.xdl
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
+<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="Dialog1" dlg:left="192" dlg:top="127" dlg:width="174" dlg:height="147" dlg:closeable="true" dlg:moveable="true" dlg:help-url="HID:123456" dlg:withtitlebar="false">
+ <dlg:bulletinboard>
+ <dlg:button dlg:id="CommandButton1" dlg:tab-index="0" dlg:left="6" dlg:top="8" dlg:width="64" dlg:height="20" dlg:value="a wonderful button"/>
+ <dlg:textfield dlg:id="TextField1" dlg:textarea-vertical-align="top" dlg:tab-index="1" dlg:left="6" dlg:top="38" dlg:width="64" dlg:height="59" dlg:value="a wonderful text"/>
+ </dlg:bulletinboard>
+</dlg:window> \ No newline at end of file
diff --git a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/uno-extension-manifest.xml b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/uno-extension-manifest.xml
new file mode 100755
index 000000000000..d49fe3d726ee
--- /dev/null
+++ b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/uno-extension-manifest.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<manifest:manifest xmlns:manifest="http://openoffice.org/2001/manifest">
+ <manifest:file-entry manifest:media-type="application/vnd.sun.star.uno-component;type=Java"
+ manifest:full-path="TaskPaneComponent.jar"/>
+ <manifest:file-entry manifest:media-type="application/vnd.sun.star.configuration-data"
+ manifest:full-path="registry/data/org/openoffice/Office/UI/Factories.xcu"/>
+ <manifest:file-entry manifest:media-type="application/vnd.sun.star.configuration-data"
+ manifest:full-path="registry/data/org/openoffice/Office/UI/CalcWindowState.xcu"/>
+</manifest:manifest> \ No newline at end of file
diff --git a/testautomation/extensions/optional/input/extensions/TaskPaneComponent/TaskPaneComponent.oxt b/testautomation/extensions/optional/input/extensions/TaskPaneComponent/TaskPaneComponent.oxt
new file mode 100755
index 000000000000..5c826dd3541d
--- /dev/null
+++ b/testautomation/extensions/optional/input/extensions/TaskPaneComponent/TaskPaneComponent.oxt
Binary files differ
diff --git a/testautomation/extensions/optional/input/platform/extensions.info b/testautomation/extensions/optional/input/platform/extensions.info
index 09424d0db666..fdcda07205aa 100755
--- a/testautomation/extensions/optional/input/platform/extensions.info
+++ b/testautomation/extensions/optional/input/platform/extensions.info
@@ -125,7 +125,7 @@ Name=Single Platform: os2_x86
[24]
File=solaris_sparc.oxt
-Platform=Solaris Sparc
+Platform=Solaris SPARC
Name=Single Platform: solaris_sparc
[25]
diff --git a/testautomation/framework/optional/includes/basic_gridcontrol.inc b/testautomation/framework/optional/includes/basic_gridcontrol.inc
index f2d2f74cbdd4..b23e2318d657 100755
--- a/testautomation/framework/optional/includes/basic_gridcontrol.inc
+++ b/testautomation/framework/optional/includes/basic_gridcontrol.inc
@@ -55,6 +55,7 @@ testcase tGridcontrolLoad
printlog "Start the macro, that performs the test"
Kontext "GridControlDialogStarter"
+ ' FAILS IF DOCUMENT IS READONLY....
ShowGridcontrol.typeKeys "<space>"
Kontext "GridControlDialog"
if GridControlDialog.exists(5) then
@@ -63,6 +64,37 @@ testcase tGridcontrolLoad
printlog " " + i + ":"+a+": '" + gridcontrolcontrol.getitemtype (i,a) + "' '" + gridcontrolcontrol.getitemtext (i,a) + "'"
next a
next i
+ gridcontrolcontrol.select 5
+
+ kontext
+ if active.exists(5) then
+ printlog active.gettext
+ active.ok
+ else
+ warnlog "No selection Event by .select"
+ endif
+
+ Kontext "GridControlDialog"
+ gridcontrolcontrol.typeKeys("<down>")
+
+ kontext
+ if active.exists(5) then
+ printlog active.gettext
+ active.ok
+ else
+ warnlog "No selection event by .typeKeys <down>"
+ endif
+ Kontext "GridControlDialog"
+ gridcontrolcontrol.typeKeys("<up>")
+ kontext
+ if active.exists(5) then
+ printlog active.gettext
+ active.ok
+ else
+ warnlog "No selection event by .typeKeys <up>"
+ endif
+
+ Kontext "GridControlDialog"
GridControlDialog.close
else
warnlog "Gridcontrol Dialog did not come up after pressing button"
@@ -75,3 +107,4 @@ testcase tGridcontrolLoad
endif
endcase
+
diff --git a/testautomation/framework/optional/input/gridcontrol.odt b/testautomation/framework/optional/input/gridcontrol.odt
index d11d70cfbc09..46be0c44a065 100755
--- a/testautomation/framework/optional/input/gridcontrol.odt
+++ b/testautomation/framework/optional/input/gridcontrol.odt
Binary files differ
diff --git a/testautomation/framework/required/includes/script_organizers.inc b/testautomation/framework/required/includes/script_organizers.inc
index feb72680c9c3..6d14b7f77f6e 100755
--- a/testautomation/framework/required/includes/script_organizers.inc
+++ b/testautomation/framework/required/includes/script_organizers.inc
@@ -32,21 +32,39 @@
'\******************************************************************************
testcase tUpdtScriptCount
+ dim sDialog as string
printlog( "Resource test for macros and scripts / related dialogs" )
const SCRIPTING_DIALOGS = 5
dim aScriptCount( SCRIPTING_DIALOGS )
+ ' JavaScript
aScriptCount( 1 ) = 10
+ ' BeanShell
aScriptCount( 2 ) = 14
- aScriptCount( 3 ) = 10
- if ( gOOo ) then
- aScriptCount( 4 ) = 585
- aScriptCount( 5 ) = 601
- else
- aScriptCount( 4 ) = 586
- aScriptCount( 5 ) = 602
- endif
+ if ( lcase( gPlatform ) = "osx" ) then
+ ' Python
+ aScriptCount( 3 ) = 8
+ else
+ ' Python
+ aScriptCount( 3 ) = 10
+ endif
+ if ( lcase( gPlatform ) = "osx" ) then
+ ' Run Macro
+ aScriptCount( 5 ) = 600
+ else
+ ' Run Macro
+ aScriptCount( 5 ) = 602
+ endif
+ if ( gOOo ) then
+ ' Makro Organizer
+ aScriptCount( 4 ) = 585
+ ' Run Macro
+ aScriptCount( 5 ) = aScriptCount( 5 ) - 1
+ else
+ ' Makro Organizer
+ aScriptCount( 4 ) = 586
+ endif
dim iCurrentDialog as integer
dim iCurrentScriptCount as integer
@@ -57,37 +75,39 @@ testcase tUpdtScriptCount
printlog( "" )
select case iCurrentDialog
- case 1: printlog( "JavaScript" )
+ case 1: sDialog = "JavaScript"
ToolsMacrosOrganizeMacrosJavaScript
kontext "ScriptOrganizer"
iCurrentScriptCount = hExpandAllNodes( ScriptTreeList )
ScriptOrganizer.cancel()
- case 2: printlog( "BeanShell" )
+ case 2: sDialog = "BeanShell"
ToolsMacrosOrganizeMacrosBeanShell
kontext "ScriptOrganizer"
iCurrentScriptCount = hExpandAllNodes( ScriptTreeList )
ScriptOrganizer.cancel()
- case 3: printlog( "Python" )
+ case 3: sDialog = "Python"
ToolsMacrosOrganizeMacrosPython
kontext "ScriptOrganizer"
iCurrentScriptCount = hExpandAllNodes( ScriptTreeList )
ScriptOrganizer.cancel()
- case 4: printlog( "Makro Organizer" )
+ case 4: sDialog = "Makro Organizer"
ToolsMacro_uno
Kontext "Makro"
hExpandAllNodes( MakroAus )
iCurrentScriptCount = hGetScriptCount( MakroAus, MakroListe )
Makro.close()
- case 5: printlog( "Run Macro" )
+ case 5: sDialog = "Run Macro"
ToolsMacrosRunMacro
kontext "ScriptSelector"
hExpandAllNodes( LibraryTreeList )
iCurrentScriptCount = hGetScriptCount( LibraryTreeList, ScriptList )
ScriptSelector.cancel()
end select
+
+ printlog sDialog
if ( aScriptCount( iCurrentDialog ) <> iCurrentScriptCount ) then
- warnlog( "Incorrect number of scripts for this dialog: " & iCurrentScriptCount )
+ warnlog( "Incorrect number of scripts for this dialog: '" + sDialog + "' expected:" + aScriptCount( iCurrentDialog ) + ", but is:" & iCurrentScriptCount )
else
printlog( "Number of scripts is ok" )
endif
@@ -95,7 +115,6 @@ testcase tUpdtScriptCount
next iCurrentDialog
hCloseDocument()
-
endcase
diff --git a/testautomation/global/input/officeinfo.txt b/testautomation/global/input/officeinfo.txt
index 92b4e492740d..430e4141e3dd 100644
--- a/testautomation/global/input/officeinfo.txt
+++ b/testautomation/global/input/officeinfo.txt
@@ -1,7 +1,5 @@
[Current program versions]
-StarOffice=9
-StarSuite=9
-OpenOffice.org=3.1
-BrOffice.org=3.1
-Oracle Open Office=3.2
+OpenOffice.org=3.3
+BrOffice.org=3.3
+Oracle Open Office=3.3
diff --git a/testautomation/global/required/includes/g_findbar.inc b/testautomation/global/required/includes/g_findbar.inc
new file mode 100644
index 000000000000..38af3edd28aa
--- /dev/null
+++ b/testautomation/global/required/includes/g_findbar.inc
@@ -0,0 +1,159 @@
+'encoding UTF-8 Do not remove or change this line!
+'**************************************************************************
+' DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+'
+' Copyright 2000, 2010 Oracle and/or its affiliates.
+'
+' OpenOffice.org - a multi-platform office productivity suite
+'
+' This file is part of OpenOffice.org.
+'
+' OpenOffice.org is free software: you can redistribute it and/or modify
+' it under the terms of the GNU Lesser General Public License version 3
+' only, as published by the Free Software Foundation.
+'
+' OpenOffice.org is distributed in the hope that it will be useful,
+' but WITHOUT ANY WARRANTY; without even the implied warranty of
+' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+' GNU Lesser General Public License version 3 for more details
+' (a copy is included in the LICENSE file that accompanied this code).
+'
+' You should have received a copy of the GNU Lesser General Public License
+' version 3 along with OpenOffice.org. If not, see
+' <http://www.openoffice.org/license.html>
+' for a copy of the LGPLv3 License.
+'
+'/************************************************************************
+'*
+'* owner : Joerg.Skottke@Sun.Com
+'*
+'* short description : Update test for the findbar
+'*
+'\***********************************************************************
+
+testcase tUpdtFindBar()
+
+ ' This test is incomplete. It needs to be integrated into all update tests
+ ' and it needs to be added to the toolbar management functions
+
+ printlog( "Update test for the findbar" )
+
+ const TEST_STRING = "VCL Testtool"
+
+ select case( gApplication )
+ case "IMPRESS", "DRAW", "DATABASE"
+ kontext "FindBar"
+ if ( FindBar.exists() ) then
+ warnlog( "The FindBar should not be visible by default" )
+ endif
+ end select
+
+ hNewDocument()
+
+ kontext "FindBar"
+ if ( FindBar.exists() ) then
+
+ printlog( "FindBar has " & FindBar.getItemCount() & " items" )
+
+ printlog( "Insert text into search field" )
+ FindText.setText( TEST_STRING )
+
+ printlog( "Click <Find next> (down arrow)" )
+ DownSearch.click()
+
+ kontext "Active"
+ if ( Active.exists( 1 ) ) then
+ printlog( "Expected message: " & Active.getText()
+ call DialogTest( Active )
+
+ kontext "Active"
+ Active.ok()
+ else
+ warnlog( "Messagebox missing <No matches found>" )
+ endif
+
+ printlog( "Click <Find last> (up arrow)" )
+ kontext "FindBar"
+ UpSearch.click()
+
+ kontext "Active"
+ if ( Active.exists( 1 ) ) then
+ printlog( "Expected message: " & Active.getText()
+ call DialogTest( Active )
+
+ kontext "Active"
+ Active.ok()
+ else
+ warnlog( "Messagebox missing <No matches found>" )
+ endif
+
+ warnlog( "#i111984 - exclude <SearchDialog> button from testing" )
+ goto skip_SearchDialog
+
+ printlog( "Search dialog button may not be visible by default" )
+ kontext "FindBar"
+ if ( SearchDialog.exists() ) then
+ if ( SearchDialog.isVisible() ) then
+ SearchDialog.click()
+ warnlog( "Button <Search Dialog> is visible, it should be hidden by default" )
+ else
+ printlog( "Button <Search Dialog> is hidden, good" )
+ endif
+ else
+ warnlog( "<Search Dialog> button should not be visible" )
+ endif
+
+ printlog( "Add <Search Dialog> button to toolbar" )
+ hToggleSearchDialog()
+
+ kontext "FindBar"
+ SearchDialog.click()
+
+ kontext "FindAndReplace"
+ if ( FindAndReplace.exists( 1 ) ) then
+ call DialogTest( FindAndReplace )
+
+ kontext "FindAndReplace"
+ if ( SearchFor.getSelText() = TEST_STRING ) then
+ printlog( "Test string has been inserted into <SearchFor> Listbox. Good." )
+ else
+ warnlog( "Search string should have been copied from findbar to search dialog" )
+ endif
+ FindAndReplace.close()
+ else
+ warnlog( "Dialog <Search And Replace> is missing" )
+ endif
+
+ printlog( "Remove <Search Dialog> button from toolbar" )
+ hToggleSearchDialog()
+
+ skip_SearchDialog:
+
+ else
+ warnlog( "FindBar is not visible" )
+ endif
+
+ hCloseDocument()
+
+endcase
+
+'*******************************************************************************
+
+function hToggleSearchDialog()
+
+ printlog( "Make button <Search Dialog> visible via context menu" )
+
+ const MENU_VISIBLE_BUTTONS = 1
+ const MENU_SEARCH_AND_REPLACE = 4
+
+ kontext "FindBar"
+ FindBar.openContextMenu()
+ wait( 1000 )
+
+ hMenuSelectNr( MENU_VISIBLE_BUTTONS )
+ wait( 1000 )
+
+ hMenuSelectNr( MENU_SEARCH_AND_REPLACE )
+ wait( 1000 )
+
+end function \ No newline at end of file
diff --git a/testautomation/global/required/includes/g_option.inc b/testautomation/global/required/includes/g_option.inc
index 3ff884d6be57..4ea25785b68c 100644..100755
--- a/testautomation/global/required/includes/g_option.inc
+++ b/testautomation/global/required/includes/g_option.inc
@@ -502,21 +502,21 @@ testcase tToolsOptionsLanguageSettings
Optionen.TypeKeys "<Down>", 6
WaitSlot() ' similar effect as a NOOP
OptionenBearbeiten.Click
- Kontext "SilbentrennungOptionen"
- Call DialogTest ( SilbentrennungOptionen )
- SilbentrennungOptionen.Cancel
+ Kontext "HyphenationOptions"
+ Call DialogTest ( HyphenationOptions )
+ HyphenationOptions.Cancel
Kontext "TabLinguistik"
Optionen.TypeKeys "<Down>"
OptionenBearbeiten.Click
- Kontext "SilbentrennungOptionen"
- Call DialogTest ( SilbentrennungOptionen )
- SilbentrennungOptionen.Cancel
+ Kontext "HyphenationOptions"
+ Call DialogTest ( HyphenationOptions )
+ HyphenationOptions.Cancel
Kontext "TabLinguistik"
Optionen.TypeKeys "<Down>"
OptionenBearbeiten.Click
- Kontext "SilbentrennungOptionen"
- Call DialogTest ( SilbentrennungOptionen )
- SilbentrennungOptionen.Cancel
+ Kontext "HyphenationOptions"
+ Call DialogTest ( HyphenationOptions )
+ HyphenationOptions.Cancel
endif
case 3,5 :
try
diff --git a/testautomation/global/sid/all.sid b/testautomation/global/sid/all.sid
index 8639bfa0f0b6..5ee1c157235f 100755..100644
--- a/testautomation/global/sid/all.sid
+++ b/testautomation/global/sid/all.sid
@@ -479,14 +479,12 @@ FormatAusrichtung SID_ALIGN
' ****
' **** Alle
ExtrasRechtschreibungAutomatisch SID_AUTOSPELL_CHECK
-ExtrasSilbentrennung FN_HYPHENATE_OPT_DLG
ExtrasAutoKorrektur SID_AUTO_CORRECT_DLG
ExtrasMakro SID_BASICCHOOSER
ExtrasAnpassen SID_CONFIG
ExtrasOptionen SID_OPTIONS_TREEDIALOG
' **** Writer
-ExtrasThesaurusWriter FN_THESAURUS_DLG
ExtrasKapitelnumerierung FN_NUMBERING_OUTLINE_DLG
ExtrasZeilennumerierung FN_LINE_NUMBERING_DLG
ExtrasSeitennummer FN_CHANGE_PAGENUM
@@ -505,7 +503,6 @@ ExtrasAktualisierenSeitenformatierung FN_REPAGINATE
ExtrasSeitenformatierung FN_REPAGINATE
' **** Calc
-ExtrasThesaurusCalc SID_THESAURUS
ExtrasDetektivAlleSpurenEntfernen SID_DETECTIVE_DEL_ALL
ExtrasDetektivFuellModus SID_DETECTIVE_FILLMODE
ExtrasDetektivSpurZumFehler SID_DETECTIVE_ADD_ERR
@@ -525,7 +522,6 @@ ExtrasAutoEingabe FID_AUTOCOMPLETE
' **** Draw / Impress
ExtrasThesaurusDraw SID_THESAURUS
-ExtrasSilbentrennungDraw SID_HYPHENATION
ExtrasPipette SID_BMPMASK
ExtrasDiawechsel .uno:SlideChangeWindow
ExtrasAnimation SID_ANIMATION_OBJECTS
diff --git a/testautomation/global/sid/e_all.sid b/testautomation/global/sid/e_all.sid
index de68cf13f79d..b9fa2d9c81e8 100755..100644
--- a/testautomation/global/sid/e_all.sid
+++ b/testautomation/global/sid/e_all.sid
@@ -256,7 +256,7 @@ ViewSnapLinesFront SID_HELPLINES_FRONT
ViewStatusBarVisible .uno:StatusBarVisible
ViewShowImeStatusWindow .uno:ShowImeStatusWindow
ViewShowRuler .uno:ShowRuler
-ViewTaskPane .uno:RightPane
+ViewTaskPane .uno:TaskPane
ViewTaskSlide .uno:LeftPaneImpress
ViewTitle SID_TITLE_MASTERPAGE
ViewToolbarsOptionbar .uno:AvailableToolbars?Toolbar:string=optionsbar
@@ -414,6 +414,9 @@ FormatStylesLoad SID_TEMPLATE_LOAD
FormatStylist SID_STYLE_DESIGNER
FormatControl SID_FM_CTL_PROPERTIES
FormatForm SID_FM_PROPERTIES
+FormatChangeCaseToSentence .uno:ChangeCaseToSentenceCase
+FormatChangeCaseCapitalizeEveryWord .uno:ChangeCaseToTitleCase
+FormatChangeCaseToggleCase .uno:ChangeCaseToToggleCase
FormatChangeCaseUpper .uno:ChangeCaseToUpper
FormatChangeCaseLower .uno:ChangeCaseToLower
FormatChangeCaseHalfWidth .uno:ChangeCaseToHalfWidth
@@ -734,13 +737,13 @@ ToolsUpdateAllIndexes FN_UPDATE_TOX
ToolsBibliographyDatabase SID_COMP_BIBLIOGRAPHY
ToolsWordCount FN_WORDCOUNT_DIALOG
TableTableProperties .uno:TableDialog
+ToolsLanguageHyphenation FN_HYPHENATE_OPT_DLG
' **** WriterWeb
ToolsPageFormatting FN_REPAGINATE
' **** Calc
ToolsSpellcheckAutoCheckCalc SID_AUTOSPELL_CHECK
-ToolsLanguageThesaurusCalc .uno:Thesaurus
ToolsLanguageHyphenateCalc .uno:Hyphenate
ToolsDetectiveRemoveAllTraces SID_DETECTIVE_DEL_ALL
ToolsDetectiveFillMode SID_DETECTIVE_FILLMODE
@@ -766,6 +769,7 @@ ToolsGallery .uno:Gallery
ToolsEyedropper SID_BMPMASK
ToolsMediaPlayer .uno:AVMediaPlayer
ToolsChineseTranslation .uno:ChineseConversion
+ToolsLanguageHyphenationDraw SID_HYPHENATION
' **** Math
ToolsSymbolsCatalog SID_SYMBOLS_CATALOGUE
diff --git a/testautomation/global/win/bars.win b/testautomation/global/win/bars.win
index dd65f825893d..525be7d897ca 100755
--- a/testautomation/global/win/bars.win
+++ b/testautomation/global/win/bars.win
@@ -356,6 +356,13 @@ ExtrusionLightingFloater .uno:ExtrusionLightingFloater
ExtrusionSurfaceFloater .uno:ExtrusionSurfaceFloater
Extrusion3DColor .uno:Extrusion3DColor
'-------------------------------------------------------------------------
+*FindBar .HelpId:findbar
+'-------------------------------------------------------------------------
+FindText .uno:FindText
+DownSearch .uno:DownSearch
+UpSearch .uno:UpSearch
+SearchDialog .uno:SearchDialog
+'-------------------------------------------------------------------------
*Flowchart .HelpId:flowchartshapes
'-------------------------------------------------------------------------
Process .uno:FlowChartShapes.flowchart-process
diff --git a/testautomation/global/win/dial_p_s.win b/testautomation/global/win/dial_p_s.win
index 6f76fe17b2bd..accef3714a3b 100755
--- a/testautomation/global/win/dial_p_s.win
+++ b/testautomation/global/win/dial_p_s.win
@@ -231,16 +231,6 @@ FormatRTF sw:CheckBox:DLG_MAILMERGE:CB_FORMAT_RTF
FormatStarWriter sw:CheckBox:DLG_MAILMERGE:CB_FORMAT_SW
Datenbankfeldliste sw:ListBox:DLG_MAILMERGE:LB_COLUMN
-*Silbentrennung HID_HYPHENATE svx:ModalDialog:RID_SVXDLG_HYPHENATE
-Wort cui:Edit:RID_SVXDLG_HYPHENATE:ED_WORD
-Vor cui:ImageButton:RID_SVXDLG_HYPHENATE:BTN_LEFT
-Zurueck cui:ImageButton:RID_SVXDLG_HYPHENATE:BTN_RIGHT
-Weiter cui:PushButton:RID_SVXDLG_HYPHENATE:BTN_HYPH_CONTINUE
-Entfernen cui:PushButton:RID_SVXDLG_HYPHENATE:BTN_HYPH_DELETE
-
-*SilbentrennungOptionen HID_LNGDLG_NUM_PREBREAK
-ZeichenVorUmbruch cui:NumericField:RID_SVXDLG_LNG_ED_NUM_PREBREAK:ED_PREBREAK
-
*Sonderzeichen SID_CHARMAP
Schrift cui:ListBox:RID_SVXDLG_CHARMAP:LB_FONT
SchriftListe HID_CHARMAP_CTL_SHOWSET
@@ -341,9 +331,6 @@ Zusaetze sc:MoreButton:RID_SCDLG_SPEC_FILTER:BTN_MORE
FilterkriterienMin sc:ImageButton:RID_SCDLG_SPEC_FILTER:RB_CRITERIA_AREA
FilterergebnisMin sc:ImageButton:RID_SCDLG_SPEC_FILTER:RB_COPY_AREA
-*SpracheAuswaehlen HID_THES_LANGUAGE
-Auswahl cui:ListBox:RID_SVXDLG_THES_LANGUAGE:LB_THES_LANGUAGE
-
*StandardFilter SID_FILTER
FeldName1 sc:ListBox:RID_SCDLG_FILTER:LB_FIELD1
Feldname2 sc:ListBox:RID_SCDLG_FILTER:LB_FIELD2
diff --git a/testautomation/global/win/dial_t_z.win b/testautomation/global/win/dial_t_z.win
index c37ad2512873..1f317fd412da 100755
--- a/testautomation/global/win/dial_t_z.win
+++ b/testautomation/global/win/dial_t_z.win
@@ -125,14 +125,6 @@ Umrandung sw:CheckBox:DLG_CONV_TEXT_TABLE:CB_BORDER
Textmarken sw:ComboBox:DLG_INSERT_BOOKMARK:CB_BOOKMARK
Loeschen sw:PushButton:DLG_INSERT_BOOKMARK:BT_DELETE
-*Thesaurus SID_THESAURUS
-Wort cui:ListBox:RID_SVXDLG_THESAURUS:LB_WORD
-Ersetzen cui:Edit:RID_SVXDLG_THESAURUS:ED_REPL
-Bedeutung cui:ListBox:RID_SVXDLG_THESAURUS:LB_MEAN
-Synonym cui:ListBox:RID_SVXDLG_THESAURUS:LB_SYNON
-Nachschlagen cui:PushButton:RID_SVXDLG_THESAURUS:BTN_LOOKUP
-Sprache cui:PushButton:RID_SVXDLG_THESAURUS:BTN_LANGUAGE
-
*Ueberblenden SID_POLYGON_MORPHING
Attributierung sd:CheckBox:DLG_MORPH:CBX_ATTRIBUTES
GleicheOrientierung sd:CheckBox:DLG_MORPH:CBX_ORIENTATION
@@ -170,10 +162,6 @@ Vorschau sd:PushButton:DLG_VECTORIZE:BTN_PREVIEW
*UndoRedoBox HID_SVXTBX_UNDO_REDO_CTRL
UndoRedoList svx:ListBox:RID_SVXTBX_UNDO_REDO_CTRL:LB_SVXTBX_UNDO_REDO_CTRL
-*UrlOeffnen sfx2:ModalDialog:RID_URLOPEN
-URL sfx2:Edit:RID_URLOPEN:RID_URLOPEN_URL
-URLText sfx2:Edit:RID_URLOPEN:RID_URLOPEN_URL
-
*Verbinder HID_PAGE_CONNECTION SVX:TABPAGE:RID_SVXPAGE_CONNECTION
Linie1 cui:METRICFIELD:RID_SVXPAGE_CONNECTION:MTR_FLD_LINE_1
Linie2 cui:METRICFIELD:RID_SVXPAGE_CONNECTION:MTR_FLD_LINE_2
diff --git a/testautomation/global/win/edia_d_h.win b/testautomation/global/win/edia_d_h.win
index 0e2fd251d285..2829054eba2d 100755
--- a/testautomation/global/win/edia_d_h.win
+++ b/testautomation/global/win/edia_d_h.win
@@ -481,8 +481,20 @@ Suggestion4 cui:Edit:RID_SVX_MDLG_HANGULHANJA_EDIT:ED_4
NewEntry cui:PushButton:RID_SVX_MDLG_HANGULHANJA_EDIT:PB_HHE_NEW
DeleteEntry cui:PushButton:RID_SVX_MDLG_HANGULHANJA_EDIT:PB_HHE_DELETE
+*Hyphenation HID_HYPHENATE svx:ModalDialog:RID_SVXDLG_HYPHENATE
+Wort cui:Edit:RID_SVXDLG_HYPHENATE:ED_WORD
+Vor cui:ImageButton:RID_SVXDLG_HYPHENATE:BTN_LEFT
+Zurueck cui:ImageButton:RID_SVXDLG_HYPHENATE:BTN_RIGHT
+Weiter cui:PushButton:RID_SVXDLG_HYPHENATE:BTN_HYPH_CONTINUE
+Entfernen cui:PushButton:RID_SVXDLG_HYPHENATE:BTN_HYPH_DELETE
+HyphenateAll cui:PushButton:RID_SVXDLG_HYPHENATE:BTN_HYPH_ALL
+
+*HyphenationOptions HID_LNGDLG_NUM_PREBREAK
+ZeichenVorUmbruch cui:NumericField:RID_SVXDLG_LNG_ED_NUM_PREBREAK:ED_PREBREAK
+
*HTMLImportOptions sc:ModalDialog:RID_SCDLG_TEXT_IMPORT_OPTIONS
Automatic sc:RadioButton:RID_SCDLG_TEXT_IMPORT_OPTIONS:RB_AUTOMATIC
Custom sc:RadioButton:RID_SCDLG_TEXT_IMPORT_OPTIONS:RB_CUSTOM
CustomLanguage sc:ListBox:RID_SCDLG_TEXT_IMPORT_OPTIONS:LB_CUSTOM_LANG
DetectSpecialNumbers sc:CheckBox:RID_SCDLG_TEXT_IMPORT_OPTIONS:BTN_CONVERT_DATE
+
diff --git a/testautomation/global/win/edia_t_z.win b/testautomation/global/win/edia_t_z.win
index a53038e79394..670a872ac657 100755
--- a/testautomation/global/win/edia_t_z.win
+++ b/testautomation/global/win/edia_t_z.win
@@ -2,7 +2,7 @@
TableWindow HID_CTL_TABLEEDIT
Fieldname HID_TABDESIGN_NAMECELL
FieldType HID_TABDESIGN_TYPECELL
-Description HID_TABDESIGN_COMMENTCELL
+Description HID_TABDESIGN_HELPTEXT
*TablesFilter HID_DSADMIN_TABLE_SUBSCRIPTION
Tables HID_DSADMIN_TABLE_SELECTOR
@@ -40,8 +40,8 @@ FinishBtn HID_DLGTABLE_CMDFINISH
CancelBtn HID_DLGTABLE_CMDCANCEL
' not nice solved, but can't do better right now; complains -> TBO
-*Tasks sd:DockingWindow:FLT_RIGHT_PANE_DOCKING_WINDOW
-View HID_SD_TASK_PANE_VIEW_MENU
+*Tasks sd:DockingWindow:FLT_TOOL_PANEL_DOCKING_WINDOW
+View HID_TASKPANE_VIEW_MENU
'? HID_SD_WIN_DOCUMENT
' Master Pages
UsedInThisPresentationPreview HID_SD_TASK_PANE_PREVIEW_CURRENT
@@ -128,6 +128,13 @@ RecentFile HID_XML_FILTER_TEST_IMPORT_RECENT
FixedRecentFile HID_XML_FILTER_TEST_IMPORT_RECENT_FILE
CloseBtn HID_XML_FILTER_TEST_CLOSE
+*Thesaurus SID_THESAURUS
+CurrentWord cui:ComboBox:RID_SVXDLG_THESAURUS:CB_WORD
+RecallCurrentWord cui:ImageButton:RID_SVXDLG_THESAURUS:BTN_LEFT
+Alternatives HID_CT_THES_ALTERNATIVES
+ReplaceWith cui:Edit:RID_SVXDLG_THESAURUS:ED_REPL
+Language cui:MenuButton:RID_SVXDLG_THESAURUS:MB_LANGUAGE
+
*TextImport SC:MODALDIALOG:RID_SCDLG_ASCII
CharacterSet SC:LISTBOX:RID_SCDLG_ASCII:LB_CHARSET
Language sc:ListBox:RID_SCDLG_ASCII:LB_CUSTOMLANG
diff --git a/testautomation/graphics/optional/g_accessability.bas b/testautomation/graphics/optional/g_accessability.bas
index db1e9e68474a..fc03755763b5 100755..100644
--- a/testautomation/graphics/optional/g_accessability.bas
+++ b/testautomation/graphics/optional/g_accessability.bas
@@ -36,6 +36,7 @@ sub main
Call hStatusIn ( "Graphics","g_accessability.bas")
use "graphics\tools\id_tools.inc"
+ use "graphics\tools\id_tools_2.inc"
use "graphics\optional\includes\global\g_accessability.inc"
PrintLog "-------------------------" + gApplication + "-------------------"
diff --git a/testautomation/graphics/optional/g_convertto.bas b/testautomation/graphics/optional/g_convertto.bas
index bdc86266b96e..4a1e76cfe04d 100755..100644
--- a/testautomation/graphics/optional/g_convertto.bas
+++ b/testautomation/graphics/optional/g_convertto.bas
@@ -1,72 +1,73 @@
-'encoding UTF-8 Do not remove or change this line!
-'**************************************************************************
-' DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-'
-' Copyright 2000, 2010 Oracle and/or its affiliates.
-'
-' OpenOffice.org - a multi-platform office productivity suite
-'
-' This file is part of OpenOffice.org.
-'
-' OpenOffice.org is free software: you can redistribute it and/or modify
-' it under the terms of the GNU Lesser General Public License version 3
-' only, as published by the Free Software Foundation.
-'
-' OpenOffice.org is distributed in the hope that it will be useful,
-' but WITHOUT ANY WARRANTY; without even the implied warranty of
-' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-' GNU Lesser General Public License version 3 for more details
-' (a copy is included in the LICENSE file that accompanied this code).
-'
-' You should have received a copy of the GNU Lesser General Public License
-' version 3 along with OpenOffice.org. If not, see
-' <http://www.openoffice.org/license.html>
-' for a copy of the LGPLv3 License.
-'
-'/************************************************************************
-'*
-'* Owner : wolfram.garten@sun.com
-'*
-'* short description : Graphics Function: Convert to ...
-'*
-'\******************************************************************
-
-global Ueber_Text_1 as string
-global Ueber_Text_2 as string
-global Ueber_Text_3 as string
-
-sub main
- PrintLog "------------------------- g_convertto test -------------------------"
- Call hStatusIn ( "Graphics","g_convertto.bas")
-
- use "graphics\tools\id_tools.inc"
- use "graphics\optional\includes\global\g_convertto.inc"
-
- PrintLog "-------------------------" + gApplication + "-------------------"
- Call tiModifyConvertToPolygon
- Call tdContextConvertIntoBitmap
- Call tiAendernUmwandelnInKurve
- Call tiAendernUmwandelnInPolygonGrafik
- Call tiAendernUmwandelnIn3D
- Call tiAendernUmwandelnIn3DRotationsKoerper
- Call tiAendernUmwandelnInMetaFile
-
- gApplication = "DRAW"
- PrintLog "-------------------------" + gApplication + "-------------------"
- Call tiModifyConvertToPolygon
- Call tdContextConvertIntoBitmap
- Call tiAendernUmwandelnInKurve
- Call tiAendernUmwandelnInPolygonGrafik
- Call tiAendernUmwandelnIn3D
- Call tiAendernUmwandelnIn3DRotationsKoerper
- Call tiAendernUmwandelnInMetaFile
-
- Call hStatusOut
-end sub
-
-sub LoadIncludeFiles
- use "global\system\includes\master.inc"
- use "global\system\includes\gvariabl.inc"
- gApplication = "IMPRESS"
- Call GetUseFiles
-end sub
+'encoding UTF-8 Do not remove or change this line!
+'**************************************************************************
+' DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+'
+' Copyright 2000, 2010 Oracle and/or its affiliates.
+'
+' OpenOffice.org - a multi-platform office productivity suite
+'
+' This file is part of OpenOffice.org.
+'
+' OpenOffice.org is free software: you can redistribute it and/or modify
+' it under the terms of the GNU Lesser General Public License version 3
+' only, as published by the Free Software Foundation.
+'
+' OpenOffice.org is distributed in the hope that it will be useful,
+' but WITHOUT ANY WARRANTY; without even the implied warranty of
+' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+' GNU Lesser General Public License version 3 for more details
+' (a copy is included in the LICENSE file that accompanied this code).
+'
+' You should have received a copy of the GNU Lesser General Public License
+' version 3 along with OpenOffice.org. If not, see
+' <http://www.openoffice.org/license.html>
+' for a copy of the LGPLv3 License.
+'
+'/************************************************************************
+'*
+'* Owner : wolfram.garten@sun.com
+'*
+'* short description : Graphics Function: Convert to ...
+'*
+'\******************************************************************
+
+global Ueber_Text_1 as string
+global Ueber_Text_2 as string
+global Ueber_Text_3 as string
+
+sub main
+ PrintLog "------------------------- g_convertto test -------------------------"
+ Call hStatusIn ( "Graphics","g_convertto.bas")
+
+ use "graphics\tools\id_tools.inc"
+ use "graphics\tools\id_tools_2.inc"
+ use "graphics\optional\includes\global\g_convertto.inc"
+
+ PrintLog "-------------------------" + gApplication + "-------------------"
+ Call tiModifyConvertToPolygon
+ ' Call tdContextConvertIntoBitmap
+ Call tiAendernUmwandelnInKurve
+ Call tiAendernUmwandelnInPolygonGrafik
+ 'Call tiAendernUmwandelnIn3D
+ 'Call tiAendernUmwandelnIn3DRotationsKoerper
+ 'Call tiAendernUmwandelnInMetaFile
+
+ gApplication = "DRAW"
+ PrintLog "-------------------------" + gApplication + "-------------------"
+ 'Call tiModifyConvertToPolygon
+ 'Call tdContextConvertIntoBitmap
+ 'Call tiAendernUmwandelnInKurve
+ 'Call tiAendernUmwandelnInPolygonGrafik
+ 'Call tiAendernUmwandelnIn3D
+ 'Call tiAendernUmwandelnIn3DRotationsKoerper
+ 'Call tiAendernUmwandelnInMetaFile
+
+ Call hStatusOut
+end sub
+
+sub LoadIncludeFiles
+ use "global\system\includes\master.inc"
+ use "global\system\includes\gvariabl.inc"
+ gApplication = "IMPRESS"
+ Call GetUseFiles
+end sub
diff --git a/testautomation/graphics/optional/g_crossfading.bas b/testautomation/graphics/optional/g_crossfading.bas
index 52f7ce3acfe0..1520f995e8ab 100755..100644
--- a/testautomation/graphics/optional/g_crossfading.bas
+++ b/testautomation/graphics/optional/g_crossfading.bas
@@ -36,6 +36,7 @@ sub main
Call hStatusIn ( "Graphics","g_crossfading.bas")
use "graphics\tools\id_tools.inc"
+ use "graphics\tools\id_tools_2.inc"
use "graphics\optional\includes\global\g_crossfading.inc"
PrintLog "-------------------------" + gApplication + "-------------------"
diff --git a/testautomation/graphics/optional/g_customshapes.bas b/testautomation/graphics/optional/g_customshapes.bas
index b4e96524deff..f759be72f680 100755..100644
--- a/testautomation/graphics/optional/g_customshapes.bas
+++ b/testautomation/graphics/optional/g_customshapes.bas
@@ -36,6 +36,7 @@ sub main
Call hStatusIn ( "Graphics","g_customshapes.bas" )
use "graphics\tools\id_tools.inc"
+ use "graphics\tools\id_tools_2.inc"
use "graphics\optional\includes\global\g_customshapes.inc"
PrintLog "--------------------- " + gApplication + " -------------------"
diff --git a/testautomation/graphics/optional/g_group.bas b/testautomation/graphics/optional/g_group.bas
index 6cd539ac2577..f8d16e653c9c 100755..100644
--- a/testautomation/graphics/optional/g_group.bas
+++ b/testautomation/graphics/optional/g_group.bas
@@ -36,6 +36,7 @@ sub main
Call hStatusIn ( "Graphics","g_group.bas" )
use "graphics\tools\id_tools.inc"
+ use "graphics\tools\id_tools_2.inc"
use "graphics\optional\includes\global\g_group.inc"
PrintLog "-------------------------" + gApplication + "-------------------"
diff --git a/testautomation/graphics/optional/g_line.bas b/testautomation/graphics/optional/g_line.bas
index 89759e847389..867621aa88b0 100755..100644
--- a/testautomation/graphics/optional/g_line.bas
+++ b/testautomation/graphics/optional/g_line.bas
@@ -34,7 +34,7 @@
sub main
PrintLog "------------------------- g_line test -------------------------"
Call hStatusIn ( "Graphics","g_line.bas")
-
+ use "graphics\tools\id_tools_2.inc"
use "graphics\optional\includes\global\g_line.inc"
PrintLog "-------------------------" + gApplication + "-------------------"
diff --git a/testautomation/graphics/optional/g_ole.bas b/testautomation/graphics/optional/g_ole.bas
index dc8c0490b5aa..6409388ef2f6 100755..100644
--- a/testautomation/graphics/optional/g_ole.bas
+++ b/testautomation/graphics/optional/g_ole.bas
@@ -39,6 +39,7 @@ sub main
Call hStatusIn ( "Graphics","g_ole.bas")
use "graphics\tools\id_tools.inc"
+ use "graphics\tools\id_tools_2.inc"
use "graphics\optional\includes\global\g_ole.inc"
PrintLog "-------------------------" + gApplication + "-------------------"
diff --git a/testautomation/graphics/optional/g_savepictureas.bas b/testautomation/graphics/optional/g_savepictureas.bas
index c34348039db1..e3c5f3fc5b8d 100755..100644
--- a/testautomation/graphics/optional/g_savepictureas.bas
+++ b/testautomation/graphics/optional/g_savepictureas.bas
@@ -39,6 +39,7 @@ sub main
Call hStatusIn ( "Graphics","g_savepictureas.bas" )
use "graphics\tools\id_tools.inc"
+ use "graphics\tools\id_tools_2.inc"
use "graphics\optional\includes\global\g_savepictureas.inc"
PrintLog "-------------------------" + gApplication + "-------------------"
diff --git a/testautomation/graphics/optional/g_tools.bas b/testautomation/graphics/optional/g_tools.bas
index bb890f970722..272840602ac4 100755..100644
--- a/testautomation/graphics/optional/g_tools.bas
+++ b/testautomation/graphics/optional/g_tools.bas
@@ -43,6 +43,8 @@ sub main
PrintLog "-------------------------" + gApplication + "-------------------"
Call tiToolsThesaurus
+ Call tiToolsThesaurusWithoutText
+ Call tiToolsThesaurusContextMenu
Call tiToolsHyphenation1
Call tiToolsHyphenation2
Call tToolsMacro
@@ -50,6 +52,8 @@ sub main
gApplication = "DRAW"
PrintLog "-------------------------" + gApplication + "-------------------"
Call tiToolsThesaurus
+ Call tiToolsThesaurusWithoutText
+ Call tiToolsThesaurusContextMenu
Call tiToolsHyphenation1
Call tiToolsHyphenation2
Call tToolsMacro
diff --git a/testautomation/graphics/optional/i_animation.bas b/testautomation/graphics/optional/i_animation.bas
index 64b0921b8db2..6b2c4851a28a 100755..100644
--- a/testautomation/graphics/optional/i_animation.bas
+++ b/testautomation/graphics/optional/i_animation.bas
@@ -36,6 +36,7 @@ sub main
Call hStatusIn ( "Graphics","i_animation.bas")
use "graphics\tools\id_tools.inc"
+ use "graphics\tools\id_tools_2.inc"
use "graphics\optional\includes\impress\i_animation.inc"
Call tExtrasAnimation
diff --git a/testautomation/graphics/optional/i_saveloadlayout.bas b/testautomation/graphics/optional/i_saveloadlayout.bas
index 2ce62f89c4d7..08fc52a44270 100755..100644
--- a/testautomation/graphics/optional/i_saveloadlayout.bas
+++ b/testautomation/graphics/optional/i_saveloadlayout.bas
@@ -41,11 +41,7 @@ sub main
PrintLog "-------------------------" + gApplication + "-------------------"
Call tSaveLoadLayoutEmpty
Call tSaveLoadLayoutText
- Call tSaveLoadLayoutPicture
- Call tSaveLoadLayoutOutline
- Call tSaveLoadLayoutChart
- Call tSaveLoadLayoutSpreadsheet
- Call tSaveLoadLayoutOLE
+ Call tSaveLoadLayoutContent
Call hStatusOut
end sub
diff --git a/testautomation/graphics/optional/i_slidecopy.bas b/testautomation/graphics/optional/i_slidecopy.bas
index 04c91a4bb10c..cc1ac3f9d7bd 100755..100644
--- a/testautomation/graphics/optional/i_slidecopy.bas
+++ b/testautomation/graphics/optional/i_slidecopy.bas
@@ -38,6 +38,7 @@ sub main
Call hStatusIn ( "Graphics","i_slidecopy.bas")
use "graphics\tools\id_tools.inc"
+ use "graphics\tools\id_tools_2.inc"
use "graphics\optional\includes\impress\i_slidecopy.inc"
PrintLog "-------------------------" + gApplication + "-------------------"
diff --git a/testautomation/graphics/optional/includes/global/export_graphic.inc b/testautomation/graphics/optional/includes/global/export_graphic.inc
index d60872022166..7c16129e41ae 100644
--- a/testautomation/graphics/optional/includes/global/export_graphic.inc
+++ b/testautomation/graphics/optional/includes/global/export_graphic.inc
@@ -119,7 +119,11 @@ testcase tEPS
sleep 5
hNewDocument()
sleep 5
+ if ( lcase( gPlatform ) <> "osx" ) then
Call hGrafikEinfuegen ( OutputGrafikTBO+sExt )
+ else
+ qaErrorLog "#i100253# crash on MacOS X 10.4"
+ endif
endif
call hCloseDocument
diff --git a/testautomation/graphics/optional/includes/global/export_graphic_2.inc b/testautomation/graphics/optional/includes/global/export_graphic_2.inc
index d4c6f46ed272..67c456201b45 100755..100644
--- a/testautomation/graphics/optional/includes/global/export_graphic_2.inc
+++ b/testautomation/graphics/optional/includes/global/export_graphic_2.inc
@@ -146,7 +146,7 @@ testcase tSVM
hFileOpen (sDocument)
sleep (10)
- sMakeReadOnlyDocumentEditable
+ call fMakeDocumentWritable
hTypeKeys ("<escape><tab>")
fGetSizeXY sx1, sY, TRUE
@@ -763,14 +763,8 @@ qaerrorlog
endif
' check if the document is writable
- if fIsDocumentWritable = false then
- ' make the document writable and check if it's succesfull
- if fMakeDocumentWritable = false then
- warnlog "The document can't be make writeable. Test stopped."
- goto endsub
- endif
- endif
-
+ call fMakeDocumentWritable
+
hTypeKeys ("<escape><tab>")
fGetSizeXY sx1, sy, TRUE
if hCallExport (OutputGrafikTBO + "1" , "BMP - Windows Bitmap (.bmp)", TRUE ) = TRUE then
@@ -948,9 +942,8 @@ testcase tEMF
Filterauswahl.Cancel
goto endsub
endif
- printlog "making doc editable if it is readonly"
- sMakeReadOnlyDocumentEditable
-
+ printlog "making doc editable if it is readonly"
+ call fMakeDocumentWritable
hTypeKeys ("<escape><tab>")
fGetSizeXY sx1, sY, TRUE
if hCallExport (OutputGrafikTBO & "1" , sFilter, TRUE ) = TRUE then
@@ -1139,7 +1132,7 @@ testcase tMET
sleep (10)
printlog "making doc editable if it is readonly"
- sMakeReadOnlyDocumentEditable
+ call fMakeDocumentWritable
hTypeKeys ("<escape><tab>")
fGetSizeXY sx1, sY, TRUE
@@ -1341,7 +1334,7 @@ testcase tWMF
sleep (10)
printlog "making doc editable if it is readonly"
- sMakeReadOnlyDocumentEditable
+ call fMakeDocumentWritable
hTypeKeys ("<escape><tab>")
fGetSizeXY sx1, sY, TRUE
diff --git a/testautomation/graphics/optional/includes/global/g_accessability.inc b/testautomation/graphics/optional/includes/global/g_accessability.inc
index a1385530f124..8d59b0c6b387 100644
--- a/testautomation/graphics/optional/includes/global/g_accessability.inc
+++ b/testautomation/graphics/optional/includes/global/g_accessability.inc
@@ -37,6 +37,7 @@
testcase tEis1549
call hNewDocument
+ call sSelectEmptyLayout
call hTextrahmenErstellen ("Sun",20,20,70,20)
hTypeKeys ("<escape><escape>")
@@ -116,10 +117,16 @@ testcase tEis1549
endcatch
call hCloseDocument
-endcase
+endcase 'tEis1549
testcase tEis1523
call hNewDocument
+
+ printlog "Switching between Draw/Impress"
+ if (UCase(gApplication)) = "IMPRESS" then
+ call sSelectEmptyLayout
+
+ endif
call hTextrahmenErstellen ("A",20,20,30,30)
hTypeKeys ("<escape><escape>")
call hTextrahmenErstellen ("B",10,10,15,15)
@@ -209,7 +216,7 @@ testcase tEis1523
endif
call hCloseDocument
-endcase
+endcase 'tEis1523
testcase tEis1581
dim i as integer
@@ -237,8 +244,11 @@ testcase tEis1581
LayoutsPreview.TypeKeys "<Return>"
sleep (1)
hTypeKeys ("<tab><tab>")
- sleep (1)
- hTypeKeys ("<Return>")
+
+ DocumentImpress.UseMenu
+ hMenuSelectNr(4)
+ hMenuSelectNr(13)
+ hMenuSelectNr(1)
sleep (2)
kontext "GeneralFileDialog"
if GeneralFileDialog.exists then
@@ -255,7 +265,7 @@ testcase tEis1581
Pagelayout_UndoDeleteWarning.ok
endif
sleep (1)
- for i = 1 to 17
+ for i = 1 to 3
kontext "Tasks"
LayoutsPreview.TypeKeys "<RIGHT>"
kontext "Pagelayout_UndoDeleteWarning"
@@ -267,9 +277,12 @@ testcase tEis1581
kontext "Tasks"
LayoutsPreview.TypeKeys "<Return>"
sleep (1)
- hTypeKeys ("<tab><tab><tab>")
+ hTypeKeys ("<tab><tab>")
sleep (1)
- hTypeKeys ("<Return>")
+ DocumentImpress.UseMenu
+ hMenuSelectNr(4)
+ hMenuSelectNr(16)
+ hMenuSelectNr(1)
try
sleep 2
' InsertTitle *OLEObjektEinfuegen/OLEObjektInsert SID_INSERT_OBJECT
@@ -281,4 +294,4 @@ testcase tEis1581
endcatch
endif
call hCloseDocument
-endcase
+endcase 'tEis1581
diff --git a/testautomation/graphics/optional/includes/global/g_arrangealign.inc b/testautomation/graphics/optional/includes/global/g_arrangealign.inc
index 4d79d3c2f829..f9fab5625905 100644
--- a/testautomation/graphics/optional/includes/global/g_arrangealign.inc
+++ b/testautomation/graphics/optional/includes/global/g_arrangealign.inc
@@ -46,7 +46,8 @@ testcase tiDatei_Fuer_Anordnen_Erstellen
dim zaehler as integer
'/// This function creates the document, that will be used as reference and working object inthe following cases :-) ///'
'///'Dim Datei ' somewhere global :-) defined in calling sub! :sub im_107c_ ///
- call hNewDocument '/// new document ///'
+ call hNewDocument
+ call sSelectEmptyLayout '/// new document ///'
if Dir(Datei)<>"" then app.Kill(Datei) ' kill old file
for Zaehler = 1 to 3 '/// create 3 overlapping objects ///'
Kontext
diff --git a/testautomation/graphics/optional/includes/global/g_autocorrection.inc b/testautomation/graphics/optional/includes/global/g_autocorrection.inc
index 74fa830a9b11..7653d391243f 100755..100644
--- a/testautomation/graphics/optional/includes/global/g_autocorrection.inc
+++ b/testautomation/graphics/optional/includes/global/g_autocorrection.inc
@@ -159,7 +159,7 @@ testcase tToolsAutocorrectCustomQuotes(bSimple as boolean)
printlog "File opened: " + sFileName
Sleep 3
- Call sMakeReadOnlyDocumentEditable
+ call fMakeDocumentWritable
if bSimple then
Printlog "- Tools/Autocorrect -single quotes"
diff --git a/testautomation/graphics/optional/includes/global/g_clipboard.inc b/testautomation/graphics/optional/includes/global/g_clipboard.inc
index 574db14419e8..9bc85a4bbad1 100644
--- a/testautomation/graphics/optional/includes/global/g_clipboard.inc
+++ b/testautomation/graphics/optional/includes/global/g_clipboard.inc
@@ -216,6 +216,7 @@ testcase tiEditClipboard
'/// open application ///'
Call hNewDocument
+ Call sSelectEmptyLayout
sleep 1
SetClipboard ""
'/// Create rectangle ///'
diff --git a/testautomation/graphics/optional/includes/global/g_convertto.inc b/testautomation/graphics/optional/includes/global/g_convertto.inc
index a8fc7e5aa37d..8acac43a45fc 100644
--- a/testautomation/graphics/optional/includes/global/g_convertto.inc
+++ b/testautomation/graphics/optional/includes/global/g_convertto.inc
@@ -58,6 +58,7 @@ testcase tiModifyConvertToPolygon
Dim Minanzahl as string
Call hNewDocument
+ Call sSelectEmptyLayout
sleep 3
hTextrahmenErstellen ("This is a text that will be transformed into a Polygon-object", 10,10,60,30)
sleep 1
@@ -207,6 +208,7 @@ testcase tiAendernUmwandelnInKurve
Printlog " ----- ContextConvertIntoCurve testen"
Call hNewDocument '/// New impress document///'
+ Call sSelectEmptyLayout
Call hTextrahmenErstellen ("I test,test,test,test only, if it works for you",20,20,60,30) '/// create textbox///'
sleep 2
@@ -236,6 +238,7 @@ testcase tiAendernUmwandelnInPolygonGrafik
Printlog "- Context/ConvertIntoPolygon"
Call hNewDocument '/// new document ///'
+ Call sSelectEmptyLayout
InsertGraphicsFromFile '/// insert graphic (desp.bmp) ///'
diff --git a/testautomation/graphics/optional/includes/global/g_crossfading.inc b/testautomation/graphics/optional/includes/global/g_crossfading.inc
index e530a28f1339..275f1ee49839 100644
--- a/testautomation/graphics/optional/includes/global/g_crossfading.inc
+++ b/testautomation/graphics/optional/includes/global/g_crossfading.inc
@@ -43,7 +43,8 @@ testcase tCrossfading
dim CounterForX as integer
dim anothercounter as integer
- Call hNewDocument '/// New Impress document ///'
+ Call hNewDocument
+ Call sSelectEmptyLayout '/// New Impress document ///'
gMouseClick 50,50
sleep 1
Call hRechteckErstellen ( 5, 5, 20, 30 ) '/// Create rectangle ///'
diff --git a/testautomation/graphics/optional/includes/global/g_customshapes.inc b/testautomation/graphics/optional/includes/global/g_customshapes.inc
index 3cd31dac77b6..850356821d2f 100644
--- a/testautomation/graphics/optional/includes/global/g_customshapes.inc
+++ b/testautomation/graphics/optional/includes/global/g_customshapes.inc
@@ -40,6 +40,7 @@ testcase tCustomshapes
'/// Create new document ///'
Call hNewDocument
+ Call sSelectEmptyLayout
if gApplication = "DRAW" then
Kontext "Documentdraw"
else '(Impress)
@@ -646,15 +647,15 @@ testcase tFormatPaintbrush
sleep 1
else '(Impress)
Kontext "DocumentImpress"
- DocumentImpress.Mousedown 20, 20
- DocumentImpress.Mouseup 20, 20
+ DocumentImpress.typekeys("<F6>",true)
+ DocumentImpress.typekeys("<ESCAPE>",true)
+ DocumentImpress.typekeys("<TAB>",true)
sleep 1
kontext "Standardbar"
FormatPaintbrush.Click
kontext "DocumentImpress"
sleep 1
- DocumentImpress.Mousedown 80, 80
- DocumentImpress.Mouseup 80, 80
+ DocumentImpress.typekeys("<TAB>",true)
sleep 1
endif
diff --git a/testautomation/graphics/optional/includes/global/g_demoguide.inc b/testautomation/graphics/optional/includes/global/g_demoguide.inc
index 56dd1f89e294..8da45a872259 100644
--- a/testautomation/graphics/optional/includes/global/g_demoguide.inc
+++ b/testautomation/graphics/optional/includes/global/g_demoguide.inc
@@ -44,6 +44,7 @@ testcase t_Introduction
'///Open new presentation
printlog "Open new presentation"
Call hNewDocument
+ Call sSelectEmptyLayout
'///Open the Gallery
printlog "Open the Gallery"
@@ -136,7 +137,7 @@ testcase t_Introduction
DocumentImpress.TypeKeys "<MOD1 A>"
hOpenContextMenu '(when the object is marked)
hMenuSelectNr(12)
-
+
'///Add Layout "Title Only"
Printlog "Add Layout"
kontext "Tasks"
@@ -144,36 +145,71 @@ testcase t_Introduction
warnlog "Tasks Panel not visible. Opening now."
ViewTaskPane
endif
- Kontext "LayoutsPreview"
+
+ ' enable all items in the task pane.
+ ' may be one item is not enabled due to a previous testrun
+ dim i as integer
+ for i = 1 to 5
+ printlog i
+ View.OpenMenu
+ if ( MenuIsItemChecked(MenuGetItemID(i)) ) then
+ ' do nothing the item is allready displayed
+ else
+ MenuSelect(MenuGetItemId(4))
+ endif
+ hMenuSelectNr(0)
+ 'sleep(1)
+ next
+
+ View.OpenMenu
+ MenuSelect(MenuGetItemId(1))
+ View.OpenMenu
+ MenuSelect(MenuGetItemId(3))
+ View.OpenMenu
+ MenuSelect(MenuGetItemId(4))
+ View.OpenMenu
+ MenuSelect(MenuGetItemId(5))
+
+
LayoutsPreview.TypeKeys "<HOME> <DOWN> <DOWN> <RETURN>"
sleep (5)
'///Add a background
Printlog "Add background"
-
+
Kontext "Tasks"
printlog "Deselect all tabs from view menu in task pane except the needed."
View.OpenMenu
- MenuSelect(MenuGetItemID(5))
+ MenuSelect(MenuGetItemID(5))
View.OpenMenu
- MenuSelect(MenuGetItemID(4))
+ MenuSelect(MenuGetItemID(4))
View.OpenMenu
MenuSelect(MenuGetItemID(3))
View.OpenMenu
MenuSelect(MenuGetItemID(2))
- Kontext "AvailableForUsePreview"
+ sleep(5)
+ View.OpenMenu
+ MenuSelect(MenuGetItemID(1))
+ Tasks.TypeKeys "<TAB>",true
+ Tasks.TypeKeys "<MOD1 HOME>",true
AvailableForUsePreview.TypeKeys "<HOME> <RIGHT> <RETURN>"
- sleep (5)
+ sleep (5)
'///Add a transition effect
Printlog "Add a transition effect"
Kontext "Tasks"
- View.OpenMenu
- MenuSelect(MenuGetItemID(5))
+ sleep(5)
View.OpenMenu
MenuSelect(MenuGetItemID(1))
+ View.OpenMenu
+ MenuSelect(MenuGetItemID(2))
+ View.OpenMenu
+ MenuSelect(MenuGetItemID(3))
+ View.OpenMenu
+ MenuSelect(MenuGetItemID(4))
+
TransitionSound.GetItemCount 'needed for select
Sleep 1
TransitionSound.Select 4
-
+
'///Close the document
Printlog "Close the document"
Call hCloseDocument
@@ -385,7 +421,7 @@ testcase t_DrawingEngine
printlog "Open a drawing"
hFileOpen (Convertpath (gTesttoolPath + "graphics/required/input/Blueprint.odg"))
- Call sMakeReadOnlyDocumentEditable
+ Call fMakeDocumentWritable
'///Select grouped object and enter group
printlog "Select group"
diff --git a/testautomation/graphics/optional/includes/global/g_edit.inc b/testautomation/graphics/optional/includes/global/g_edit.inc
index ef14cd1f477e..6313865b8912 100644
--- a/testautomation/graphics/optional/includes/global/g_edit.inc
+++ b/testautomation/graphics/optional/includes/global/g_edit.inc
@@ -100,39 +100,49 @@ endcase 'tEditDuplicate
'---------------------------------------------------------
testcase tEditFields
- Call hNewDocument
- sleep 3
- InsertFieldsDateFix '/// Insert Date-Fix ///'
- EditSelectAll '/// Select inserted field ///'
- sleep 1
- hTypeKeys "<F2>" '/// Go into edit mode (F2) ///'
- sleep 2
- EditSelectAll '/// Select the date///'
- sleep 2
- EditfieldsDraw '/// Edit -fields///'
- Kontext "FeldbefehlBearbeitenDraw"
- sleep 2
- FeldtypFix.Check '/// check field type fix ///'
- If FeldtypFix.Ischecked then
- Printlog "OK FieldtypeFix checkable"
- else
- warnlog "FieldtypeFix not checkable"
- end if
- FeldtypVariabel.Check '/// check field type variabel///'
- sleep 1
- If FeldtypVariabel.Ischecked then
- Printlog "OK FieldtypeVariabel enabled"
- else
+ Call hNewDocument
+ Call sSelectEmptyLayout
+ sleep 3
+ printlog "insert date-fix"
+ InsertFieldsDateFix
+ printlog "select inserted field"
+ EditSelectAll
+ sleep 1
+ printlog "go into edit mode"
+ hTypeKeys "<F2>"
+ sleep 2
+ printlog "select date"
+ EditSelectAll
+ sleep 2
+ printlog "edit fields"
+ EditfieldsDraw
+ Kontext "FeldbefehlBearbeitenDraw"
+ sleep 2
+ printlog "check field type fix"
+ FeldtypFix.Check
+ If FeldtypFix.Ischecked then
+ Printlog "OK FieldtypeFix checkable"
+ else
+ warnlog "FieldtypeFix not checkable"
+ end if
+ printlog "check field type variable 1"
+ FeldtypVariabel.Check
+ sleep 1
+ If FeldtypVariabel.Ischecked then
+ Printlog "OK FieldtypeVariabel enabled"
+ else
warnlog "FieldtypeVariabel not enabled"
- end if
-' For Zaehler = 1 to FeldtypFormat.GetItemCount
-' FeldTypFormat.Select Zaehler
-' printlog "OK Format ", Zaehler, " = ", FeldtypFormat.GetSelText
-' Next Zaehler
- FeldbefehlBearbeitenDraw.OK '/// close edit fields dialog ///'
- sleep 2
- Call hCloseDocument '/// close document ///'
- sleep 2
+ end if
+ ' For Zaehler = 1 to FeldtypFormat.GetItemCount
+ ' FeldTypFormat.Select Zaehler
+ ' printlog "OK Format ", Zaehler, " = ", FeldtypFormat.GetSelText
+ ' Next Zaehler
+ printlog "close edit fields dialog"
+ FeldbefehlBearbeitenDraw.OK
+ sleep 2
+ printlog "Close Document"
+ Call hCloseDocument
+ sleep 2
endcase 'tEditFields
'--------------------------------------------------------
diff --git a/testautomation/graphics/optional/includes/global/g_format.inc b/testautomation/graphics/optional/includes/global/g_format.inc
index 0674a2f0cd56..2e2f1b0368ff 100644
--- a/testautomation/graphics/optional/includes/global/g_format.inc
+++ b/testautomation/graphics/optional/includes/global/g_format.inc
@@ -48,6 +48,7 @@ testcase tiFormatText
'/// open application ///'
Call hNewDocument
+ Call sSelectEmptyLayout
'/// create a textbox with text ///'
Call hTextrahmenErstellen ("This is a text, which, I hope, in Staroffice, will be automaticly formatted. Should that not be the case, then it doesn't matter.",20,20,70,20)
WaitSlot (1000)
@@ -699,7 +700,8 @@ testcase tiFormat3D_Effekte
Dim Zaehler as integer
Dim Posi as string
- Call hNewDocument
+ Call hNewDocument
+ Call sSelectEmptyLayout
printlog "new document"
'-----------------------------------RECTANGLE------------------------------------------------------
Call hRechteckErstellen (20,20,60,70) '/// create rectangle ///'
@@ -1187,6 +1189,7 @@ testcase tiFormatAufzaehlungszeichen
PrintLog "- Format/Numbering and Bullets"
Call hNewDocument
+ Call sSelectEmptyLayout
WaitSlot (2000)
Kontext "DocumentImpress"
hTextrahmenErstellen ("Hello <Return><Return>",20,20,60,60)
diff --git a/testautomation/graphics/optional/includes/global/g_group.inc b/testautomation/graphics/optional/includes/global/g_group.inc
index b28029cfb534..3023e673a526 100644
--- a/testautomation/graphics/optional/includes/global/g_group.inc
+++ b/testautomation/graphics/optional/includes/global/g_group.inc
@@ -36,7 +36,8 @@
testcase tiGruppierung
Dim PosX 'Variable fuer PositionX
- Call hNewDocument '/// new document ///'
+ Call hNewDocument
+ Call sSelectEmptyLayout '/// new document ///'
sleep 3
Kontext "DocumentImpress"
sleep 2
diff --git a/testautomation/graphics/optional/includes/global/g_line.inc b/testautomation/graphics/optional/includes/global/g_line.inc
index 3aad4234abd6..55869c258f43 100644
--- a/testautomation/graphics/optional/includes/global/g_line.inc
+++ b/testautomation/graphics/optional/includes/global/g_line.inc
@@ -331,6 +331,7 @@ testcase tLineConnect
end if
Call hNewDocument '/// New Impress / Draw document ///'
+ Call sSelectEmptyLayout
sleep 3
kontext "GraphicObjectbar"
if GraphicObjectbar.Exists then
diff --git a/testautomation/graphics/optional/includes/global/g_load_save.inc b/testautomation/graphics/optional/includes/global/g_load_save.inc
index 9bc422f99ff3..6622c9c7a452 100644
--- a/testautomation/graphics/optional/includes/global/g_load_save.inc
+++ b/testautomation/graphics/optional/includes/global/g_load_save.inc
@@ -302,14 +302,9 @@ testcase tFileOpenImport
Dateiname.SetText (ConvertPath (gTesttoolpath + "graphics\required\input\imsusmap.cgm"))
Oeffnen.Click
Sleep 2
- ' check if the document is writable
- if fIsDocumentWritable = false then
- ' make the document writable and check if it's succesfull
- if fMakeDocumentWritable = false then
- warnlog "The document can't be make writeable. Test stopped."
- goto endsub
- endif
- endif
+
+ call fMakeDocumentWritable
+
kontext "DocumentImpress"
if DocumentImpress.exists(5) then
DocumentImpress.TypeKeys ("<Tab>")
diff --git a/testautomation/graphics/optional/includes/global/g_mediaplayer.inc b/testautomation/graphics/optional/includes/global/g_mediaplayer.inc
index 2382a00b6f0d..01fe8137ef64 100644
--- a/testautomation/graphics/optional/includes/global/g_mediaplayer.inc
+++ b/testautomation/graphics/optional/includes/global/g_mediaplayer.inc
@@ -232,7 +232,7 @@ testcase g_mediaplayer
else
kontext "DocumentDraw"
endif
- hTypeKeys ("<escape><tab>")
+ hTypeKeys ("<escape><tab><tab><tab>")
hOpenContextMenu()
hMenuSelectNr(1)
diff --git a/testautomation/graphics/optional/includes/global/g_ole.inc b/testautomation/graphics/optional/includes/global/g_ole.inc
index 9689771df8a3..3d30cf52ca85 100755..100644
--- a/testautomation/graphics/optional/includes/global/g_ole.inc
+++ b/testautomation/graphics/optional/includes/global/g_ole.inc
@@ -244,6 +244,7 @@ testcase tOLE_SaveLoad
filename = ConvertPath (gOfficePath + "user\work\oletest." & ExtensionString)
printlog "Create a new document."
Call hNewDocument
+ Call sSelectEmptyLayout
printlog "Insert->Object->OLE Object..."
InsertObjectOLEObject
Kontext "OLEObjektInsert"
diff --git a/testautomation/graphics/optional/includes/global/g_savepictureas.inc b/testautomation/graphics/optional/includes/global/g_savepictureas.inc
index 39d7af75e9e9..3888cf31d39e 100644
--- a/testautomation/graphics/optional/includes/global/g_savepictureas.inc
+++ b/testautomation/graphics/optional/includes/global/g_savepictureas.inc
@@ -70,6 +70,7 @@ testcase tContextSaveAsPicture
endif
Call hNewDocument
+ Call sSelectEmptyLayout
setClipboard(" ")
sleep 2
InsertGraphicsFromFile
@@ -303,6 +304,7 @@ testcase tContextSaveAsPicture
hTypeKeys "<DELETE>"
call hCloseDocument
call hNewDocument
+ Call sSelectEmptyLayout
InsertGraphicsFromFile
Kontext "GrafikEinfuegenDlg"
if GrafikEinfuegenDlg.exists(5) then
@@ -368,6 +370,7 @@ testcase tContextSavePictureLinkAsPicture
endif
Call hNewDocument
+ Call sSelectEmptyLayout
setClipboard(" ")
sleep 2
InsertGraphicsFromFile
@@ -725,6 +728,7 @@ endif
hTypeKeys "<DELETE>"
call hCloseDocument
call hNewDocument
+Call sSelectEmptyLayout
InsertGraphicsFromFile
Kontext "GrafikEinfuegenDlg"
if GrafikEinfuegenDlg.exists(5) then
diff --git a/testautomation/graphics/optional/includes/global/g_shaddow.inc b/testautomation/graphics/optional/includes/global/g_shaddow.inc
index 46ac99bb99f0..0a7708086371 100644
--- a/testautomation/graphics/optional/includes/global/g_shaddow.inc
+++ b/testautomation/graphics/optional/includes/global/g_shaddow.inc
@@ -63,6 +63,7 @@ testcase tiShaddow
'/// Open application ///'
Call hNewDocument
+ Call sSelectEmptyLayout
sleep 1
'/// Import picture ///'
diff --git a/testautomation/graphics/optional/includes/global/g_tables.inc b/testautomation/graphics/optional/includes/global/g_tables.inc
index 2ffff217ba72..1414a857b598 100644
--- a/testautomation/graphics/optional/includes/global/g_tables.inc
+++ b/testautomation/graphics/optional/includes/global/g_tables.inc
@@ -231,7 +231,7 @@ testcase tiTableObjectBar
printlog "Switching between Draw/Impress"
if (UCase(gApplication)) = "IMPRESS" then
Kontext "DocumentImpress"
- DocumentImpress.TypeKeys "<MOD1 A>"
+ DocumentImpress.TypeKeys "<TAB>",3
else
Kontext "DocumentDraw"
DocumentDraw.TypeKeys "<MOD1 A>"
diff --git a/testautomation/graphics/optional/includes/global/g_tools.inc b/testautomation/graphics/optional/includes/global/g_tools.inc
index b5cdd71e0416..2d802af5b40c 100644
--- a/testautomation/graphics/optional/includes/global/g_tools.inc
+++ b/testautomation/graphics/optional/includes/global/g_tools.inc
@@ -40,49 +40,55 @@
'-------------------------------------------------------------------------------
testcase tiToolsThesaurus
- Dim DasWort$
- Dim ZaehlerBedeutung
-
-'/// for normal text, the thesaurus is enabled, if the format->character->language of the word has a thesaurus///'
-'///+ unfortunately in textboxes this doesn't work, you can give the word a langauge, but this is been ignored by///'
-'///+ our thesaurus :-(((///'
-'/// so especially for asian languages you have to set a default language in the options, to be able to use///'
-'///+ the thesaurus there - fallback to englisch, because there is no ? thesaurus for cjk languages ??///'
-
- '/// First we make sure we test a language where Thesa
- ' As long as OOo has no modules for that, disabled
- if gOOO = True then
- printlog "No spellchecking in OOo"
- goto endsub
- endif
+ Dim sWord as string
+ Dim sChangedWord as string
+ Dim sReplaceWord as string
+ Dim sAlternativeText as string
+ Dim sExt as string
+ Dim ZaehlerBedeutung
+ 'for normal text, the thesaurus is enabled,
+ 'if the format->character->language of the word has a thesaurus
+ 'unfortunately in textboxes this doesn't work, you can give the word a langauge,
+ 'but this is been ignored by our thesaurus
+ 'so especially for asian languages you have to set a default language in the options,
+ 'to be able to use the thesaurus there - fallback to englisch,
+ 'because there is no thesaurus for cjk languages
+
+ 'As long as OOo has no modules for that, disabled
+ if gOOO = True then
+ printlog "No spellchecking in OOo"
+ goto endsub
+ endif
+
+ 'First we make sure we test a language where Thesaurus
select case iSprache
- case 01 : DasWort$ = "Hello"
- case 03 : DasWort$ = "Alo"
+ case 01 : sWord = "Hello"
+ case 03 : sWord = "Alo"
case 07 : printlog "- No Thesaur for Russian available"
goto endsub
case 30 : Printlog "- No Thesaurus available !"
goto endsub
- case 31 : DasWort$ = "Guiten"
- case 33 : DasWort$ = "Bonjour"
- case 34 : DasWort$ = "Hola"
+ case 31 : sWord = "Guiten"
+ case 33 : sWord = "Bonjour"
+ case 34 : sWord = "Hola"
case 35 : Printlog "- No Thesaurus available !"
goto endsub
case 36 : Printlog "- No Thesaurus available !"
goto endsub
case 37 : Printlog "- No Thesaurus available !"
goto endsub
- case 39 : DasWort$ = "Ciao"
+ case 39 : sWord = "Ciao"
case 42 : Printlog "- No Thesaurus available !"
goto endsub
- case 45 : DasWort$ = "Hej"
- case 46 : DasWort$ = "Välkommen"
+ case 45 : sWord = "Hej"
+ case 46 : sWord = "Välkommen"
case 47 : Printlog "- No Thesaurus available !"
goto endsub
case 48 : Printlog "- No Thesaurus in Polish!"
goto endsub
- case 49 : DasWort$ = "Hallo"
- case 50 : DasWort$ = "Prosojnica"
+ case 49 : sWord = "Hallo"
+ case 50 : sWord = "Prosojnica"
case 51 : Printlog "- No Thesaurus available !"
goto endsub
case 55 : Printlog "- No Thesaurus in Brazilian!"
@@ -92,83 +98,237 @@ testcase tiToolsThesaurus
case else : if bAsianLan then
hSetSpellHypLanguage
- DasWort$ = "Hello"
+ sWord = "Hello"
else
Warnlog "For the language " + iSprache +" nothing is prepared yet: insert text here"
- DasWort$ = "Hello"
+ sWord = "Hello"
endif
end select
+
+ PrintLog "Thesaurus with 1 word: " + sWord
+
+ if( Ucase(gApplication) = "DRAW" ) then
+ sExt = ".odg"
+ elseif( Ucase(gApplication) = "IMPRESS" ) then
+ sExt = ".odp"
+ endif
+
+ Call hFileOpen (gTesttoolpath + "graphics\required\input\recht_" + iSprache + sExt)
+ Call sMakeReadOnlyDocumentEditable()
+ Call hTextrahmenErstellen (sWord,20,20,50,30)
+ sleep 1
+
+ printlog "select the word"
+ hTypeKeys "<Home><SHIFT END>"
+
+ try
+ ExtrasThesaurusDraw
+ catch
+ warnlog "No Thesaurus available."
+ hCloseDocument()
+ goto endsub
+ endcatch
+
+ Kontext "Thesaurus"
+ if Thesaurus.Exists(3) then
+
+ if CurrentWord.GetSelText <> sWord Then
+ WarnLog "marked word should be:" + sWord + " but it is:" + CurrentWord.GetSelText
+ else
+ PrintLog "Marked word is correctly changed"
+ endif
+
+ if Alternatives.GetItemCount = 0 Then
+ warnlog "There are no alternative for this word"
+ sleep 1
+ else
+ printlog "select the first alternative"
+ Alternatives.Select 1
+
+ printlog "check if the selected alternative apprear in the ReplaceWith field."
+
+ sAlternativeText = Alternatives.getSeltext(1,3)
+ 'remove the part in the () if there is any
+ if( Instr(sAlternativeText, "(") <> 0 ) then
+ sAlternativeText = left(sAlternativeText, Instr(sAlternativeText, "(") - 2 )
+ endif
+
+ if ( ReplaceWith.getText() <> sAlternativeText ) then
+ warnlog "the text is no transfered to the ReplaceWith field. " +_
+ "ReplaceWith = " + ReplaceWith.getText() + ", Alternative = " + sAlternativeText
+ else
+ printlog "the text is transfered to the ReplaceWith field."
+ endif
+
+ sReplaceWord = ReplaceWith.getText()
+ sleep 1
+ endif
+ Thesaurus.OK
- printlog " Thesaurus without any word in the document"
- Call hNewDocument '/// New document ///'
- try
- ExtrasThesaurusDraw '/// try thesaurus in empty document ///'
- Kontext "Thesaurus"
- Thesaurus.Cancel
- WarnLog " If no word is in the document, Thesaurus shouldn't be available"
- catch
- PrintLog " No Thesaurus available"
- endcatch
-
- PrintLog " Thesaurus with 1 word: " + DasWort$
-
- Call hTextrahmenErstellen (DasWort$,20,20,50,30)
- sleep 1
-
- hTypeKeys "<Home><SHIFT END>"
- '------------------------
-ToolsOptions
-Kontext "ExtrasOptionenDlg"
-hToolsOptions("LANGUAGESETTINGS","Languages")
-Westlich.Select 34
-Kontext "ExtrasOptionenDlg"
-ExtrasOptionenDlg.OK
-sleep 1
- '------------------------
- try
- ExtrasThesaurusDraw '/// Thesaurus with only 1 word ///'
- Kontext "Thesaurus"
- if Thesaurus.Exists(3) then
- if Wort.GetSelText <> DasWort$ Then WarnLog "marked word should be:" + DasWort$ + " but it is:" + Wort.GetSelText
- if Wort.GetSelText = DasWort$ Then PrintLog " Marked word is correctly changed" '/// Control if word has changed ///'
- ZaehlerBedeutung=Bedeutung.GetItemCount
- if Bedeutung.GetItemCount = 0 Then
- PrintLog " There are no suggestions for this word"
- sleep 1
+ if(Ucase(gApplication) = "DRAW") then
+ Kontext "Draw"
+ elseif(Ucase(gApplication) = "IMPRESS") then
+ Kontext "Impress"
+ else ' fallback
+ warnlog "gApplication is wrong"
+ goto endsub
+ endif
+
+ hTypeKeys "<Home><SHIFT END>"
+ EditCopy
+ sChangedWord = getClipboard()
+ printlog "sChangedWord = " + sChangedWord
+ if(sChangedWord <> sReplaceWord) then
+ warnlog "the text was not replaced"
else
- if ZaehlerBedeutung=1 Then
- Bedeutung.Select ZaehlerBedeutung
- else
- Bedeutung.Select (ZaehlerBedeutung - 1)
- end if
- sleep 1
- Synonym.Select 1 '/// Select synonym 1///'
- sleep 1
- if Ersetzen.GetText=Synonym.GetSelText Then PrintLog " Meaning transfered into Replace edit field"
- if Ersetzen.GetText<>Synonym.GetSelText Then WarnLog " Replacement should have been: '" + Bedeutung.GetSelText + "' but it is '" + Ersetzen.GetText+"'"
- endif
- Thesaurus.Cancel
- else
- warnlog " thesaurus didn't come up, that's bad :-("
- end if
- catch
- warnLog " No Thesaurus available ??! check if options western has smth selected !! !TL!"
- endcatch
- Call hCloseDocument '/// Close document ///'
-
-endcase 'tiToolsThesaurus
+ printlog "the text was successfull replaced"
+ endif
+ else
+ warnlog "thesaurus didn't come up."
+ end if
+
+ Call hCloseDocument
+
+endcase
+'-------------------------------------------------------------------------------
+testcase tiToolsThesaurusWithoutText
+
+ printlog "Thesaurus without any word in the document"
+ Call hNewDocument
+ try
+ ExtrasThesaurusDraw
+ catch
+ printlog "the Thesaurus is correctly not available"
+ call hCloseDocument
+ goto endsub
+ endcatch
+
+ WarnLog "If no word is in the document, Thesaurus shouldn't be available"
+ Kontext "Thesaurus"
+ if Thesaurus.Exists then
+ Thesaurus.Cancel
+ endif
+
+ Call hCloseDocument
+
+
+endcase
+'-------------------------------------------------------------------------------
+testcase tiToolsThesaurusContextMenu
+
+ Dim sWord as string
+ Dim sExt as string
+ Dim iItemCount as Integer
+
+ 'for normal text, the thesaurus is enabled,
+ 'if the format->character->language of the word has a thesaurus
+ 'unfortunately in textboxes this doesn't work, you can give the word a langauge,
+ 'but this is been ignored by our thesaurus
+ 'so especially for asian languages you have to set a default language in the options,
+ 'to be able to use the thesaurus there - fallback to englisch,
+ 'because there is no thesaurus for cjk languages
+
+ 'As long as OOo has no modules for that, disabled
+ if gOOO = True then
+ printlog "No spellchecking in OOo"
+ goto endsub
+ endif
+
+ 'First we make sure we test a language where Thesaurus
+ select case iSprache
+ case 01 : sWord = "Hello"
+ case 03 : sWord = "Alo"
+ case 07 : printlog "- No Thesaur for Russian available"
+ goto endsub
+ case 30 : Printlog "- No Thesaurus available !"
+ goto endsub
+ case 31 : sWord = "Guiten"
+ case 33 : sWord = "Bonjour"
+ case 34 : sWord = "Hola"
+ case 35 : Printlog "- No Thesaurus available !"
+ goto endsub
+ case 36 : Printlog "- No Thesaurus available !"
+ goto endsub
+ case 37 : Printlog "- No Thesaurus available !"
+ goto endsub
+ case 39 : sWord = "Ciao"
+ case 42 : Printlog "- No Thesaurus available !"
+ goto endsub
+ case 45 : sWord = "Hej"
+ case 46 : sWord = "Välkommen"
+ case 47 : Printlog "- No Thesaurus available !"
+ goto endsub
+ case 48 : Printlog "- No Thesaurus in Polish!"
+ goto endsub
+ case 49 : sWord = "Hallo"
+ case 50 : sWord = "Prosojnica"
+ case 51 : Printlog "- No Thesaurus available !"
+ goto endsub
+ case 55 : Printlog "- No Thesaurus in Brazilian!"
+ goto endsub
+ case 90 : Printlog "- No Thesaurus available !"
+ goto endsub
+
+ case else : if bAsianLan then
+ hSetSpellHypLanguage
+ sWord = "Hello"
+ else
+ Warnlog "For the language " + iSprache +" nothing is prepared yet: insert text here"
+ sWord = "Hello"
+ endif
+ end select
+
+ PrintLog "Thesaurus with 1 word: " + sWord
+
+ if( Ucase(gApplication) = "DRAW" ) then
+ sExt = ".odg"
+ Kontext "DrawDocument"
+ elseif( Ucase(gApplication) = "IMPRESS" ) then
+ sExt = ".odp"
+ Kontext "ImpressDocument"
+ endif
+
+ Call hFileOpen (gTesttoolpath + "graphics\required\input\recht_" + iSprache + sExt)
+
+ Call hTextrahmenErstellen (sWord,20,20,50,30)
+ sleep 1
+
+ printlog "select the word"
+ hTypeKeys "<Home><SHIFT END>"
+
+ hOpenContextMenu
+
+ hMenuSelectNr(14) ' the synonyms
+ iItemCount = hMenuItemGetCount
+ printlog iItemCount
+ if(iItemCount <= 2 ) then ' none and Thesaurus item
+ warnlog "There should be a synonymus display for the word '" + sWord + "' but it isn't."
+ endif
+
+ hMenuSelectNr(iItemCount) ' the last item
+
+ Kontext "Thesaurus"
+ if Thesaurus.Exists(5) then
+ printlog "Thesaurus dialog appear from the context menu"
+ Thesaurus.Cancel
+ else
+ warnlog "the thesaurus dialog does not appear fro mthe context menu of a selected word"
+ endif
+
+ call hCloseDocument
+endcase
'-------------------------------------------------------------------------------
testcase tiToolsHyphenation1
printlog " - Hyphenation without any text"
Call hNewDocument '/// New impress document ///'
sleep 3
- ExtrasSilbentrennungDraw '/// Try Silbentrennung with empty document ///'
- Kontext "Silbentrennung"
- if Silbentrennung.Exists(1) = True Then
+ ToolsLanguageHyphenationDraw '/// Try with empty document ///'
+ Kontext "Hyphenation"
+ if Hyphenation.Exists(1) = True Then
Warnlog " - Dialog ist da"
- Silbentrennung.Cancel
+ Hyphenation.Cancel
else
Printlog " - Hyphenation activated"
end if
@@ -200,11 +360,11 @@ testcase tiToolsHyphenation1
endif
end select
hTypeKeys "<Home>"
- ExtrasSilbentrennungDraw '/// Try Silbentrennung ///'
- Kontext "Silbentrennung"
- if Silbentrennung.Exists =True Then
+ ToolsLanguageHyphenationDraw '/// Try ///'
+ Kontext "Hyphenation"
+ if Hyphenation.Exists =True Then
Warnlog "Dialog exists"
- Silbentrennung.Cancel
+ Hyphenation.Cancel
else
Kontext "Active"
if Active.Exists then Active.OK
@@ -219,7 +379,8 @@ testcase tiToolsHyphenation2
dim iWaitIndex as integer
dim sExt as string
- Dim i : Dim DasWort : Dim DasWort2 : Dim DasWort3 : Dim DasWort4 : Dim DasWort5 : Dim DasWort6 : Dim DasWort7
+ Dim i : Dim DasWort2 : Dim DasWort3 : Dim DasWort4 : Dim DasWort5 : Dim DasWort6 : Dim DasWort7
+ Dim DasWort as string
dim sDraw as string
dim sFile as string
PrintLog "- Tools/Hyphenation2"
@@ -275,7 +436,7 @@ testcase tiToolsHyphenation2
EditCopy
sDraw = GetClipboardText()
EditSelectAll '/// Select whole text ///'
- ExtrasSilbentrennungDraw '/// Run Hyphenation ///'
+ ToolsLanguageHyphenationDraw '/// Run Hyphenation ///'
gMouseClick 50,50
hTypeKeys "<MOD1 END><HOME><MOD1 SHIFT RIGHT>" '/// Select part of text and compare it with original text at this place ///'
sleep 3
diff --git a/testautomation/graphics/optional/includes/global/id_006.inc b/testautomation/graphics/optional/includes/global/id_006.inc
index a32bbd962ad5..d959d1cf828f 100644
--- a/testautomation/graphics/optional/includes/global/id_006.inc
+++ b/testautomation/graphics/optional/includes/global/id_006.inc
@@ -146,9 +146,9 @@ endcase
testcase tiToolsHyphenation
Call hNewDocument
- ExtrasSilbentrennungDraw
+ ToolsLanguageHyphenationDraw
WaitSlot (2000) 'sleep 2
- ExtrasSilbentrennungDraw
+ ToolsLanguageHyphenationDraw
Call hCloseDocument
endcase
diff --git a/testautomation/graphics/optional/includes/impress/i_animation.inc b/testautomation/graphics/optional/includes/impress/i_animation.inc
index af2a67956e03..471ef1fada85 100644
--- a/testautomation/graphics/optional/includes/impress/i_animation.inc
+++ b/testautomation/graphics/optional/includes/impress/i_animation.inc
@@ -39,7 +39,8 @@
testcase tExtrasAnimation
Printlog "- Tools/Animation"
Dim i
- Call hNewDocument '/// New impress document ///'
+ Call hNewDocument
+ Call sSelectEmptyLayout '/// New impress document ///'
sleep 2
InsertGraphicsFromFile '/// insert graphic file (sample.bmp) ///'
sleep 1
diff --git a/testautomation/graphics/optional/includes/impress/i_pengine2.inc b/testautomation/graphics/optional/includes/impress/i_pengine2.inc
index 6d825baedac5..f10b77f30db3 100644
--- a/testautomation/graphics/optional/includes/impress/i_pengine2.inc
+++ b/testautomation/graphics/optional/includes/impress/i_pengine2.inc
@@ -380,6 +380,7 @@ testcase tiPengine2ObjectsGetsEffects
printlog "Create a new presentation."
Call hNewDocument
+ Call sSelectEmptyLayout
sleep (1)
kontext "Toolbar"
diff --git a/testautomation/graphics/optional/includes/impress/i_saveloadlayout.inc b/testautomation/graphics/optional/includes/impress/i_saveloadlayout.inc
index f8a2b165b104..e5dbf1f53cc2 100644
--- a/testautomation/graphics/optional/includes/impress/i_saveloadlayout.inc
+++ b/testautomation/graphics/optional/includes/impress/i_saveloadlayout.inc
@@ -30,374 +30,146 @@
'* short description: Save & Load testing of Layout -templates.
'*
'**************************************************************************************
-' #1 tSaveLoadLayoutEmpty
-' #1 tSaveLoadLayoutOLE
-' #1 tSaveLoadLayoutText
-' #1 tSaveLoadLayoutOutline
-' #1 tSaveLoadLayoutPicture
-' #1 tSaveLoadLayoutChart
-' #1 tSaveLoadLayoutSpreadsheet
-'\*************************************************************************************
testcase tSaveLoadLayoutEmpty
- goto endsub
Dim NewFileDir as String
NewFileDir = ConvertPath (gOfficePath + "user\work\LayoutTest\")
- '/// Create New folder in the Work-directory ///'
+ printlog "Create New folder in the Work-directory"
printlog " Will try to create the directory: " + NewFileDir
app.mkdir NewFileDir
- '/// Create a new document, add an empty Layout, Save the document in all available Formats, and open the saved files. ///'
+ printlog "Create a new document, add an empty Layout, Save the document in all available Formats, and open the saved files."
- '/// Make new Presentation ///'
+ printlog "Make new Presentation"
gApplication = "IMPRESS"
Call hNewDocument
- '/// Choose and Insert an empty Layout. ///'
+ printlog "Choose and Insert an empty Layout."
printlog " Choose and Insert an empty Layout."
FormatModifyPage
sleep (1)
kontext "Tasks"
- LayoutsPreview.TypeKeys "<HOME>"
- kontext "Pagelayout_UndoDeleteWarning"
- if Pagelayout_UndoDeleteWarning.exists then
+ LayoutsPreview.TypeKeys "<HOME>"
+ kontext "Pagelayout_UndoDeleteWarning"
+ if Pagelayout_UndoDeleteWarning.exists then
Pagelayout_UndoDeleteWarning.ok
end if
kontext "Tasks"
- '/// Press "Enter" to use the layout on the current slide ///'
+ printlog "Press Enter to use the layout on the current slide"
LayoutsPreview.TypeKeys "<RETURN>"
sleep (5)
- '/// Save the document in different formats... ///'
- '/// Close the file. ///'
- '/// Load the different files. ///'
+ printlog "Save the document in different formats..."
+ printlog "Close the file."
+ printlog "Load the different files."
call fSaveLoadAllFormats (NewFileDir) 'Runs the Function below.
- '/// Delete the different files. ///'
+ printlog "Delete the different files."
printlog " Will try to delete the directory: " + NewFileDir
app.rmDir NewFileDir
printlog "tSaveLoadLayoutEmpty ended."
- '/// End the test ///'
+ printlog "End the test"
endcase 'tSaveLoadLayoutEmpty
'****************************************************************************************************
-testcase tSaveLoadLayoutOLE
+testcase tSaveLoadLayoutText
+ printlog "Testing layout with text."
Dim NewFileDir as String
NewFileDir = ConvertPath (gOfficePath + "user\work\LayoutTest\")
- '/// Create New folder in the Work-directory ///'
- printlog " Will try to create the directory: " + NewFileDir
+ printlog "Create New folder in the Work-directory"
+ printlog " Will try to create the directory: " + NewFileDir
app.mkdir NewFileDir
- '/// Create a new document, add a Layout with an OLE-field, Save the document in all available Formats, and open the saved files. ///'
+ printlog "Create a new document, add a Layout with a Textfield, Save the document in all available Formats, and open the saved files."
- '/// Make new Presentation ///'
+ printlog "Make new Presentation"
gApplication = "IMPRESS"
Call hNewDocument
- '/// Choose and Insert an Layout with an OLE. ///'
- printlog " Choose and Insert an Layout with an OLE."
+ printlog "Choose and Insert an Layout with a Text-field."
FormatModifyPage
sleep (1)
kontext "Tasks"
- LayoutsPreview.TypeKeys "<HOME>"
+ LayoutsPreview.TypeKeys "<HOME>"
kontext "Pagelayout_UndoDeleteWarning"
if Pagelayout_UndoDeleteWarning.exists then
Pagelayout_UndoDeleteWarning.ok
end if
kontext "Tasks"
- '/// select the OLE placeholder and activate it with [Return] ///'
- LayoutsPreview.TypeKeys ("<RIGHT>",13)
- sleep (1)
- LayoutsPreview.TypeKeys ("<Return>")
- sleep (1)
- kontext "DocumentImpress"
- DocumentImpress.TypeKeys ("<TAB><TAB><TAB>")
- DocumentImpress.TypeKeys ("<Return>")
- try
- sleep (2)
- kontext "OLEObjektInsert"
- sleep (1)
- OLEObjektInsert.Cancel
- Printlog " Correctly inserted a layout with an 'Insert OLE-Object'-frame."
- catch
- warnlog "Ole wasn't selected :-("
- CALL hCloseDocument
- Goto Endsub
- endcatch
- sleep (5)
-
- '/// Save the document in all available formats... ///'
- '/// Close the file. ///'
- '/// Load the different files. ///'
- call fSaveLoadAllFormats (NewFileDir) 'Runs the Function below.
-
- '/// Delete the different files. ///'
- printlog " Will try to delete the directory: " + NewFileDir
- app.rmDir NewFileDir
-
- printlog "tSaveLoadLayoutOLE ended."
- '/// End the test ///'
-endcase 'tSaveLoadLayoutOLE
-
-'****************************************************************************************************
-
-testcase tSaveLoadLayoutText
- Dim NewFileDir as String
- NewFileDir = ConvertPath (gOfficePath + "user\work\LayoutTest\")
-
- '/// Create New folder in the Work-directory ///'
- printlog " Will try to create the directory: " + NewFileDir
- app.mkdir NewFileDir
-
- '/// Create a new document, add a Layout with a Textfield, Save the document in all available Formats, and open the saved files. ///'
-
- '/// Make new Presentation ///'
- gApplication = "IMPRESS"
- Call hNewDocument
-
- '/// Choose and Insert an Layout with a Text-field. ///'
- printlog " Choose and Insert an Layout with a Text-field."
- FormatModifyPage
+ printlog "select the Text placeholder and activate it with [Return]"
+ LayoutsPreview.TypeKeys ("<RIGHT>",5)
sleep (1)
- kontext "Tasks"
- LayoutsPreview.TypeKeys "<HOME>"
- kontext "Pagelayout_UndoDeleteWarning"
- if Pagelayout_UndoDeleteWarning.exists then
- Pagelayout_UndoDeleteWarning.ok
- end if
- kontext "Tasks"
- '/// select the Text placeholder and activate it with [Return] ///'
- LayoutsPreview.TypeKeys ("<RIGHT>")
- sleep (1)
- LayoutsPreview.TypeKeys ("<Return>")
- sleep (1)
- kontext "DocumentImpress"
- DocumentImpress.TypeKeys ("<TAB><TAB><TAB>")
- DocumentImpress.TypeKeys ("<Return>")
- DocumentImpress.TypeKeys ("<ESCAPE>")
-' LayoutsPreview.TypeKeys "<RETURN>"
+ LayoutsPreview.TypeKeys ("<Return>")
+ sleep (1)
+ kontext "DocumentImpress"
+ DocumentImpress.TypeKeys ("<TAB>")
+ DocumentImpress.TypeKeys ("<Return>")
+ DocumentImpress.TypeKeys ("<ESCAPE>")
sleep (5)
- '/// Save the document in all available formats... ///'
- '/// Close the file. ///'
- '/// Load the different files. ///'
+ printlog "Save the document in all available formats..."
+ printlog "Close the file."
+ printlog "Load the different files."
call fSaveLoadAllFormats (NewFileDir) 'Runs the Function below.
- '/// Delete the different files. ///'
- printlog " Will try to delete the directory: " + NewFileDir
+ printlog "Delete the different files."
+ printlog "Will try to delete the directory: " + NewFileDir
app.rmDir NewFileDir
printlog "tSaveLoadLayoutText ended."
- '/// End the test ///'
endcase 'tSaveLoadLayoutText
'****************************************************************************************************
-testcase tSaveLoadLayoutOutline
+testcase tSaveLoadLayoutContent
Dim NewFileDir as String
NewFileDir = ConvertPath (gOfficePath + "user\work\LayoutTest\")
- '/// Create New folder in the Work-directory ///'
+ printlog "Create New folder in the Work-directory"
printlog " Will try to create the directory: " + NewFileDir
app.mkdir NewFileDir
- '/// Create a new document, add a Layout with an Outline-field, Save the document in all available Formats, and open the saved files. ///'
+ printlog "Create a new document, add a Layout with a Content-field, Save the document in all available Formats, and open the saved files."
- '/// Make new Presentation ///'
+ printlog "Make new Presentation"
gApplication = "IMPRESS"
Call hNewDocument
- '/// Choose and Insert an Layout with a Outline-field. ///'
- printlog " Choose and Insert an Layout with a Outline-field."
+ printlog "Choose and Insert an Layout with a Content-field."
FormatModifyPage
sleep (1)
kontext "Tasks"
- LayoutsPreview.TypeKeys "<HOME>"
- kontext "Pagelayout_UndoDeleteWarning"
- if Pagelayout_UndoDeleteWarning.exists then
+ LayoutsPreview.TypeKeys "<HOME>"
+ kontext "Pagelayout_UndoDeleteWarning"
+ if Pagelayout_UndoDeleteWarning.exists then
Pagelayout_UndoDeleteWarning.ok
end if
kontext "Tasks"
- '/// select the Outline placeholder and activate it with [Return] ///'
- LayoutsPreview.TypeKeys ("<RIGHT>",3)
- sleep (1)
- LayoutsPreview.TypeKeys ("<Return>")
- sleep (1)
- kontext "DocumentImpress"
- DocumentImpress.TypeKeys ("<TAB><TAB><TAB>")
- DocumentImpress.TypeKeys ("<Return>")
- DocumentImpress.TypeKeys ("<ESCAPE>")
- sleep (5)
-
- '/// Save the document in all available formats... ///'
- '/// Close the file. ///'
- '/// Load the different files. ///'
- call fSaveLoadAllFormats (NewFileDir) 'Runs the Function below.
-
- '/// Delete the different files. ///'
- printlog " Will try to delete the directory: " + NewFileDir
- app.rmDir NewFileDir
-
- printlog "tSaveLoadLayoutOutline ended."
- '/// End the test ///'
-endcase 'tSaveLoadLayoutOutline
-
-'****************************************************************************************************
-
-testcase tSaveLoadLayoutPicture
- Dim NewFileDir as String
- NewFileDir = ConvertPath (gOfficePath + "user\work\LayoutTest\")
-
- '/// Create New folder in the Work-directory ///'
- printlog " Will try to create the directory: " + NewFileDir
- app.mkdir NewFileDir
-
- '/// Create a new document, add a Layout with a Graphic-field, Save the document in all available Formats, and open the saved files. ///'
-
- '/// Make new Presentation ///'
- gApplication = "IMPRESS"
- Call hNewDocument
-
- '/// Choose and Insert an Layout with a Graphic-field. ///'
- printlog " Choose and Insert an Layout with a Graphic-field."
- FormatModifyPage
+ printlog "select the Picture placeholder and activate it with [Return]"
+ LayoutsPreview.TypeKeys ("<RIGHT>",2)
sleep (1)
- kontext "Tasks"
- LayoutsPreview.TypeKeys "<HOME>"
- kontext "Pagelayout_UndoDeleteWarning"
- if Pagelayout_UndoDeleteWarning.exists then
- Pagelayout_UndoDeleteWarning.ok
- end if
- kontext "Tasks"
- '/// select the Picture placeholder and activate it with [Return] ///'
- LayoutsPreview.TypeKeys ("<RIGHT>",8)
- sleep (1)
- LayoutsPreview.TypeKeys ("<Return>")
- sleep (1)
- kontext "DocumentImpress"
- DocumentImpress.TypeKeys ("<TAB><TAB><TAB>")
- DocumentImpress.TypeKeys ("<Return>")
- DocumentImpress.TypeKeys ("<ESCAPE>")
- sleep (5)
+ LayoutsPreview.TypeKeys ("<Return>")
+ sleep (1)
+ kontext "DocumentImpress"
+ DocumentImpress.TypeKeys ("<TAB><TAB>")
+ DocumentImpress.TypeKeys ("<Return>")
+ DocumentImpress.TypeKeys ("<ESCAPE>")
+ sleep (5)
- '/// Save the document in all available formats. ///'
- '/// Close the file. ///'
- '/// Load the different files. ///'
+ printlog "Save the document in all available formats."
+ printlog "Close the file."
+ printlog "Load the different files."
call fSaveLoadAllFormats (NewFileDir) 'Runs the Function below.
- '/// Delete the different files. ///'
+ printlog "Delete the different files."
printlog " Will try to delete the directory: " + NewFileDir
app.rmDir NewFileDir 'ConvertPath (gOfficePath + "user\work\LayoutTest\")
printlog "tSaveLoadLayoutPicture ended."
- '/// End the test ///'
endcase 'tSaveLoadLayoutPicture
'****************************************************************************************************
-
-testcase tSaveLoadLayoutChart
- Dim NewFileDir as String
- NewFileDir = ConvertPath (gOfficePath + "user\work\LayoutTest\")
-
- '/// Create New folder in the Work-directory ///'
- printlog " Will try to create the directory: " + NewFileDir
- app.mkdir NewFileDir
-
- '/// Create a new document, add a Layout for a Chart, Save the document in all available formats, and open the saved files. ///'
-
- '/// Make new Presentation ///'
- gApplication = "IMPRESS"
- Call hNewDocument
-
- '/// Choose and Insert an Layout with a Chart-field. ///'
- printlog " Choose and Insert an Layout with a Chart-field."
- FormatModifyPage
- sleep (1)
- kontext "Tasks"
- LayoutsPreview.TypeKeys "<HOME>"
- kontext "Pagelayout_UndoDeleteWarning"
- if Pagelayout_UndoDeleteWarning.exists then
- Pagelayout_UndoDeleteWarning.ok
- end if
- kontext "Tasks"
- '/// select the Chart placeholder and activate it with [Return] ///'
- LayoutsPreview.TypeKeys ("<RIGHT>",6)
- sleep (1)
- LayoutsPreview.TypeKeys ("<Return>")
- sleep (1)
- kontext "DocumentImpress"
- DocumentImpress.TypeKeys ("<TAB><TAB><TAB>")
- DocumentImpress.TypeKeys ("<Return>")
- DocumentImpress.TypeKeys ("<ESCAPE>")
- sleep (5)
-
- '/// Save the document in all available formats. ///'
- '/// Close the file. ///'
- '/// Load the different files. ///'
- call fSaveLoadAllFormats (NewFileDir) 'Runs the Function below.
-
- '/// Delete the different files. ///'
- printlog " Will try to delete the directory: " + NewFileDir
- app.rmDir NewFileDir
-
- printlog "tSaveLoadLayoutChart ended."
- '/// End the test ///'
-endcase 'tSaveLoadLayoutChart
-
-'****************************************************************************************************
-
-testcase tSaveLoadLayoutSpreadsheet
- Dim NewFileDir as String
- NewFileDir = ConvertPath (gOfficePath + "user\work\LayoutTest\")
-
- '/// Create New folder in the Work-directory ///'
- printlog " Will try to create the directory: " + NewFileDir
- app.mkdir NewFileDir
-
- '/// Create a new document, add a Layout containing a Spreadsheet, Save the document in all available Formats, and open the saved files. ///'
-
- '/// Make new Presentation ///'
- gApplication = "IMPRESS"
- Call hNewDocument
-
- '/// Choose and Insert an Layout with a Spreadsheet-field. ///'
- printlog " Choose and Insert an Layout with a Spreadsheet-field."
- FormatModifyPage
- sleep 1
- kontext "Tasks"
- LayoutsPreview.TypeKeys "<HOME>"
- kontext "Pagelayout_UndoDeleteWarning"
- if Pagelayout_UndoDeleteWarning.exists then
- Pagelayout_UndoDeleteWarning.ok
- end if
- kontext "Tasks"
- '/// select the Spreadsheet placeholder and activate it with [Return] ///'
- LayoutsPreview.TypeKeys ("<RIGHT>",7)
- sleep (1)
- LayoutsPreview.TypeKeys ("<Return>")
- sleep (1)
- kontext "DocumentImpress"
- DocumentImpress.TypeKeys ("<TAB><TAB><TAB>")
- DocumentImpress.TypeKeys ("<Return>")
- DocumentImpress.TypeKeys ("<ESCAPE>")
- sleep (5)
-
- '/// Save the document in all available formats. ///'
- '/// Close the file. ///'
- '/// Load the different files. ///'
- call fSaveLoadAllFormats (NewFileDir) 'Runs the Function below.
-
- '/// Delete the different files. ///'
- printlog " Will try to delete the directory: " + NewFileDir
- app.rmDir NewFileDir 'ConvertPath (gOfficePath + "user\work\LayoutTest\")
-
- printlog "tSaveLoadLayoutSpreadsheet ended."
- '/// End the test ///'
-endcase 'tSaveLoadLayoutSpreadsheet
-
-'-------------------------------------------------------------------------------
-
diff --git a/testautomation/graphics/optional/includes/impress/i_slidecopy.inc b/testautomation/graphics/optional/includes/impress/i_slidecopy.inc
index d7ee257d1bb2..73971c2e889f 100644
--- a/testautomation/graphics/optional/includes/impress/i_slidecopy.inc
+++ b/testautomation/graphics/optional/includes/impress/i_slidecopy.inc
@@ -43,7 +43,8 @@ testcase tiSlideCopyNewPresentation
Dim value13 as string
printlog "This test copies one slide from one presentation to another."
printlog "Make new presentation"
- Call hNewDocument
+ Call hNewDocument
+ Call sSelectEmptyLayout
printlog "Insert three objects: Connector, Door-plate, and Smiley."
printlog "First we Insert a Connector."
@@ -264,11 +265,10 @@ testcase tiSlideCopyDuplicate
Dim value12 as string
Dim value13 as string
dim i as integer
- '/// Make a duplicate of a slide. In the same presentation ///'
- '/// Make new presentation ///'
+ printlog "Make new presentation"
Call hNewDocument
- '/// Insert three objects: Connector, Door-plate, and Smiley ///'
- '1 Insert Connector.
+ Call sSelectEmptyLayout
+ printlog "Insert Connector."
kontext "Toolbar"
sleep 1
try
@@ -289,11 +289,11 @@ testcase tiSlideCopyDuplicate
hTypeKeys "<TAB>", 1
sleep (1)
- 'rename object
+ printlog "rename object"
DocumentImpress.TypeKeys "<SHIFT F10>"
sleep 1
- 'Choose rename.
+ printlog "Choose rename"
if hMenuFindSelect(27027, true, 14) = false then
Warnlog "Context-Menu-entry `Rename` was not found. Therefore the test ends."
Call hCloseDocument
@@ -307,11 +307,11 @@ testcase tiSlideCopyDuplicate
kontext "DocumentImpress"
hMouseClick DocumentImpress, 90, 90
- '2 Insert Door-plate.
+ printlog "2 Insert Door-plate"
kontext "Toolbar"
sleep 1
try
- StarShapes.TearOff ' insert connector
+ StarShapes.TearOff
catch
warnlog "bug for GH from FHA; .tearoff doesnt tell success"
endcatch
@@ -328,11 +328,11 @@ testcase tiSlideCopyDuplicate
hTypeKeys "<TAB>", 2
sleep (1)
- 'Rename object
+ printlog "Rename object"
kontext "DocumentImpress"
DocumentImpress.TypeKeys "<SHIFT F10>"
sleep (1)
- 'Choose rename.
+ printlog "Choose rename."
if hMenuFindSelect(27027, true, 15) = false then
Warnlog "Context-Menu-entry `Rename` was not found. Therefore the test ends."
Call hCloseDocument
@@ -346,11 +346,11 @@ testcase tiSlideCopyDuplicate
kontext "DocumentImpress"
hMouseClick DocumentImpress, 90, 90
- '3 Insert Smiley.
+ printlog "Insert Smiley."
kontext "Toolbar"
sleep 1
try
- SymbolShapes.TearOff ' insert connector
+ SymbolShapes.TearOff
catch
warnlog "bug for GH from FHA; .tearoff doesnt tell success"
endcatch
@@ -366,10 +366,10 @@ testcase tiSlideCopyDuplicate
hTypeKeys "<TAB>", 3
sleep (1)
- 'rename object
+ printlog "rename object"
DocumentImpress.TypeKeys "<SHIFT F10>"
sleep (1)
- 'Choose rename.
+ printlog "Choose rename"
if hMenuFindSelect(27027, true, 15) = false then
Warnlog "Context-Menu-entry `Rename` was not found. Therefore the test ends."
Call hCloseDocument
@@ -383,7 +383,7 @@ testcase tiSlideCopyDuplicate
kontext "DocumentImpress"
hMouseClick DocumentImpress, 90, 90
- '/// Close the bars we opened before. ///'
+ printlog "Close the bars we opened before."
kontext "Connectorsbar"
if Connectorsbar.Exists then Connectorsbar.Close
kontext "SymbolShapes"
@@ -391,22 +391,22 @@ testcase tiSlideCopyDuplicate
kontext "StarShapes"
if StarShapes.Exists then StarShapes.Close
- '/// Copy the slide to the clipboard ///'
+ printlog "Copy the slide to the clipboard"
kontext "Slides"
SlidesControl.TypeKeys "<PAGEUP>"
sleep (1)
SlidesControl.TypeKeys "<SHIFT F10>"
sleep (1)
- 'Choose `Copy`
+ printlog "Choose `Copy`"
if hMenuFindSelect(5711, true, 10) = false then
Warnlog "Context-Menu-entry `Copy` was not found.Therefore the test ends."
Call hCloseDocument
Goto Endsub
endif
- '/// Paste the content from the Clipboard ///'
+ printlog "Paste the content from the Clipboard"
kontext "Slides"
- 'open context-menu choose 'paste'
+ printlog "open context-menu choose 'paste'"
EditPaste
@@ -416,31 +416,31 @@ testcase tiSlideCopyDuplicate
InsertPaste.OK
endif
sleep (2)
- '/// Check if we have two slides, and that the objects exists, and has the right values ///'
+ printlog "Check if we have two slides, and that the objects exists, and has the right values "
kontext "Slides"
SlidesControl.TypeKeys "<PAGEUP>"
- for i = 1 to 2 ' we have two slides, so we do this two times to check everything.
+ for i = 1 to 2
Printlog "Checking objects the " + i + " + time."
kontext "DocumentImpress"
hMouseClick DocumentImpress, 90, 90
- DocumentImpress.TypeKeys "<TAB>" 'Select the first object.
+ DocumentImpress.TypeKeys "<TAB>"
sleep (1)
- 'Bring up the kontext-menu for the object
+
DocumentImpress.TypeKeys "<SHIFT F10>"
sleep 1
- 'Choose rename.
+ printlog "Choose rename"
if hMenuFindSelect(27027, true, 14) = false then
Warnlog "Context-Menu-entry `Rename` was not found. Therefore the test ends."
Call hCloseDocument
Goto Endsub
endif
- 'Read out what the name is, and check if its correct.
- kontext "NameDlgObject" '"LinieName" "NameDlgPage"
+ printlog "Read out what the name is, and check if its correct."
+ kontext "NameDlgObject"
value1 = NameField.GetText
- NameDlgObject.OK 'TypeKeys "<Enter>"
+ NameDlgObject.OK
if value1 = "First" then
printlog "First object was found correctly"
@@ -453,14 +453,14 @@ testcase tiSlideCopyDuplicate
sleep (1)
DocumentImpress.TypeKeys "<SHIFT F10>"
- 'Choose rename.
+ printlog "Choose rename"
if hMenuFindSelect(27027, true, 15) = false then
Warnlog "Context-Menu-entry `Rename` was not found. Therefore the test ends."
Call hCloseDocument
Goto Endsub
endif
- 'Read out what the name is, and check if its correct.
+ printlog "Read out what the name is, and check if its correct."
kontext "NameDlgObject"
value12 = NameField.GetText
NameDlgObject.OK
@@ -472,20 +472,21 @@ testcase tiSlideCopyDuplicate
endif
hTypeKeys "<ESCAPE>"
- hTypeKeys "<TAB>", 3 'Select the third object.
+ printlog "Select the third object."
+ hTypeKeys "<TAB>", 3
sleep (1)
- 'Bring up the kontext-menu for the object
+ printlog "Bring up the kontext-menu for the object"
DocumentImpress.TypeKeys "<SHIFT F10>"
sleep 1
- 'Choose rename.
+ printlog "Choose rename"
if hMenuFindSelect(27027, true, 15) = false then
Warnlog "Context-Menu-entry `Rename` was not found. Therefore the test ends."
Call hCloseDocument
Goto Endsub
endif
- 'Read out what the name is, and check if its correct.
+ printlog "Read out what the name is, and check if its correct."
kontext "NameDlgObject"
value13 = NameField.GetText
NameDlgObject.OK
@@ -499,7 +500,7 @@ testcase tiSlideCopyDuplicate
SlidesControl.TypeKeys "<DOWN>"
next i
- '/// Close Presentation. End testcase ///'
+ printlog " Close Presentation. End testcase "
Call hCloseDocument
endcase 'tiSlidecopyDuplicate
diff --git a/testautomation/graphics/optional/includes/impress/i_slidelayer.inc b/testautomation/graphics/optional/includes/impress/i_slidelayer.inc
index d7ee085de381..597762e8cf7e 100644
--- a/testautomation/graphics/optional/includes/impress/i_slidelayer.inc
+++ b/testautomation/graphics/optional/includes/impress/i_slidelayer.inc
@@ -49,6 +49,7 @@ testcase tiInsertExpandSlide
'/// open application ///'
Call hNewDocument
+ Call sSelectEmptyLayout
'/// create presupposition ///
'///+ View->Master View->Outline View ///'
ViewWorkspaceOutlineView
diff --git a/testautomation/graphics/optional/includes/impress/i_slideshow2.inc b/testautomation/graphics/optional/includes/impress/i_slideshow2.inc
index 0bc7e9a80654..1b88116f1b5a 100644
--- a/testautomation/graphics/optional/includes/impress/i_slideshow2.inc
+++ b/testautomation/graphics/optional/includes/impress/i_slideshow2.inc
@@ -44,7 +44,8 @@ testcase tPraesentationAnimation
Dim i
Printlog "- Slideshow/Animation"
- Call hNewDocument '/// new document ///'
+ Call hNewDocument
+ Call sSelectEmptyLayout '/// new document ///'
sleep 2
InsertGraphicsFromFile '/// insert graphic ///'
Kontext "OeffnenDlg"
@@ -411,6 +412,7 @@ testcase tSlideShowInteraction
'/// open application ///'
Call hNewDocument
+ Call sSelectEmptyLayout
sleep 5
setStartCurrentPage(TRUE) '/// Set "start with current page to ON ///'
@@ -839,6 +841,8 @@ endcase
testcase tAendernObjektBenennen
Printlog "- Context/Name object"
Call hNewDocument
+ Call sSelectEmptyLayout '/// new document ///'
+
sleep 1
Kontext "DocumentImpress"
if NOT DocumentImpress.Exists then
diff --git a/testautomation/graphics/optional/includes/impress/i_slideshow3.inc b/testautomation/graphics/optional/includes/impress/i_slideshow3.inc
index 0f23f412bddf..0cf806cd74cd 100644
--- a/testautomation/graphics/optional/includes/impress/i_slideshow3.inc
+++ b/testautomation/graphics/optional/includes/impress/i_slideshow3.inc
@@ -43,6 +43,7 @@
testcase tExtrasInteraktion
Printlog " - SlideShow/Interaction"
Call hNewDocument
+ Call sSelectEmptyLayout
sleep 1
Call hTextrahmenErstellen ("Seite 1",10,10,40,40) '/// create textbox ///'
SlideShowPresentationSettings '/// Set slide show settings ///'
@@ -77,6 +78,7 @@ testcase tExtrasInteraktion
endcatch
hCloseDocument
Call hNewDocument
+ Call sSelectEmptyLayout
Call hRechteckErstellen (50,50,80,80) '/// create rectangle ///'
SlideShowInteraction
Kontext "Interaktion"
diff --git a/testautomation/graphics/optional/includes/impress/i_us2_present.inc b/testautomation/graphics/optional/includes/impress/i_us2_present.inc
index a1c7ab18acb6..6c8fede6a530 100644
--- a/testautomation/graphics/optional/includes/impress/i_us2_present.inc
+++ b/testautomation/graphics/optional/includes/impress/i_us2_present.inc
@@ -168,6 +168,7 @@ testcase i_us2_pres1
SlidesControl.TypeKeys "<HOME>"
SlidesControl.TypeKeys "<PAGEDOWN>", 10
SlidesControl.TypeKeys "<RETURN>"
+call sSelectEmptyLayout
printlog "Insert Smiley, + two circles around the eyes, + two new pupils,"
printlog "placed at some interesteing place inside the circles."
Kontext "Toolbar"
@@ -228,8 +229,6 @@ testcase i_us2_pres1
InsertSlide
printlog " Inserted new slide."
kontext "DocumentImpress"
- EditSelectAll
- DocumentImpress.TypeKeys "<DELETE>"
printlog "Bla bla about everything..."
call hTextrahmenErstellen ("Bla bla about everything...",20,20,70,30)
@@ -237,8 +236,6 @@ testcase i_us2_pres1
InsertSlide
printlog " Inserted new slide."
kontext "DocumentImpress"
- EditSelectAll
- DocumentImpress.TypeKeys "<DELETE>"
printlog "Write text: Q & A"
call hTextrahmenErstellen ("Q & A",20,20,70,30)
DocumentImpress.TypeKeys "<SHIFT HOME>"
@@ -247,8 +244,7 @@ testcase i_us2_pres1
printlog "Add a new slide."
InsertSlide
kontext "DocumentImpress"
- EditSelectAll
- DocumentImpress.TypeKeys "<DELETE>"
+
printlog "Thanks for listening, time for coffee... (ending)"
call hTextrahmenErstellen ("Class dismissed...",20,20,70,30)
diff --git a/testautomation/graphics/optional/includes/impress/i_us_present.inc b/testautomation/graphics/optional/includes/impress/i_us_present.inc
index d161ab4f9de2..26a17b3a80be 100755..100644
--- a/testautomation/graphics/optional/includes/impress/i_us_present.inc
+++ b/testautomation/graphics/optional/includes/impress/i_us_present.inc
@@ -40,68 +40,102 @@
'\********************************************************************
testcase i_us_presentation1
- dim iPictures as integer
+ dim iPictures as integer
dim PresentationFile1 as string
PresentationFile1 = ConvertPath ((ConvertPath (gOfficePath + "user\work\PowerPes1.odp")))
printlog "New impress document"
Call hNewDocument
- WaitSlot (2000)
- kontext "DocumentImpress"
+ Call sSelectEmptyLayout
+ WaitSlot (2000)
+ kontext "DocumentImpress"
+ printlog "Add second Master-Page "
+ ViewMasterPage
+ kontext "Slides"
+ SlidesControl.OpenContextMenu(true)
+ sleep (2)
+ printlog "New master"
+ MenuSelect(MenuGetItemID(1))
+ sleep (1)
+ ViewMasterPage
+ kontext "Slides"
+ SlidesControl.OpenContextMenu(true)
+ sleep (2)
+ MenuSelect(MenuGetItemID(1)) 'New Master
+ sleep (1)
+ printlog " Inserted second Master-Slide"
- printlog "Add second Master-Page"
- ViewMasterPage
- kontext "Slides"
- SlidesControl.OpenContextMenu(true)
- sleep (2)
- MenuSelect(MenuGetItemID(1)) 'New Master
- sleep (1)
- printlog " Inserted second Master-Slide"
-
- printlog "Background: picture (Gallery)"
- Kontext "Gallery"
- if Gallery.Exists(2) then
- warnlog " The Gallery was already visible. Check earlier ran tests for inconsistency."
- sleep (2)
- else
- ToolsGallery
- WaitSlot (2000)
- end if
+ printlog "set background to picture(Gallery)"
+ Kontext "Gallery"
+ if Gallery.Exists(2) then
+ warnlog " The Gallery was already visible. Check earlier ran tests for inconsistency."
+ sleep (2)
+ else
+ ToolsGallery
+ WaitSlot (2000)
+ end if
- if gOOO = TRUE then 'OpenOffice.org
- select case iSprache
- case 01 : iPictures = 1 'English
- case else : iPictures = 1 'Unknown
- warnlog "Please insert the entrienumbers for 'Backgrounds'. Language: " + iSprache
- end select
-
- else ' StarOffice...
- select case iSprache
- case 01 : iPictures = 21 'English
- case 07 : iPictures = 28 'Russian
- case 31 : iPictures = 04 'Netherlands
- case 33 : iPictures = 22 'French
- case 34 : iPictures = 12 'Spanish
- case 36 : iPictures = 17 'Hungaria
- case 39 : iPictures = 23 'Italian
- case 46 : iPictures = 09 'Swedish
- case 48 : iPictures = 20 'Polish
- case 49 : iPictures = 11 'German
- case 55 : iPictures = 16 'Portuguese
- case 81 : iPictures = 22 'Japanese
- case 82 : iPictures = 04 'Korean
- case 86 : iPictures = 06 'Simplified
- case 88 : iPictures = 17 'Traditional
- case else : iPictures = 21 'Unknown
+ if gOOO = TRUE then 'OpenOffice.org
+ select case iSprache
+ case 01 : iPictures = 1 'English
+ case else : iPictures = 1 'Unknown
warnlog "Please insert the entrienumbers for 'Backgrounds'. Language: " + iSprache
- end select
+ end select
+
+ else ' StarOffice...
+ select case iSprache
+ case 01 : iPictures = 21 'English
+ case 07 : iPictures = 28 'Russian
+ case 31 : iPictures = 04 'Netherlands
+ case 33 : iPictures = 22 'French
+ case 34 : iPictures = 12 'Spanish
+ case 36 : iPictures = 17 'Hungaria
+ case 39 : iPictures = 23 'Italian
+ case 46 : iPictures = 09 'Swedish
+ case 48 : iPictures = 20 'Polish
+ case 49 : iPictures = 11 'German
+ case 55 : iPictures = 16 'Portuguese
+ case 81 : iPictures = 22 'Japanese
+ case 82 : iPictures = 04 'Korean
+ case 86 : iPictures = 06 'Simplified
+ case 88 : iPictures = 17 'Traditional
+ case else : iPictures = 21 'Unknown
+ warnlog "Please insert the entrienumbers for 'Backgrounds'. Language: " + iSprache
+ end select
end if
-
- kontext "Gallery"
- Gallerys.Select (iPictures)
+ kontext "Gallery"
+ Gallerys.Select (iPictures)
+ View.TypeKeys "<HOME><RIGHT><RIGHT>"
+ printlog "OpenContextMenu"
+ View.TypeKeys "<SHIFT F10>"
+ sleep (2)
+ MenuSelect(MenuGetItemID(1))
+ sleep (2)
+ MenuSelect(MenuGetItemID(1))
+ sleep (2)
+ printlog "Check that we really got a copy of the object"
+ kontext "DocumentImpress"
+ DocumentImpress.OpenContextMenu(true)
+ sleep (2)
+ MenuSelect 27353
+ sleep (2)
+ Kontext "ExportierenDlg"
+ if ExportierenDlg.IsVisible(5) then
+ printlog " Gallery-object correctly copied into Slide."
+ ExportierenDlg.Close
+ else
+ warnlog " Doesn't seem like we copied anything from the Gallery... ?"
+ end if
+ kontext "GraphicObjectbar"
+ if GraphicObjectbar.Exists(5) = FALSE then
+ kontext "DocumentImpress"
+ ViewToolbarsPicture
+ end if
+
+ Kontext "Gallery"
View.TypeKeys "<HOME><RIGHT><RIGHT>"
printlog "'OpenContextMenu"
- View.TypeKeys "<SHIFT F10>"
+ View.TypeKeys "<SHIFT F10>"
sleep (2)
MenuSelect(MenuGetItemID(1)) 'Insert
sleep (2)
@@ -126,30 +160,31 @@ testcase i_us_presentation1
ViewToolbarsPicture
end if
- printlog "50% Transparency"
- WaitSlot (2000)
- kontext "GraphicObjectbar" ' the one with Transparency
- Transparenz.SetText "50"
- sleep (1)
-
- printlog "Mosaic 16px x 16px"
- Filter.TearOff
- sleep (1)
- kontext "GraphicFilterBar"
- Mosaic.Click
- WaitSlot (2000)
- kontext "Mosaic"
- Width.SetText "16"
- Height.SetText "16"
- Mosaic.OK
-
- kontext "GraphicFilterBar"
- GraphicFilterBar.Close
-
- ToolsGallery
- WaitSlot (1000)
- kontext "DocumentImpress"
- gMouseClick 50,50
+ printlog " 50% Transparency"
+ WaitSlot (2000)
+ kontext "GraphicObjectbar"
+ Transparenz.SetText "50"
+ sleep (1)
+
+ printlog "Mosaic 16px x 16px"
+ Filter.TearOff
+ sleep (1)
+ kontext "GraphicFilterBar"
+ Mosaic.Click
+ WaitSlot (2000)
+ kontext "Mosaic"
+ Width.SetText "16"
+ Height.SetText "16"
+ Mosaic.OK
+
+ kontext "GraphicFilterBar"
+ GraphicFilterBar.Close
+
+ ToolsGallery
+ WaitSlot (1000)
+ kontext "DocumentImpress"
+ hTypeKeys "<TAB>"
+
sleep (1)
FormatPositionAndSize
WaitSlot (1000)
diff --git a/testautomation/graphics/required/d_updt.bas b/testautomation/graphics/required/d_updt.bas
index 9d56a2c87fed..d191f2adea1c 100755..100644
--- a/testautomation/graphics/required/d_updt.bas
+++ b/testautomation/graphics/required/d_updt.bas
@@ -63,7 +63,7 @@ sub main
call id_004
Call D_005_
call id_005
- call id_006
+ call id_Tools
call d_007
call id_007
call id_008
diff --git a/testautomation/graphics/required/i_updt_1.bas b/testautomation/graphics/required/i_updt_1.bas
index 1d9b28f2aea9..141b261e3ee9 100755..100644
--- a/testautomation/graphics/required/i_updt_1.bas
+++ b/testautomation/graphics/required/i_updt_1.bas
@@ -58,7 +58,7 @@ sub main
Call im_004_
call id_004
call id_005
- call id_006
+ call id_Tools
Call hStatusOut
end sub
diff --git a/testautomation/graphics/required/includes/global/id_002.inc b/testautomation/graphics/required/includes/global/id_002.inc
index 55dec0008ac1..8c729871cbb3 100644
--- a/testautomation/graphics/required/includes/global/id_002.inc
+++ b/testautomation/graphics/required/includes/global/id_002.inc
@@ -232,7 +232,7 @@ testcase tiEditFields
hTypeKeys "<ESCAPE>"
printlog "With a Tab we catch always the Object"
- hTypeKeys "<Tab>"
+ hTypeKeys "<Tab>",3
printlog "Here we enter Edit-Mode and therefore also the right place"
hTypeKeys "<F2>"
printlog "Here we enter Edit-Mode and therefore also the right place"
@@ -406,7 +406,7 @@ testcase tiEditObjectProperties
gMouseDoubleClick 1,1
printlog " select frame "
- hTypekeys "<tab>"
+ hTypekeys "<tab>",3
printlog " Edit->Object->Properties "
kontext
@@ -448,7 +448,7 @@ testcase tiEditObjectEdit
gMouseClick 20,1
printlog " select object "
- hTypekeys "<tab>"
+ hTypekeys "<tab>",3
printlog " Edit->Object->Edit "
EditObjectEdit
@@ -464,7 +464,7 @@ testcase tiEditObjectEdit
endcatch
printlog " select object "
- EditSelectAll
+ hTypekeys "<tab>",3
printlog " Edit->Object->Save Copy As "
EditObjectSaveCopyAs
@@ -531,6 +531,7 @@ testcase tiEditHyperlink
printlog " open application"
hNewDocument
+ Call sSelectEmptyLayout
printlog " Insert->Hyperlink"
InsertHyperlink
WaitSlot (5000)
@@ -555,7 +556,9 @@ testcase tiEditHyperlink
Uebernehmen.Click
Hyperlink.Close
printlog " presupposition to enable edit->hyperlink: <TAB><F2><STRG+a>"
- hTypeKeys "<TAB><F2>"
+ hTypeKeys "<TAB>"
+ hTypeKeys "<F2>"
+ hTypeKeys "<MOD1 SHIFT RIGHT>"
EditSelectAll
try
printlog " Edit->Hyperlink "
diff --git a/testautomation/graphics/required/includes/global/id_005.inc b/testautomation/graphics/required/includes/global/id_005.inc
index 23d311d27cac..94898e620e46 100755..100644
--- a/testautomation/graphics/required/includes/global/id_005.inc
+++ b/testautomation/graphics/required/includes/global/id_005.inc
@@ -964,6 +964,7 @@ testcase tiFormatGroup
printlog "open application"
Call hNewDocument
+ Call sSelectEmptyLayout
printlog "create 2 rectangles"
hRechteckErstellen ( 10, 10, 20, 20 )
hRechteckErstellen ( 30, 30, 40, 40 )
diff --git a/testautomation/graphics/required/includes/global/id_006.inc b/testautomation/graphics/required/includes/global/id_006.inc
index 0a8359c1efef..8e16f5ef5593 100644
--- a/testautomation/graphics/required/includes/global/id_006.inc
+++ b/testautomation/graphics/required/includes/global/id_006.inc
@@ -42,7 +42,21 @@
' #1 tiToolsOptions
'\**********************************************************************************
-
+'------------------------------------------------------------------------------
+sub id_Tools
+ printLog "--------- id_006 ----------"
+ call tiToolsSpellchecking
+ call tiToolsSpellcheckingAutomatic
+ call tiToolsThesaurus
+ call tiToolsHyphenation
+ call tiToolsAutoCorrect
+ call tChineseTranslation
+ call tiToolsMacro
+ call tiToolsGallery
+ call tiToolsEyedropper
+ call tToolsOptionsTest ' global one
+end sub
+'-------------------------------------------------------------------------------
testcase tiToolsSpellchecking
if not gOOO then ' Spellcheck doesn't work in OOo builds.
@@ -86,9 +100,7 @@ testcase tiToolsSpellchecking
else goto endsub
endif
endcase
-
-'--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-
+'-------------------------------------------------------------------------------
testcase tiToolsSpellcheckingAutomatic
'/// open application ///'
Call hNewDocument
@@ -102,84 +114,116 @@ testcase tiToolsSpellcheckingAutomatic
'/// close application ///'
Call hCloseDocument
endcase
+'-------------------------------------------------------------------------------
+testcase tiToolsThesaurus
-'--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+ Dim sWord as string
+ Dim sExt as string
-testcase tiToolsThesaurus
- qaerrorlog "#i93133#: Thesaurus not active in loaded bugdoc"
- goto endsub
- if not gOOO then ' Thesaurus doesn't work in OOo builds.
+ 'for normal text, the thesaurus is enabled,
+ 'if the format->character->language of the word has a thesaurus
+ 'unfortunately in textboxes this doesn't work, you can give the word a langauge,
+ 'but this is been ignored by our thesaurus
+ 'so especially for asian languages you have to set a default language in the options,
+ 'to be able to use the thesaurus there - fallback to englisch,
+ 'because there is no thesaurus for cjk languages
- dim sFileName as String
-
- '/// call subroutine 'hSetSpellHypLanguage' for setting the default language in the options, to enable it for languages, which don't provide a dictionary (usually asian ones) ///'
- call hSetSpellHypLanguage
- '/// open application-specific document which contains an American-formatted textframe with text. And select the text ///'
- if (gApplication = "IMPRESS") then
- sFileName = (ConvertPath (gTesttoolPath + "graphics\required\input\engtext.odp"))
- else
- sFileName = (ConvertPath (gTesttoolPath + "graphics\required\input\engtext.odg"))
- end if
- if hFileExists ( sFileName ) = FALSE then
- warnlog "The language-file was not found or accessible! The test ends."
+ 'As long as OOo has no modules for that, disabled
+ if gOOO = True then
+ printlog "No spellchecking in OOo"
goto endsub
- end if
- Call hFileOpen (sFileName)
-
- sleep (2)
-
- hTypeKeys "<TAB><RETURN>"
- hTypeKeys "<END><SHIFT HOME>"
-
- ' Call hTextrahmenErstellen ("SimpleTest" + "<Mod1 Shift left>", 10, 10, 30, 40)
- try
- '/// Tools->Thesaurus ///'
- ExtrasThesaurusDraw
- Kontext "Thesaurus"
- Call DialogTest ( Thesaurus )
- '/// click button 'language' ///'
- Sprache.Click
- Kontext "SpracheAuswaehlen"
- Call DialogTest ( SpracheAuswaehlen )
- '/// cancel dialog 'select language' ///'
- SpracheAuswaehlen.cancel
- Kontext "Thesaurus"
- '/// click button 'search' ///'
- Nachschlagen.Click
- kontext
- '/// if messagebox exist, say OK; (word not found) ///'
- if Messagebox.exists (5) then
- printlog "Messagebox: word not in thesaurus: '"+Messagebox.gettext+"'"
- Messagebox.ok
- end if
- sleep 1
- Kontext "Thesaurus"
- '/// cancel dialog 'Thesaurus' ///'
- Thesaurus.Cancel
- catch
- warnlog "Thesaurus didn't work :-("
- endcatch
- sleep 1
- '/// close application ///'
- Call hCloseDocument
- else goto endsub
endif
-endcase
-'--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+ 'First we make sure we test a language where Thesaurus
+ select case iSprache
+ case 01 : sWord = "Hello"
+ case 03 : sWord = "Alo"
+ case 07 : printlog "- No Thesaur for Russian available"
+ goto endsub
+ case 30 : Printlog "- No Thesaurus available !"
+ goto endsub
+ case 31 : sWord = "Guiten"
+ case 33 : sWord = "Bonjour"
+ case 34 : sWord = "Hola"
+ case 35 : Printlog "- No Thesaurus available !"
+ goto endsub
+ case 36 : Printlog "- No Thesaurus available !"
+ goto endsub
+ case 37 : Printlog "- No Thesaurus available !"
+ goto endsub
+ case 39 : sWord = "Ciao"
+ case 42 : Printlog "- No Thesaurus available !"
+ goto endsub
+ case 45 : sWord = "Hej"
+ case 46 : sWord = "Välkommen"
+ case 47 : Printlog "- No Thesaurus available !"
+ goto endsub
+ case 48 : Printlog "- No Thesaurus in Polish!"
+ goto endsub
+ case 49 : sWord = "Hallo"
+ case 50 : sWord = "Prosojnica"
+ case 51 : Printlog "- No Thesaurus available !"
+ goto endsub
+ case 55 : Printlog "- No Thesaurus in Brazilian!"
+ goto endsub
+ case 90 : Printlog "- No Thesaurus available !"
+ goto endsub
+
+ case else : if bAsianLan then
+ hSetSpellHypLanguage
+ sWord = "Hello"
+ else
+ Warnlog "For the language " + iSprache +" nothing is prepared yet: insert text here"
+ sWord = "Hello"
+ endif
+ end select
+
+ PrintLog "Thesaurus with 1 word: " + sWord
+
+ if( Ucase(gApplication) = "DRAW" ) then
+ sExt = ".odg"
+ elseif( Ucase(gApplication) = "IMPRESS" ) then
+ sExt = ".odp"
+ endif
+
+ Call hFileOpen (gTesttoolpath + "graphics\required\input\recht_" + iSprache + sExt)
+ Call sMakeReadOnlyDocumentEditable()
+ Call hTextrahmenErstellen (sWord,20,20,50,30)
+ sleep 1
+ printlog "select the word"
+ hTypeKeys "<Home><SHIFT END>"
+
+ try
+ ExtrasThesaurusDraw
+ catch
+ warnlog "No Thesaurus available."
+ hCloseDocument()
+ goto endsub
+ endcatch
+
+ Kontext "Thesaurus"
+ if Thesaurus.Exists(3) then
+ Thesaurus.Cancel
+ else
+ warnlog "the thesaurus does not appear"
+ endif
+ Call hCloseDocument
+
+endcase
+'-------------------------------------------------------------------------------
testcase tiToolsHyphenation
'/// open application ///'
Call hNewDocument
'/// Tools->Hyphenation ///'
- ExtrasSilbentrennungDraw
+ ToolsLanguageHyphenationDraw
WaitSlot (2000) 'sleep 2
'/// Tools->Hyphenation ///'
- ExtrasSilbentrennungDraw
+ ToolsLanguageHyphenationDraw
'/// close application ///'
Call hCloseDocument
endcase
-
+'-------------------------------------------------------------------------------
testcase tiToolsAutoCorrect
dim iLanguage as integer ' for resetting the language
'/// open application ///'
@@ -291,9 +335,7 @@ testcase tiToolsAutoCorrect
'/// close application ///'
Call hCloseDocument
endcase
-
-'--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-
+'-------------------------------------------------------------------------------
testcase tChineseTranslation
qaerrorlog( "#i89634# - Chinese Translation dialog does not close" )
@@ -365,9 +407,7 @@ testcase tChineseTranslation
'/// Close application ///'
Call hCloseDocument
endcase
-
-'--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-
+'-------------------------------------------------------------------------------
testcase tiToolsMacro
'/// open application ///'
Call hNewDocument
@@ -419,9 +459,7 @@ testcase tiToolsMacro
'/// close application ///'
Call hCloseDocument
endcase
-
-'--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-
+'-------------------------------------------------------------------------------
testcase tiToolsGallery
'/// open application ///'
Call hNewDocument
@@ -433,9 +471,7 @@ testcase tiToolsGallery
'/// close application ///'
Call hCloseDocument
endcase
-
-'--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-
+'-------------------------------------------------------------------------------
testcase tiToolsEyedropper
'/// open application ///'
Call hNewDocument
@@ -449,20 +485,4 @@ testcase tiToolsEyedropper
'/// close application ///'
Call hCloseDocument
endcase
-
-'--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-
-testcase tiToolsOptions
- '/// open application ///'
- Call hNewDocument
- '/// Tools->Options ///'
- ToolsOptions
- WaitSlot (2000) 'sleep 1
- kontext "OptionenDlg"
- '/// close dialog 'Options' ///'
- OptionenDlg.Close
- '/// close application ///'
- Call hCloseDocument
-endcase
-
-'--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+'------------------------------------------------------------------------------- \ No newline at end of file
diff --git a/testautomation/graphics/required/includes/global/id_007.inc b/testautomation/graphics/required/includes/global/id_007.inc
index 3c4c3ca5b08b..242a87f1fce4 100644
--- a/testautomation/graphics/required/includes/global/id_007.inc
+++ b/testautomation/graphics/required/includes/global/id_007.inc
@@ -360,6 +360,7 @@ testcase tdContextDistribution
Call hNewDocument
WaitSlot (3000)
'/// create 3 rectangles ///'
+ Call sSelectEmptyLayout
Call hRechteckErstellen (20,20,30,30)
Call hRechteckErstellen (40,40,50,50)
Call hRechteckErstellen (60,60,70,70)
@@ -430,7 +431,7 @@ testcase tdContextNameObject
Call hRechteckErstellen ( 30, 40, 50, 60 )
sleep 1
'/// select both by spanning a selection with the mouse ///'
- gMouseMove 1,1,95,95
+ gMouseMove 1,1,70,70
sleep 1
'/// Modify->Group ///'
'///+ Modify->Group ///'
@@ -455,6 +456,7 @@ endcase
testcase tdModifyConnectBreak
'/// open application ///'
Call hNewDocument
+ Call sSelectEmptyLayout
sleep 1
'/// create two rectangles ///'
Call hRechteckErstellen (10,10,30,30)
@@ -483,6 +485,7 @@ endcase
testcase tdModifyShapes
'/// open application ///'
Call hNewDocument
+ Call sSelectEmptyLayout
sleep 1
'/// create two rectangles ///'
gMouseClick 50,50
@@ -551,6 +554,7 @@ endcase
testcase tdModifyCombineSplit
'/// open application ///'
Call hNewDocument
+ Call sSelectEmptyLayout
sleep 1
'/// create two rectangles ///'
Call hRechteckErstellen (30,30,50,50)
diff --git a/testautomation/graphics/required/includes/global/id_011.inc b/testautomation/graphics/required/includes/global/id_011.inc
index 0cc7f22708ab..98d574c0f78c 100644
--- a/testautomation/graphics/required/includes/global/id_011.inc
+++ b/testautomation/graphics/required/includes/global/id_011.inc
@@ -45,6 +45,7 @@ testcase tiTextToolbar
'/// open application ///'
Call hNewDocument
+ Call sSelectEmptyLayout
'/// create a textframe with text ///'
hTextrahmenErstellen ("This is a Text, which will be formatted in several ways", 20,20,40,80)
diff --git a/testautomation/graphics/required/includes/global/id_opt_1.inc b/testautomation/graphics/required/includes/global/id_opt_1.inc
index a19a8f27b089..0f0b4bdb9069 100644
--- a/testautomation/graphics/required/includes/global/id_opt_1.inc
+++ b/testautomation/graphics/required/includes/global/id_opt_1.inc
@@ -557,7 +557,7 @@ testcase tToolsOptionsDrawGrid (sApplication as string)
ExitRestartTheOffice
printlog "opening new doc to get the Options"
Call hNewDocument
- hTypeKeys "OpenNewDoc!"
+
printlog "checking states"
ToolsOptions
hToolsOptions (sApplication,"Grid")
diff --git a/testautomation/graphics/required/includes/impress/im_003_.inc b/testautomation/graphics/required/includes/impress/im_003_.inc
index 280dae56b1d1..da2f09187694 100644
--- a/testautomation/graphics/required/includes/impress/im_003_.inc
+++ b/testautomation/graphics/required/includes/impress/im_003_.inc
@@ -227,7 +227,7 @@ testcase tiViewToolbar_1
end if
Kontext "DocumentImpress"
printlog "select graphic "
- EditSelectAll
+ hTypeKeys "<TAB>", 3
sleep 2
Kontext "GraphicObjectbar"
sleep 1
diff --git a/testautomation/graphics/required/input/recht_3.odp b/testautomation/graphics/required/input/recht_3.odp
index 77001190ba1a..768fbad4b780 100755..100644
--- a/testautomation/graphics/required/input/recht_3.odp
+++ b/testautomation/graphics/required/input/recht_3.odp
Binary files differ
diff --git a/testautomation/graphics/required/input/recht_31.odp b/testautomation/graphics/required/input/recht_31.odp
index a8fd2717ba3f..23f5c77c141d 100755..100644
--- a/testautomation/graphics/required/input/recht_31.odp
+++ b/testautomation/graphics/required/input/recht_31.odp
Binary files differ
diff --git a/testautomation/graphics/required/input/recht_33.odp b/testautomation/graphics/required/input/recht_33.odp
index e98bb9a22dc7..c6acada2537e 100755..100644
--- a/testautomation/graphics/required/input/recht_33.odp
+++ b/testautomation/graphics/required/input/recht_33.odp
Binary files differ
diff --git a/testautomation/graphics/required/input/recht_34.odp b/testautomation/graphics/required/input/recht_34.odp
index fbfe0ae7ffae..2dcbd561f9e5 100755..100644
--- a/testautomation/graphics/required/input/recht_34.odp
+++ b/testautomation/graphics/required/input/recht_34.odp
Binary files differ
diff --git a/testautomation/graphics/required/input/recht_36.odp b/testautomation/graphics/required/input/recht_36.odp
index a1f80f1109db..45f7fd3a47cb 100755..100644
--- a/testautomation/graphics/required/input/recht_36.odp
+++ b/testautomation/graphics/required/input/recht_36.odp
Binary files differ
diff --git a/testautomation/graphics/required/input/recht_39.odp b/testautomation/graphics/required/input/recht_39.odp
index feda53696ecf..bf649b488030 100755..100644
--- a/testautomation/graphics/required/input/recht_39.odp
+++ b/testautomation/graphics/required/input/recht_39.odp
Binary files differ
diff --git a/testautomation/graphics/required/input/recht_46.odp b/testautomation/graphics/required/input/recht_46.odp
index d6ec036f014d..e9de83b58c8b 100755..100644
--- a/testautomation/graphics/required/input/recht_46.odp
+++ b/testautomation/graphics/required/input/recht_46.odp
Binary files differ
diff --git a/testautomation/graphics/required/input/recht_48.odp b/testautomation/graphics/required/input/recht_48.odp
index 4d905a8fe4d8..f836b0521f8b 100755..100644
--- a/testautomation/graphics/required/input/recht_48.odp
+++ b/testautomation/graphics/required/input/recht_48.odp
Binary files differ
diff --git a/testautomation/graphics/required/input/recht_49.odp b/testautomation/graphics/required/input/recht_49.odp
index 445c11940122..88c93c2856b4 100755..100644
--- a/testautomation/graphics/required/input/recht_49.odp
+++ b/testautomation/graphics/required/input/recht_49.odp
Binary files differ
diff --git a/testautomation/graphics/required/input/recht_55.odp b/testautomation/graphics/required/input/recht_55.odp
index 2d63df264710..6e78d94e8c49 100755..100644
--- a/testautomation/graphics/required/input/recht_55.odp
+++ b/testautomation/graphics/required/input/recht_55.odp
Binary files differ
diff --git a/testautomation/graphics/tools/id_tools.inc b/testautomation/graphics/tools/id_tools.inc
index 117fa47725e2..e71c9f7653f0 100644
--- a/testautomation/graphics/tools/id_tools.inc
+++ b/testautomation/graphics/tools/id_tools.inc
@@ -289,10 +289,10 @@ end function
'-------------------------------------------------------------------------------
function fMakeDocumentWritable() as boolean
- printlog " make a document is writeable"
- printlog " <u>parameter:</u>"
- printlog " <u>return:</u>"
- printlog " true if the document can make writeable otherwise false"
+ 'make a document is writeable
+ 'parameter:</u>
+ '<u>return:</u>
+ 'true if the document can make writeable otherwise false
Kontext "Standardbar"
sleep (1)
@@ -310,7 +310,7 @@ function fMakeDocumentWritable() as boolean
printlog "Document is allready writable."
fMakeDocumentWritable = true
endif
-
+ sleep (1)
end function
'-------------------------------------------------------------------------------
diff --git a/testautomation/graphics/tools/id_tools_2.inc b/testautomation/graphics/tools/id_tools_2.inc
index 6cf18494915d..681a5ec7161a 100644
--- a/testautomation/graphics/tools/id_tools_2.inc
+++ b/testautomation/graphics/tools/id_tools_2.inc
@@ -835,24 +835,6 @@ sub id_005
' tiFormatLayer ' not in impress
end sub
-'------------------------------------------------------------------------------
-sub id_006
-
- printLog Chr(13) + "--------- id_006 ----------"
-
- call tiToolsSpellchecking
- call tiToolsSpellcheckingAutomatic
- call tiToolsThesaurus
- call tiToolsHyphenation
- call tiToolsAutoCorrect
- call tChineseTranslation
- call tiToolsMacro
- call tiToolsGallery
- call tiToolsEyedropper
- call tiToolsOptions ' get just called one time here...
- Call tToolsOptionsTest ' global one
-end sub
-
'-------------------------------------------------------------------------------
sub id_007
@@ -1064,3 +1046,18 @@ sub hWalkTheStyles (optional a as integer,optional b as integer)
end sub
'---------------------------------------------------------------------------------------
+sub sSelectEmptyLayout
+ if gApplication = "IMPRESS" then
+ printlog "Changing focus to TaskPane."
+ kontext "Tasks"
+ sleep (1)
+ printlog "Selecting first and empty layout."
+ LayoutsPreview.TypeKeys "<HOME>"
+ sleep (1)
+ LayoutsPreview.TypeKeys "<RETURN>"
+ sleep (1)
+ kontext "DocumentImpress"
+ else
+ printlog "No change of Layout needed."
+ endif
+end sub \ No newline at end of file
diff --git a/testautomation/math/required/includes/m_005_.inc b/testautomation/math/required/includes/m_005_.inc
index 2b567c628b18..bb580b9bd9c3 100644..100755
--- a/testautomation/math/required/includes/m_005_.inc
+++ b/testautomation/math/required/includes/m_005_.inc
@@ -168,6 +168,7 @@ testcase tToolsExtensionManager
dim sTemp2 as string
dim x as integer
+ if ( lcase( gPlatform ) <> "osx" ) then
sPath = convertPath(gTestToolPath+"math/required/input/")
'/// open application ///'
Call hNewDocument
@@ -306,4 +307,7 @@ testcase tToolsExtensionManager
warnlog "Couldn't call Tools -> Package manager - aborting test"
endif
Call hCloseDocument
+ else
+ qaErrorLog "Do not run on macosx - not reproduceable error"
+ endif
endcase
diff --git a/testautomation/spreadsheet/required/includes/c_upd_toolsmenu.inc b/testautomation/spreadsheet/required/includes/c_upd_toolsmenu.inc
index 12f52f48d2d4..434aae88f786 100644..100755
--- a/testautomation/spreadsheet/required/includes/c_upd_toolsmenu.inc
+++ b/testautomation/spreadsheet/required/includes/c_upd_toolsmenu.inc
@@ -189,14 +189,14 @@ testcase tToolsSpellcheck
'/// Click on 'Edit' – button
printlog " Click on 'Edit' – button"
OptionenBearbeiten.Click
- Kontext "SilbentrennungOptionen"
- Call DialogTest ( SilbentrennungOptionen )
+ Kontext "HyphenationOptions"
+ Call DialogTest ( HyphenationOptions )
'/// Decrease 'Minimal word length'
printlog " Decrease 'Minimal word length'"
ZeichenVorUmbruch.More
'/// Close dialog with 'Cancel'
printlog " Close dialog with 'Cancel'"
- SilbentrennungOptionen.Cancel
+ HyphenationOptions.Cancel
Kontext "TabLinguistik"
'/// Close dialog with 'Cancel'
printlog " Close dialog with 'Cancel'"
@@ -391,21 +391,17 @@ endcase
testcase tToolsLanguageThesaurus
'///<u><b>Tools – Language – Chinese Translation</b></u>
- '/// Load document from 'gTesttoolPath + "spreadsheet\required\input\english.ods"'
printlog " Load document from 'gTesttoolPath + spreadsheet\required\input\english.ods"
Call hFileOpen (Convertpath (gTesttoolPath + "spreadsheet\required\input\english.ods" ))
- '/// If the file is not editable, click the edit button on standardbar
printlog "If the file is not editable, click the edit button on standardbar"
call sMakeReadOnlyDocumentEditable
Kontext "DocumentCalc"
- '/// Enter 'blabla' in a cell
- printlog " Enter 'blabla' in a cell"
+ printlog " Enter 'test' in a cell"
Call fCalcSelectRange ("B2")
- DocumentCalc.TypeKeys "blabla<Return><Up>"
- '/// Open 'Thesaurus' dialog by 'Tools – Language – Thesaurus
+ DocumentCalc.TypeKeys "test<Return><Up>"
printlog " Open 'Thesaurus' dialog by 'Tools – Language – Thesaurus"
try
- ToolsLanguageThesaurusCalc
+ ToolsLanguageThesaurus
catch
warnlog "Thesaurus did not work"
call hCloseDocument
@@ -413,34 +409,20 @@ testcase tToolsLanguageThesaurus
endcatch
Kontext "Thesaurus"
DialogTest ( Thesaurus )
- '/// Click on 'Search' button
- printlog " Click on 'Search' button"
- Nachschlagen.Click
- '/// Close messagebox with 'OK'
- printlog " Close messagebox with 'OK'"
- Kontext
- if Active.exists then
- Active.OK
+ printlog " Check if the cellcontent test is correctly read"
+ if CurrentWord.GetSelText <> "test" then
+ warnlog "The cellcontent is not test but is " & CurrentWord.GetSelText
end if
- Kontext "Thesaurus"
- '/// Click on 'Language' button
- printlog " Click on 'Language' button"
- Sprache.Click
- Kontext "SpracheAuswaehlen"
- DialogTest ( SpracheAuswaehlen )
- '/// Verify that the list has entries
- printlog " Verify that the list has entries"
- If Auswahl.GetItemCount < 1 then
- warnlog "There are no languages available"
+ printlog " Check that there are alternatives available"
+ if Alternatives.GetItemCount < 1 then
+ warnlog "There are no alternatives available"
+ else Alternatives.Select (1)
+ if ReplaceWith.GetText = "" then
+ warnlog "The repacle with field is empty"
+ end if
end if
- '/// Close 'Select Language' dialog with 'Cancel'
- printlog " Close 'Select Language' dialog with 'Cancel'"
- SpracheAuswaehlen.Cancel
- Kontext "Thesaurus"
- '/// Close 'Thesaurus' with 'Cancel'
printlog " Close 'Thesaurus' with 'Cancel'"
Thesaurus.Cancel
- '/// Close document
printlog " Close document"
call hCloseDocument
diff --git a/testautomation/writer/optional/includes/fields/w_fields1.inc b/testautomation/writer/optional/includes/fields/w_fields1.inc
index 9f2d872b3d89..0287fd2f1da1 100644..100755
--- a/testautomation/writer/optional/includes/fields/w_fields1.inc
+++ b/testautomation/writer/optional/includes/fields/w_fields1.inc
@@ -170,8 +170,6 @@ endcase
'-----------------------------------------------------------------
testcase tInsertFieldsPageNumber
-qaerrorlog "#i93906# - Testcase outcommented due to bug. 'Copied field-content not pastable outside Office'"
-goto endsub
Dim sPage1 , sPage2 as String
@@ -216,8 +214,6 @@ endcase
'-----------------------------------------------------------------
testcase tInsertFieldsPageCount
-qaerrorlog "#i93906# - Testcase outcommented due to bug. 'Copied field-content not pastable outside Office'"
-goto endsub
Dim sPage1 , sPage2 as String
@@ -273,8 +269,6 @@ endcase
'-----------------------------------------------------------------
testcase tInsertFieldsSubject
-qaerrorlog "#i93906# - Testcase outcommented due to bug. 'Copied field-content not pastable outside Office'"
-goto endsub
Dim sSubject as String
sSubject = "This is a Subject"
@@ -306,8 +300,6 @@ endcase
'-----------------------------------------------------------------
testcase tInsertFieldsTitle
-qaerrorlog "#i93906# - Testcase outcommented due to bug. 'Copied field-content not pastable outside Office'"
-goto endsub
Dim sTitle as String
@@ -340,8 +332,6 @@ endcase
'-----------------------------------------------------------------
testcase tInsertFieldsAuthor
-qaerrorlog "#i93906# - Testcase outcommented due to bug. 'Copied field-content not pastable outside Office'"
-goto endsub
Dim sFirstName , sLastName as String
Dim sFirstName1 , sLastName1 as String
diff --git a/testautomation/writer/optional/includes/fields/w_fields2.inc b/testautomation/writer/optional/includes/fields/w_fields2.inc
index 826d9ec769b9..0514ba5b020e 100644..100755
--- a/testautomation/writer/optional/includes/fields/w_fields2.inc
+++ b/testautomation/writer/optional/includes/fields/w_fields2.inc
@@ -451,8 +451,6 @@ endcase
'-----------------------------------------------------------------
testcase tDocumentPage
-qaerrorlog "#i93906# - Testcase outcommented due to bug. 'Copied field-content not pastable outside Office'"
-goto endsub
Dim sTestFile as String
Dim sPage() as String
@@ -867,35 +865,32 @@ endcase
'-----------------------------------------------------------------
testcase tDocumentStatistics
-qaerrorlog "#i93906# - Testcase outcommented due to bug. 'Copied field-content not pastable outside Office'"
-goto endsub
Dim sTestFile as String
+ Dim sOriginalFile as string
Dim sStatistics() as String
+ Dim sType as string
Dim i as Integer
- sStatistics = Array( _
- "2" , _
- "2" , _
- "2" , _
- "12" , _
- "2" , _
- "2" , _
- "1" , _
- )
+ sStatistics = Array( "2", "2", "3", "13", "2", "2", "1" )
- sTestFile = Convertpath (gTesttoolpath + "writer\optional\input\fields\statisticsTest.sxw")
+ sTestFile = Convertpath (gOfficepath + "user\work\statisticsTest.sxw")
+ sOriginalFile = Convertpath (gTesttoolpath + "writer\optional\input\fields\statisticsTest.sxw")
+ ' document has to be copied to local file system to avoid opening a read-only file
+ ' because all field data gets lost if documents write-protection is removed via 'sMakeReadOnlyDocumentEditable'
+ FileCopy (sOriginalFile, sTestFile)
+ if hFileExists ( sTestFile ) = false then
+ Warnlog "Test document couldn't be copied to local file system. Test aborted!"
+ goto endsub
+ end if
printlog "Insert/Fields/Other/Document / Statistics"
'/// <b> Insert/Fields/Other/Document / Statistics </b>
- Call hNewDocument
-
'/// Open test file statisticsTest.sxw which includes
'/// 2 tables , 2 pictures , 22 paragraph , 1 object ,
'/// 2 words , 12 characters and 2 pages
Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
Call wTypeKeys "<MOD1 Home><Down>"
@@ -904,6 +899,7 @@ goto endsub
'/// Check if the insertion is correct
Call fInsertFieldsOther("TabDokumentFeldbefehle")
Feldtyp.Select fGetType("Statistics")
+ sType = Auswahl.GetSelText
for i = 0 to UBound(sStatistics)
Kontext "TabDokumentFeldbefehle"
Auswahl.Select i+1
@@ -916,7 +912,7 @@ goto endsub
Sleep 1
EditCopy
if GetClipboard <> sStatistics(i) then
- Warnlog i &" - Should get " & sStatistics(i) & " but get " & GetClipboard
+ Warnlog "- " & sType & ": Should get " & sStatistics(i) & " but get " & GetClipboard
end if
Call wTypeKeys "<Delete>"
next i
@@ -930,35 +926,39 @@ endcase
'-----------------------------------------------------------------
testcase tDocumentTemplate
-qaerrorlog "#i93906# - Testcase outcommented due to bug. 'Copied field-content not pastable outside Office'"
-goto endsub
-
- Dim sTestFile as String
- Dim sDirectory as String
- Dim oDirectory as String
- Dim sLanguage as String
- Dim sFormat() as String
- Dim sResult(6) as String
- Dim i as Integer
+
+ Dim sTestFile as String
+ Dim sOriginalFile as string
+ Dim sDirectory as String
+ Dim oDirectory as String
+ Dim sLanguage as String
+ Dim sFormat() as String
+ Dim sResult(6) as String
+ Dim i as Integer
sLanguage = fGetDirLanguage()
- sTestFile = Convertpath (gTesttoolpath + "writer\optional\input\fields\diploma.ott")
+ sTestFile = Convertpath (gOfficepath + "user\work\diploma.ott")
+ sOriginalFile = Convertpath (gTesttoolpath + "writer\optional\input\fields\diploma.ott")
+ ' document has to be copied to local file system to avoid opening a read-only file
+ ' because all field data gets lost if documents write-protection is removed via 'sMakeReadOnlyDocumentEditable'
+ FileCopy (sOriginalFile, sTestFile)
+ if hFileExists ( sTestFile ) = false then
+ Warnlog "Test document couldn't be copied to local file system. Test aborted!"
+ goto endsub
+ end if
sResult(0) = fGetCateGory()
sResult(1) = "diploma.ott"
sResult(2) = "diploma"
- sResult(3) = Convertpath (gTesttoolpath + "writer\optional\input\fields\")
+ sResult(3) = Convertpath (gOfficepath + "user\work")
sResult(4) = sTestFile
sResult(5) = fGetStyle()
printlog "Insert/Fields/Other/Document / Template"
'/// <b> Insert/Fields/Other/Document / Template </b>
-
- Call hNewDocument
-
+
'/// Open test file diploma.ott
Call hFileOpen(sTestFile)
- Call sMakeReadOnlyDocumentEditable
Call wTypeKeys "<MOD1 Home>"
diff --git a/testautomation/writer/optional/includes/fields/w_fields4.inc b/testautomation/writer/optional/includes/fields/w_fields4.inc
index 446d5b458f0f..20069da398c1 100644..100755
--- a/testautomation/writer/optional/includes/fields/w_fields4.inc
+++ b/testautomation/writer/optional/includes/fields/w_fields4.inc
@@ -261,9 +261,8 @@ endcase
'-----------------------------------------------------------------
testcase tDocInformationUserDefined
- qaerrorlog "#i93906# - Testcase outcommented due to bug. 'Copied field-content not pastable outside Office'"
- goto endsub
-
+ QAErrorLog "#i112077#Tabpage 'Custom properties' has no declaration"
+ goto endsub
Dim sTestFile as String
Dim sOriginalFile as string
Dim sVarResult() as String
diff --git a/testautomation/writer/optional/includes/fields/w_fields5.inc b/testautomation/writer/optional/includes/fields/w_fields5.inc
index 2f4e3b0b9ecb..6c8b5e7ca12a 100644..100755
--- a/testautomation/writer/optional/includes/fields/w_fields5.inc
+++ b/testautomation/writer/optional/includes/fields/w_fields5.inc
@@ -667,99 +667,101 @@ endcase
'-----------------------------------------------------------------
testcase tVariablesDDEFieldManual
- qaerrorlog "#i93906# - tVariablesDDEFieldManual outcommented due to a problem with copying field-contents outside the office."
+ warnlog "#i112079#testcase must be reworked"
goto endsub
- Dim sDDEFile as String
- Dim sContent as String
- Dim sName as String
- Dim sDDEStatement as String
- Dim sSectionName as String
+ Dim sDDEFile as String
+ Dim sContent as String
+ Dim sName as String
+ Dim sDDEStatement as String
+ Dim sSectionName as String
+
+ sDDEFile = Convertpath ( gOfficePath + "\user\work\dde_test.odt")
+ sContent = "DDE"
+ sName = "myTest"
+ sSectionName = "Section1"
+ sDDEStatement = "soffice " & sDDEFile & " " & sSectionName
+
+ printlog "DDE field - manual"
+ '/// <b> DDE field - manual </b>
+
+ if hFileExists ( sDDEFile ) then app.kill ( sDDEFile )
+
+ Call hNewDocument
+
+ '/// Input something , insert a section , then save it and close the file
+ Call wTypeKeys sContent
+ Call wTypeKeys "<Shift Home>"
+ Call fInsertSection("TabBereiche")
+ Bereichsliste.Settext sSectionName
+ TabBereiche.OK
+ Sleep 1
+ Call hFileSaveAsKill(sDDEFile)
+ Call hCloseDocument
+
+ '/// Opan a new document
+ Call hNewDocument
+ '/// Insert/Fields/Other/Variables / Select "DDE Field"
+ '/// Set DDE name and DDE statement , select "DDE manual"
+ Call fInsertFieldsOther("TabVariablen")
+ Feldtyp.Select 3
+ Sleep 1
+ NameText.SetText sName
+ Wert.SetText sDDEStatement
+ Formatliste.Select 1
+ Einfuegen.Click
+ Sleep 2
+ TabVariablen.Close
+ Sleep 2
- sDDEFile = Convertpath ( gNetzOfficePath + "dde_test.oxt")
- sContent = "DDE"
- sName = "myTest"
- sSectionName = "Section1"
- sDDEStatement = "soffice " & sDDEFile & " " & sSectionName
-
- printlog "DDE field - manual"
- '/// <b> DDE field - manual </b>
-
- if hFileExists ( sDDEFile ) then app.kill ( sDDEFile )
-
- Call hNewDocument
-
- '/// Input something , insert a section , then save it and close the file
- Call wTypeKeys sContent
- Call wTypeKeys "<Shift Home>"
- Call fInsertSection("TabBereiche")
- Bereichsliste.Settext sSectionName
- TabBereiche.OK
- Sleep 1
- Call hFileSaveAsKill(sDDEFile)
- Call hCloseDocument
-
- '/// Opan a new document
- Call hNewDocument
-
- '/// Insert/Fields/Other/Variables / Select "DDE Field"
- '/// Set DDE name and DDE statement , select "DDE manual"
- Call fInsertFieldsOther("TabVariablen")
- Feldtyp.Select 3
- Sleep 1
- NameText.SetText sName
- Wert.SetText sDDEStatement
- Formatliste.Select 1
- Einfuegen.Click
- Sleep 2
- TabVariablen.Close
- Sleep 2
-
- Call wTypeKeys "<MOD1 Home>"
- Call wTypeKeys "<Shift End>"
- if fGetFieldContent() <> sContent then
- Warnlog "Should get " & sContent & " but get " & fGetFieldContent()
- end if
+ Call wTypeKeys "<MOD1 Home>"
+ Call wTypeKeys "<Shift End>"
+ if fGetFieldContent() <> sContent then
+ Warnlog "Should get " & sContent & " but get " & fGetFieldContent()
+ end if
- '/// Open the test file which you just closed , add something ,
- '/// Save the file
- Call hFileOpen(sDDEFile)
+ '/// Open the test file which you just closed , add something ,
+ '/// Save the file
+ Call hFileOpen(sDDEFile)
Call wTypeKeys "<MOD1 Home>"
Call wTypeKeys "XYZ"
FileSave
- Call hCloseDocument
-
- '/// Check if the content is changed -- Should NOT
- Sleep 2
- Call wTypeKeys "<F9>"
- Call wTypeKeys "<MOD1 Home><Shift End>"
- if fGetFieldContent() <> sContent then
- Warnlog "Should get " & sContent & " but get " & fGetFieldContent()
- end if
-
- '/// Edit/Fields , press update button
- EditFields
- Kontext "VerknuepfungenBearbeiten"
- Aktualisieren.Click
- VerknuepfungenBearbeiten.Close
+ Call hCloseDocument
+
+ '/// Check if the content is changed -- Should NOT
+ Sleep 2
+ Call wTypeKeys "<F9>"
+ Call wTypeKeys "<MOD1 Home><Shift End>"
+ if fGetFieldContent() <> sContent then
+ Warnlog "Should get " & sContent & " but get " & fGetFieldContent()
+ end if
- '/// Check if the content is changed -- Should NOT
- Sleep 1
- Call wTypeKeys "<F9>"
- Call wTypeKeys "<MOD1 Home><Shift End>"
- if fGetFieldContent() <> ("XYZ" & sContent) then
- Warnlog "Should get XYZ" & sContent & " but get " & fGetFieldContent()
- end if
+ '/// Edit/Fields , press update button
+ EditFields
+ Kontext "VerknuepfungenBearbeiten"
+ Aktualisieren.Click
+ VerknuepfungenBearbeiten.Close
+
+ '/// Check if the content is changed -- Should NOT
+ Sleep 1
+ Call wTypeKeys "<F9>"
+ Call wTypeKeys "<MOD1 Home><Shift End>"
+ if fGetFieldContent() <> ("XYZ" & sContent) then
+ Warnlog "Should get XYZ" & sContent & " but get " & fGetFieldContent()
+ end if
- Call hCloseDocument
+ Call hCloseDocument
- if hFileExists ( sDDEFile ) then app.kill ( sDDEFile )
+ if hFileExists ( sDDEFile ) then app.kill ( sDDEFile )
endcase
'-----------------------------------------------------------------
testcase tVariablesDDEFieldAutomatic
+ warnlog "#i112079#testcase must be reworked"
+ goto endsub
+
qaerrorlog "#i102792# - tVariablesDDEFieldAutomatic outcommented. Fields not updated."
goto endsub
diff --git a/testautomation/writer/optional/includes/hyphenation/w_hyphenation.inc b/testautomation/writer/optional/includes/hyphenation/w_hyphenation.inc
index 93c90a31dec9..01c1bc91a7c4 100644..100755
--- a/testautomation/writer/optional/includes/hyphenation/w_hyphenation.inc
+++ b/testautomation/writer/optional/includes/hyphenation/w_hyphenation.inc
@@ -173,9 +173,9 @@ testcase tHyphenation_3
printlog "Tools/Hyphenation"
ToolsLanguageHyphenate
- Kontext "Silbentrennung"
+ Kontext "Hyphenation"
- if Not Silbentrennung.Exists then
+ if Not Hyphenation.Exists then
Warnlog "Unable to bring up Dialog 'Hyphenation'!"
Call hCloseDocument
goto endsub
@@ -184,21 +184,21 @@ testcase tHyphenation_3
printlog "check if get 'fol=low-ing'"
if Wort.Gettext <> testWordInHyphenationDlg then
Warnlog "Expected " & testWordInHyphenationDlg & " but found " & Wort.Gettext
- Silbentrennung.Cancel
+ Hyphenation.Cancel
Call hCloseDocument
goto endsub
end if
if NOT Vor.IsEnabled then
Warnlog "the 'Vor' button is Not enabled, or something wrong!"
- Silbentrennung.Cancel
+ Hyphenation.Cancel
Call hCloseDocument
goto endsub
end if
printlog "add '-' between 'fol' and 'lowing' using left arrow key"
Vor.Click
- Silbentrennung.OK
+ Hyphenation.OK
' Messagebox 'Start hypheantion from the beginning ?
Kontext "Active"
@@ -285,9 +285,9 @@ testcase tHyphenation_4
printlog "Tools/Hyphenation"
ToolsLanguageHyphenate
- Kontext "Silbentrennung"
+ Kontext "Hyphenation"
- if Not Silbentrennung.Exists then
+ if Not Hyphenation.Exists then
Call hCloseDocument
goto endsub
end if
@@ -295,7 +295,7 @@ testcase tHyphenation_4
printlog "check if get 'fol=low-ing'"
if Wort.Gettext <> testWordInHyphenationDlg1 then
Warnlog "Expected " & testWordInHyphenationDlg1 & " but found " & Wort.Gettext
- Silbentrennung.Cancel
+ Hyphenation.Cancel
Call hCloseDocument
goto endsub
end if
@@ -303,7 +303,7 @@ testcase tHyphenation_4
printlog "click left arrow key"
if NOT Vor.IsEnabled then
Warnlog "the Vor button is Not enabled, or something wrong!"
- Silbentrennung.Cancel
+ Hyphenation.Cancel
Call hCloseDocument
goto endsub
end if
@@ -334,7 +334,7 @@ testcase tHyphenation_4
Sleep 1
printlog "close all dialogs"
- Silbentrennung.OK
+ Hyphenation.OK
' Messagebox 'Start hypheantion from the beginning ?
Kontext "Active"
diff --git a/testautomation/writer/optional/includes/number/w_206_.inc b/testautomation/writer/optional/includes/number/w_206_.inc
index 9d7750628013..c007e674d329 100644..100755
--- a/testautomation/writer/optional/includes/number/w_206_.inc
+++ b/testautomation/writer/optional/includes/number/w_206_.inc
@@ -472,12 +472,12 @@ testcase tToolsNumbering7
end if
end if
Case 2
- if sClipBrd(1) <> "1.My second number" then
- Warnlog "#128041#First paragraph not '1.My second number' but: " & sClipBrd(1)
+ if sClipBrd(1) <> "1.1.My second number" then
+ Warnlog "#128041#First paragraph not '1.1.My second number' but: " & sClipBrd(1)
end if
Case 3
- if sClipBrd(2) <> "2.My third number" then
- Warnlog "#128041#First paragraph not '2.My third number' but: " & sClipBrd(2)
+ if sClipBrd(2) <> "2.2.My third number" then
+ Warnlog "#128041#First paragraph not '2.2.My third number' but: " & sClipBrd(2)
end if
end select
next i
@@ -707,16 +707,16 @@ testcase tToolsNumbering11
For i = 1 to 3
Select Case i
Case 1
- if sClipBrd(0) <> "1A new first paragraph" then
- Warnlog "First Heading not: '1A new first paragraph' but: " & sClipBrd(0)
+ if sClipBrd(0) <> "11A new first paragraph" then
+ Warnlog "First Heading not: '11A new first paragraph' but: " & sClipBrd(0)
end if
Case 2
- if sClipBrd(1) <> "2" then
- Warnlog "First paragraph not empty but: " & sClipBrd(1)
+ if sClipBrd(1) <> "22" then
+ Warnlog "First paragraph not '22' but: " & sClipBrd(1)
end if
Case 3
- if sClipBrd(2) <> "3A new third paragraph" then
- Warnlog "First paragraph not '3A new third paragraph' but: " & sClipBrd(2)
+ if sClipBrd(2) <> "33A new third paragraph" then
+ Warnlog "First paragraph not '33A new third paragraph' but: " & sClipBrd(2)
end if
end select
next i
diff --git a/testautomation/writer/optional/includes/regexp/search.inc b/testautomation/writer/optional/includes/regexp/search.inc
index ce3d946fe3b9..c53ff6250461 100755
--- a/testautomation/writer/optional/includes/regexp/search.inc
+++ b/testautomation/writer/optional/includes/regexp/search.inc
@@ -79,13 +79,13 @@ testcase tCheckDialog
if SearchAll.IsEnabled then Warnlog "Without Search-for-entry Find-All is active!"
if SearchNow.IsEnabled then Warnlog "Without Search-for-entry Find is active!"
if ReplaceAll.IsEnabled then Warnlog "Without Search-for-entry Replace-All is active!"
- if Replace.IsEnabled then Warnlog "Without Search-for-entry Replace is active!"
+ if ReplaceBtn.IsEnabled then Warnlog "Without Search-for-entry Replace is active!"
if NoFormat.IsEnabled then Warnlog "Without selecting Formats , No-Format is active!"
SearchFor.SetText "Hallo"
if NOT SearchAll.IsEnabled then Warnlog "Containing Search-for-entry Find-All is inactive!"
if NOT SearchNow.IsEnabled then Warnlog "Containing Search-for-entry Find inactive!"
if NOT ReplaceAll.IsEnabled then Warnlog "Containing Search-for-entry Replace-All is inactive!"
- if NOT Replace.IsEnabled then Warnlog "Containing Search-for-entry Replace is inactive!"
+ if NOT ReplaceBtn.IsEnabled then Warnlog "Containing Search-for-entry Replace is inactive!"
Sleep 5
printlog "- Dependencies of Format-Properties"
@@ -1190,7 +1190,7 @@ function wSelectAttributeName(aNumber as integer, AsianSupport as boolean, SetSt
Case 31
Select Case iSprache
- Case 49: aSelectIt = "Silbentrennung"
+ Case 49: aSelectIt = "Hyphenation"
Case else: Warnlog "Language not supported. No test"
exit function
end select
@@ -1469,7 +1469,7 @@ sub wCheckAttribute(aNumber as integer)
Case 28 '"Schriftstellung asiatische Schrift"
Case 29 '"Schusterjungen"
Case 30 '"Seitenvorlage"
- Case 31 '"Silbentrennung"
+ Case 31 '"Hyphenation"
Case 32 '"Skalierung"
Case 33 '"Sprache"
Case 34 '"Sprache asiatische Schrift"
diff --git a/testautomation/writer/optional/includes/spellcheck/w_spellcheck.inc b/testautomation/writer/optional/includes/spellcheck/w_spellcheck.inc
index e4818c34029f..3dfd505d129c 100644..100755
--- a/testautomation/writer/optional/includes/spellcheck/w_spellcheck.inc
+++ b/testautomation/writer/optional/includes/spellcheck/w_spellcheck.inc
@@ -1227,11 +1227,9 @@ endcase
' *******************************************************************
testcase tToolsThesaurus
+
Dim sWordInitial as string
- Dim sLanguageToBeSelected as string
Dim sWordToBeFound as string
- Dim sWordReplacedWith as string
- Dim i as integer
Dim TheFile as String
PrintLog "- Tools / Thesaurus"
@@ -1283,19 +1281,20 @@ testcase tToolsThesaurus
'/// Call Thesaurus without a written word ///
ToolsLanguageThesaurus
Kontext "Thesaurus"
- if Ersetzen.GetText <> "" then Warnlog "- Though no word has been selected there is a replacetext in the textfield!"
- printlog "- enter one word and search"
- Ersetzen.SetText sWordInitial
- Nachschlagen.Click
- Kontext "Active"
- if Active.Exists then
- Warnlog Active.Gettext
- Active.ok
- end if
- Kontext "Thesaurus"
- if Bedeutung.GetSelText(1) = "" then Warnlog "No meaning text"
- if Ersetzen.Gettext = "" then Ersetzen.SetText = sWordInitial
- sWordToBeFound = Ersetzen.GetText
+ if CurrentWord.GetSelText <> "" then Warnlog "- Though no word has been selected Current Word textfield is filled !"
+ if ReplaceWith.GetText <> "" then Warnlog "- Though no word has been selected there is a replacetext in the textfield!"
+ printlog "Set language dependent word in textfield Current Word"
+ CurrentWord.Settext sWordInitial
+
+ wait 500
+ if Alternatives.GetItemCount = 0 then
+ Warnlog "No alternatives text"
+ else
+ if ReplaceWith.Gettext <> Alternatives.GetText(Alternatives.GetSelIndex) then
+ Warnlog "Replace with textfield was not filled with word from alternative"
+ endif
+ endif
+ sWordToBeFound = ReplaceWith.GetText
Thesaurus.OK
Call wTypeKeys "<Home><Shift End>"
wait 200
@@ -1310,166 +1309,156 @@ testcase tToolsThesaurus
printlog " Open new preformatted-document where the formatting is set to the language we wish to test."
call hFileOpen (TheFile,false)
- Call sMakeReadOnlyDocumentEditable
+ Call sMakeReadOnlyDocumentEditable
+
+ Call wTypeKeys sWordInitial
+ Call wTypeKeys "<Home><Right><Right>"
- printlog "- check the language"
- Call wTypeKeys sWordInitial + "<Home>"
- '/// Check language in Thesaurus ///
+ printlog "- Replace ( select alternative with cursor within word )"
ToolsLanguageThesaurus
Kontext "Thesaurus"
+ wait 500
+ if CurrentWord.GetSeltext = sWordInitial then
+ sWordToBeFound = ReplaceWith.Gettext
+ if Alternatives.GetItemCount > 0 then
+ printlog "Select last entry in alternatives list"
+ Alternatives.Select Alternatives.GetItemCount
+ Alternatives.TypeKeys "<Space>"
+ if ReplaceWith.Gettext = sWordToBeFound then
+ Warnlog "Though alternative was selected replace with was not changed"
+ else
+ sWordToBeFound = ReplaceWith.Gettext
+ end if
+ Thesaurus.OK
+ Call wTypeKeys "<Home><Shift End>"
+ wait 200
+ EditCopy
+ if GetClipboardText <> sWordToBeFound then Warnlog "Text has not been correctly replaced, not => " + sWordToBeFound + " but => " + GetClipboardText
+ else
+ Warnlog "- No Alternative for current word"
+ Thesaurus.Ok
+ end if
+ else
+ Warnlog "Current word is not selected word !"
+ end if
- Sprache.Click
- Kontext "SpracheAuswaehlen"
- select case iSprache ' iSystemSprache
- case 01 : sLanguageToBeSelected = "English (USA)"
- case 07 : sLanguageToBeSelected = "Русский"
- case 03 : sLanguageToBeSelected = "Português"
- case 31 : sLanguageToBeSelected = "Nederlands (NL)"
- case 33 : sLanguageToBeSelected = "Français (France)"
- case 34 : sLanguageToBeSelected = "Español (España)"
- case 36 : sLanguageToBeSelected = "Madyar"
- case 39 : sLanguageToBeSelected = "Italiano (Italia)"
- case 45 : sLanguageToBeSelected = "Dansk"
- case 46 : sLanguageToBeSelected = "svenska (Sverige)"
- case 48 : sLanguageToBeSelected = "Polski"
- case 49 : sLanguageToBeSelected = "Deutsch (Deutschland)"
- end select
- SpracheAuswaehlen.OK
- Sleep 5
-
+ Call wTypeKeys "<Home><Shift End><Delete>"
+ Call wTypeKeys sWordInitial
+
+ printlog "- Replace unchecked ( Cursor at words end )"
+ ToolsLanguageThesaurus
Kontext "Thesaurus"
- printlog "- Search for a Synonym"
- '/// Search for a synonym ///
- Synonym.Select 1
- wait 500
- sWordToBeFound = Synonym.GetSelText
- if Ersetzen.GetText <> sWordToBeFound then Warnlog "Synonym has not been taken over"
- Nachschlagen.Click
- wait 500
- if Wort.GetSelText <> sWordToBeFound then Warnlog "Synonym has not been added to the word listand activated"
-
- printlog "- Search for a meaning"
- '/// Search for a meaning ///
wait 500
- Bedeutung.Select 1
- wait 500
- Nachschlagen.Click
- Sleep 1
- Kontext "Active"
- if Active.Exists then
- printlog "- " + Active.Gettext
- Active.Ok
- Kontext "Thesaurus"
- else ' Nur wenn Wort auch enthalten ist
- Kontext "Thesaurus"
- for i = 1 to 100
- if Bedeutung.GetSeltext <> "" then i = 101
- Sleep 1
- next i
- sWordToBeFound = Bedeutung.GetSelText
- if Instr ( Ersetzen.GetText, sWordToBeFound ) <> 0 then
- Warnlog "Meaning has not been overtaken"
- end if
- end if
+ if CurrentWord.GetSeltext = sWordInitial then
+ sWordToBeFound = ReplaceWith.Gettext
+ if Alternatives.GetItemCount > 0 then
+ printlog "Select last entry in alternatives list"
+ Alternatives.Select Alternatives.GetItemCount
+ Alternatives.TypeKeys "<Space>"
+ if ReplaceWith.Gettext = sWordToBeFound then
+ Warnlog "Though alternative was selected replace with was not changed"
+ else
+ sWordToBeFound = ReplaceWith.Gettext
+ end if
+ Thesaurus.OK
+ Call wTypeKeys "<Home><Shift End>"
+ wait 200
+ EditCopy
+ if GetClipboardText <> sWordToBeFound then Warnlog "Text has not been correctly replaced, not => " + sWordToBeFound + " but => " + GetClipboardText
+ else
+ Warnlog "- No Alternative for current word"
+ Thesaurus.Ok
+ end if
+ else
+ Warnlog "Current word is not selected word !"
+ end if
+
+ '/// Close thesaurus and writerdocument ///
+ Call hCloseDocument
+endcase
- printlog "- Replace unchecked ( Cursor in front of words 1. character )"
- '/// replace unchecked ///
- sWordReplacedWith = Ersetzen.GetText
- Thesaurus.OK
- Call wTypeKeys "<Shift Home>"
- wait 200
- EditCopy
- if GetClipboardText <> sWordReplacedWith then Warnlog "Text has not been correctly replaced, not => " + sWordReplacedWith + " but => " + GetClipboardText
+' *******************************************************************
- Call wTypeKeys "<End><Shift Home><Delete>" + sWordInitial
- Call wTypeKeys "<Home><Right><Right>"
+testcase tToolsThesaurusSynonyms
- printlog "- Replace unchecked ( Cursor in word )"
- ToolsLanguageThesaurus
- Kontext "Thesaurus"
- wait 500
- if Synonym.GetItemCount >0 then
- Synonym.Select 1
- sWordReplacedWith = Ersetzen.GetText
- Thesaurus.OK
- Call wTypeKeys "<Home><Shift End>"
- wait 200
- EditCopy
- if GetClipboardText <> sWordReplacedWith then Warnlog "Text has not been correctly replaced, not => " + sWordReplacedWith + " but => " + GetClipboardText
- else
- Warnlog "- No Synonym when cursor is in word!"
- Thesaurus.Ok
- end if
+ Dim sWordInitial as string
+ Dim sNumberOfSuggestions as string
+ Dim sReplaceWithWord as string
+ Dim TheFile as String
- Call wTypeKeys "<End><Shift Home><Delete>"
- Call wTypeKeys sWordInitial + "<End><Left>"
+ PrintLog "- Tools / Thesaurus"
- printlog "- Replace unchecked ( Cursor at words end )"
- ToolsLanguageThesaurus
- Kontext "Thesaurus"
- if Synonym.GetItemCount >0 then
- Synonym.Select 1
- sWordReplacedWith = Ersetzen.GetText
- Thesaurus.OK
- Call wTypeKeys "<Home><Shift End>"
- wait 200
- EditCopy
- if GetClipboardText <> sWordReplacedWith then Warnlog "Text has not been correctly replaced, not => " + sWordReplacedWith + " but => " + Trim$(GetClipboardText)
- else
- Warnlog "- No sysnonym when cursor pointed to words end!"
- Thesaurus.Ok
+ printlog " Open document where the formatting is set to the language we wish to test."
+ TheFile = Convertpath (gTesttoolpath + "writer\optional\input\spellcheck\spellcheck_" + iSprache + ".odt")
+ if hFileExists ( TheFile ) <> TRUE then
+ Warnlog "Found no Document for the language you're testing in, Please inform the Test-Developer."
+ exit sub
end if
- Call wTypeKeys "<End><Shift Home><Delete>"
- Call wTypeKeys sWordInitial + "<End><Left><Shift Mod1 Left>"
+ select case iSprache
+ case 01 : sWordInitial = "Morning"
+ case 03 : sWordInitial = "Confirmam"
+ case 07 : Printlog "- No Thesaurus in Russian!"
+ goto endsub
+ case 31 : sWordInitial = "Hulp"
+ case 33 : sWordInitial = "Payer"
+ case 34 : sWordInitial = "Suficiente"
+ case 36 : Printlog "- No Thesaurus in Hungarian!"
+ goto endsub
+ case 39 : sWordInitial = "Lingua"
+ case 45 : sWordInitial = "Først"
+ case 46 : sWordInitial = "Däng"
+ case 48 : sWordInitial = "wypowiedź"
+ case 49 : sWordInitial = "Mann"
+ case 55 : Printlog "- No Thesaurus in Portuguese (Brazil) !"
+ goto endsub
+ case 81 : Printlog "- No Thesaurus in Japanese!"
+ goto endsub
+ case 82 : Printlog "- No Thesaurus in Korean!"
+ goto endsub
+ case 86 : Printlog "- No Thesaurus in Chinese (simplified)!"
+ goto endsub
+ case 88 : Printlog "- No Thesaurus in Chinese (traditional)!"
+ goto endsub
+ case 30, 35, 36, 37, 42, 47, 48, 51, 90
+ Printlog "- No Thesaurus available !"
+ goto endsub
+ case else : QAErrorlog "The language " + iSprache + " has no defined errortext. No Test!"
+ goto endsub
+ end select
+
+ printlog "Open new preformatted-writerdocument"
+ call hFileOpen (TheFile,false)
+ Call sMakeReadOnlyDocumentEditable
+ Call wTypeKeys sWordInitial
+ Call wTypeKeys "<Shift Home>"
- printlog "- Replace checked ( back to front )"
- '/// replace checked ///
- ToolsLanguageThesaurus
- Kontext "Thesaurus"
- if Synonym.GetItemCount >0 then
- Synonym.Select 1
- sWordReplacedWith = Ersetzen.GetText
- Thesaurus.Ok
- Call wTypeKeys "<Home><Shift End><Shift Left>"
- wait 200
- EditCopy
- if GetClipboardText <> sWordReplacedWith then Warnlog "Text has not been correctly replaced, not => " + sWordReplacedWith + " but => " + GetClipboardText
+ printlog "Open contextmenu in wrong word"
+ Call wTypeKeys "<Shift F10>"
+ printlog "Select 'Synonyms' in context menu"
+ Call hMenuSelectNr (13)
+ sNumberOfSuggestions=MenuGetItemCount - 2
+ '/// Check if there is a suggestion and replace word ///
+ if sNumberOfSuggestions <=0 then
+ Warnlog "- No synonyms in Context menu for the first wrong word!"
else
- Nachschlagen.Click
- Kontext "Active"
- if Active.Exists then
- Active.Ok
- Kontext "Thesaurus"
- Thesaurus.OK
- end if
+ printlog "- Context menu has " + sNumberOfSuggestions + " synonyms for the 1. wrong word!"
+ sReplaceWithWord=hMenuItemGetText (1)
+ Call hMenuSelectNr (1)
+ Call wTypeKeys "<Shift Mod1 Left>"
+ try
+ EditCopy
+ if GetClipboardtext<> sReplaceWithWord then
+ Warnlog "- 1. wrong Word has not been replaced with " + sReplaceWithWord + " but "+ GetClipBoardtext
+ else
+ printlog "- 1. wrong word has been replaced with the 1. entry in context menu!"
+ end if
+ catch
+ endcatch
end if
+ Call hCloseDocument
+
+endcase
- Call wTypeKeys "<End><Shift Home><Delete>"
- Call wTypeKeys sWordInitial + "<Home><Shift End>"
- printlog "- Replace checked ( front to back )"
- ToolsLanguageThesaurus
- Kontext "Thesaurus"
- if Synonym.GetItemCount >0 then
- Synonym.Select 1
- sWordReplacedWith = Ersetzen.GetText
- Thesaurus.Ok
- Call wTypeKeys "<Home><Shift End>"
- wait 200
- EditCopy
- if GetClipboardText <> sWordReplacedWith then Warnlog "Text has not been correctly replaced, not => " + sWordReplacedWith + " but => " + GetClipboardText
- else
- Warnlog "- No sysnonym when word is marked!"
- Thesaurus.Ok
- end if
- Call wTypeKeys "<End><Shift Home><Delete>"
- Call wTypeKeys sWordInitial + "<Home><Right><Shift Right><Shift Right>"
- printlog "- Part of Replace checked ( back to front ) - no checking anymore"
- ToolsLanguageThesaurus
- Kontext "Thesaurus"
- Thesaurus.OK
- '/// Close thesaurus and writerdocument ///
- Call hCloseDocument
-endcase
diff --git a/testautomation/writer/required/includes/w_005_.inc b/testautomation/writer/required/includes/w_005_.inc
index 830ce39adc24..93fe9ac0237b 100644..100755
--- a/testautomation/writer/required/includes/w_005_.inc
+++ b/testautomation/writer/required/includes/w_005_.inc
@@ -232,14 +232,55 @@ testcase tFormatChangeCase
printlog " Open new document"
Call hNewDocument
printlog " Insert some text in document and select text"
- Call wTypeKeys ("Hello World!")
+ Call wTypeKeys ("call him now ! please")
Call wTypeKeys ("<Shift Home>")
printlog " Format / Case Characters / Upper"
hUseAsyncSlot( "FormatChangeCaseUpper" )
+ EditCopy
+ if GetClipboardtext() <> "CALL HIM NOW ! PLEASE" then
+ Warnlog "Sentence not 'CALL HIM NOW ! PLEASE' but " & GetClipboardtext()
+ else
+ printlog " " & GetClipboardtext()
+ endif
printlog " Format / Case Characters / Lower"
hUseAsyncSlot( "FormatChangeCaseLower" )
+ EditCopy
+ if GetClipboardtext() <> "call him now ! please" then
+ Warnlog "Sentence not 'call him now ! please' but " & GetClipboardtext()
+ else
+ printlog " " & GetClipboardtext()
+ endif
+
+ printlog " Format / Case Characters / Sentence Case"
+ FormatChangeCaseToSentence
+ EditCopy
+ if GetClipboardtext() <> "Call him now ! Please" then
+ Warnlog "Sentence not 'Call him now ! Please' but " & GetClipboardtext()
+ else
+ printlog " " & GetClipboardtext()
+ endif
+
+ printlog " Format / Case Characters / Capitalize every word"
+ FormatChangeCaseCapitalizeEveryWord
+ EditCopy
+ if GetClipboardtext() <> "Call Him Now ! Please" then
+ Warnlog "Sentence not 'Call Him Now ! Please' but " & GetClipboardtext()
+ else
+ printlog " " & GetClipboardtext()
+ endif
+
+
+ printlog " Format / Case Characters / tOGGLE cASE"
+ FormatChangeCaseToggleCase
+ EditCopy
+ if GetClipboardtext() <> "cALL hIM nOW ! pLEASE" then
+ Warnlog "Sentence not 'cALL hIM nOW ! pLEASE' but " & GetClipboardtext()
+ else
+ printlog " " & GetClipboardtext()
+ endif
+
if ( gAsianSup ) then
try
diff --git a/testautomation/writer/required/includes/w_007_.inc b/testautomation/writer/required/includes/w_007_.inc
index 14c1943c29d3..490636bc723a 100755
--- a/testautomation/writer/required/includes/w_007_.inc
+++ b/testautomation/writer/required/includes/w_007_.inc
@@ -155,9 +155,9 @@ testcase tToolsSpellcheck
if OptionenBearbeiten.IsEnabled then
OptionenBearbeiten.Click
wait 500
- Kontext "SilbentrennungOptionen"
- DialogTest ( SilbentrennungOptionen )
- SilbentrennungOptionen.Cancel
+ Kontext "HyphenationOptions"
+ DialogTest ( HyphenationOptions )
+ HyphenationOptions.Cancel
end if
next i
@@ -289,13 +289,6 @@ testcase tToolsThesaurus
Kontext "Thesaurus"
DialogTest ( Thesaurus )
- printlog " In 'Thesaurus' dialog click 'Language'"
- Sprache.Click
- Kontext "SpracheAuswaehlen"
- DialogTest ( SpracheAuswaehlen )
- printlog " Close 'Language' dialog"
- SpracheAuswaehlen.Cancel
- Kontext "Thesaurus"
printlog " Close 'Thesaurus' dialog"
Thesaurus.Cancel
PrintLog "Close active documents"
@@ -390,11 +383,11 @@ testcase tToolsHyphenation
end if
end if
- Kontext "Silbentrennung"
+ Kontext "Hyphenation"
printlog " Close upcoming 'Hyphenation' dialog"
- if Silbentrennung.Exists then
- Call DialogTest ( Silbentrennung )
- Silbentrennung.Cancel
+ if Hyphenation.Exists then
+ Call DialogTest ( Hyphenation )
+ Hyphenation.Cancel
else
Warnlog "Dialog 'Hyphenation' not up!"
Kontext "Active"
@@ -1298,11 +1291,11 @@ testcase tMasterDocToolsHyphenation
end if
end if
- Kontext "Silbentrennung"
+ Kontext "Hyphenation"
printlog " Close upcoming 'Hyphenation' dialog"
- if ( Silbentrennung.Exists( 2 ) ) then
- Call DialogTest ( Silbentrennung )
- Silbentrennung.Cancel
+ if ( Hyphenation.Exists( 2 ) ) then
+ Call DialogTest ( Hyphenation )
+ Hyphenation.Cancel
else
Warnlog "Dialog 'Hyphenation' not up!"
Kontext "Active"
diff --git a/testautomation/writer/tools/includes/w_tools.inc b/testautomation/writer/tools/includes/w_tools.inc
index 8fa05c23bbc9..122a44f7da53 100644..100755
--- a/testautomation/writer/tools/includes/w_tools.inc
+++ b/testautomation/writer/tools/includes/w_tools.inc
@@ -1052,7 +1052,10 @@ sub wOptionsUndo ( sOption$ )
Call hToolsOptions("WRITER","Autocaption")
for i = 1 to ObjectList.GetItemCount
ObjectList.Select i
- ObjectList.UnCheck
+ ' uncheck only if checked, else it might crash on macosx, see issue 111883 for further information
+ if ObjectList.getState (i) > 1 then
+ ObjectList.UnCheck
+ endif
next i
end if