summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/ifc/awt
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/ifc/awt')
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlButtonModel.java6
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlCheckBoxModel.java8
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlComboBoxModel.java12
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlContainerModel.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlCurrencyFieldModel.java10
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlDateFieldModel.java24
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlDialogElement.java6
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlDialogModel.java6
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlEditModel.java12
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlFileControlModel.java6
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlFixedLineModel.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlFixedTextModel.java12
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlFormattedFieldModel.java14
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlGroupBoxModel.java8
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlImageControlModel.java10
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlListBoxModel.java12
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlModel.java4
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlNumericFieldModel.java10
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlPatternFieldModel.java10
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlProgressBarModel.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlRadioButtonModel.java12
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlScrollBarModel.java16
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlSpinButtonModel.java16
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlTimeFieldModel.java6
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XButton.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XCheckBox.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XComboBox.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XControl.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XControlContainer.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XCurrencyField.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XDataTransferProviderAccess.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XDateField.java8
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XDialog.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XFixedText.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XImageConsumer.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XImageProducer.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XItemListener.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XLayoutConstrains.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XListBox.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XMessageBoxFactory.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XNumericField.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XPatternField.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XRadioButton.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XScrollBar.java48
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XSpinField.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XSpinValue.java50
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XTabController.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XTabControllerModel.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XTextComponent.java6
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XTextLayoutConstrains.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XTextListener.java6
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XTimeField.java4
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XToolkit.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XTopWindow.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XUnoControlContainer.java52
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XUserInputInterception.java120
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XView.java8
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XWindow.java6
-rw-r--r--qadevOOo/tests/java/ifc/awt/tree/_TreeControlModel.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/tree/_XMutableTreeDataModel.java16
-rw-r--r--qadevOOo/tests/java/ifc/awt/tree/_XMutableTreeNode.java110
-rw-r--r--qadevOOo/tests/java/ifc/awt/tree/_XTreeControl.java340
-rw-r--r--qadevOOo/tests/java/ifc/awt/tree/_XTreeDataModel.java84
-rw-r--r--qadevOOo/tests/java/ifc/awt/tree/_XTreeNode.java108
64 files changed, 621 insertions, 621 deletions
diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlButtonModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlButtonModel.java
index 545995a641fe..ff9ac9c269c4 100644
--- a/qadevOOo/tests/java/ifc/awt/_UnoControlButtonModel.java
+++ b/qadevOOo/tests/java/ifc/awt/_UnoControlButtonModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -79,7 +79,7 @@ public class _UnoControlButtonModel extends MultiPropertyTest {
log.println("Testing with custom Property tester") ;
testProperty("BackgroundColor", ColorTester) ;
}
-
+
/**
* This property can be void, so if old value is <code> null </code>
* new value must be specified.
@@ -87,7 +87,7 @@ public class _UnoControlButtonModel extends MultiPropertyTest {
public void _TextLineColor() {
log.println("Testing with custom Property tester") ;
testProperty("TextLineColor", ColorTester) ;
- }
+ }
/**
* This property can be void, so if old value is <code> null </code>
diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlCheckBoxModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlCheckBoxModel.java
index 115a416ba640..4d7d77fad501 100644
--- a/qadevOOo/tests/java/ifc/awt/_UnoControlCheckBoxModel.java
+++ b/qadevOOo/tests/java/ifc/awt/_UnoControlCheckBoxModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -70,8 +70,8 @@ public class _UnoControlCheckBoxModel extends MultiPropertyTest {
return utils.isVoid(old) ? new Integer(1234) : null ;
}
}) ;
- }
-
+ }
+
/**
* This property can be void, so if old value is <code> null </code>
* new value must be specified.
@@ -104,6 +104,6 @@ public class _UnoControlCheckBoxModel extends MultiPropertyTest {
public void _TextLineColor() {
log.println("Testing with custom Property tester") ;
testProperty("TextLineColor", ColorTester) ;
- }
+ }
}
diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlComboBoxModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlComboBoxModel.java
index 544c8c2ee6e1..c3d3133bd8fb 100644
--- a/qadevOOo/tests/java/ifc/awt/_UnoControlComboBoxModel.java
+++ b/qadevOOo/tests/java/ifc/awt/_UnoControlComboBoxModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -65,7 +65,7 @@ public class _UnoControlComboBoxModel extends MultiPropertyTest {
}
}) ;
}
-
+
/**
* This property can be VOID, and in case if it is so new
* value must defined.
@@ -101,7 +101,7 @@ public class _UnoControlComboBoxModel extends MultiPropertyTest {
}
}) ;
}
-
+
public void _Text() {
try {
oObj.setPropertyValue("MaxTextLen",new Short((short)0));
@@ -112,7 +112,7 @@ public class _UnoControlComboBoxModel extends MultiPropertyTest {
}
testProperty("Text");
}
-
+
/**
* Redefined method returns value, that differs from property value.
*/
@@ -124,7 +124,7 @@ public class _UnoControlComboBoxModel extends MultiPropertyTest {
return new Integer(17);
}
};
-
+
/**
* This property can be void, so if old value is <code> null </code>
* new value must be specified.
@@ -132,7 +132,7 @@ public class _UnoControlComboBoxModel extends MultiPropertyTest {
public void _TextLineColor() {
log.println("Testing with custom Property tester") ;
testProperty("TextLineColor", ColorTester) ;
- }
+ }
} //EOF UnoControlComboBoxModel
diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlContainerModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlContainerModel.java
index 8ae486c2d8e7..88cf0a8aa2a7 100644
--- a/qadevOOo/tests/java/ifc/awt/_UnoControlContainerModel.java
+++ b/qadevOOo/tests/java/ifc/awt/_UnoControlContainerModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlCurrencyFieldModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlCurrencyFieldModel.java
index 3638498a0152..906da48cf1ae 100644
--- a/qadevOOo/tests/java/ifc/awt/_UnoControlCurrencyFieldModel.java
+++ b/qadevOOo/tests/java/ifc/awt/_UnoControlCurrencyFieldModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -80,7 +80,7 @@ public class _UnoControlCurrencyFieldModel extends MultiPropertyTest {
}
}) ;
}
-
+
/**
* This property can be VOID, and in case if it is so new
* value must defined.
@@ -91,7 +91,7 @@ public class _UnoControlCurrencyFieldModel extends MultiPropertyTest {
return utils.isVoid(old) ? new Integer(1234) : null ;
}
}) ;
- }
+ }
/**
* This property can be void, so if old value is <code> null </code>
@@ -104,7 +104,7 @@ public class _UnoControlCurrencyFieldModel extends MultiPropertyTest {
}
}) ;
}
-
+
/**
* This property can be void, so if old value is <code> null </code>
* new value must be specified.
@@ -115,7 +115,7 @@ public class _UnoControlCurrencyFieldModel extends MultiPropertyTest {
return utils.isVoid(old) ? new Integer(123) : null ;
}
}) ;
- }
+ }
/**
* This property can be void, so if old value is <code> null </code>
diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlDateFieldModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlDateFieldModel.java
index c0d17a541c46..baeb99479760 100644
--- a/qadevOOo/tests/java/ifc/awt/_UnoControlDateFieldModel.java
+++ b/qadevOOo/tests/java/ifc/awt/_UnoControlDateFieldModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -67,7 +67,7 @@ public class _UnoControlDateFieldModel extends MultiPropertyTest {
}
}) ;
}
-
+
/**
* This property can be VOID, and in case if it is so new
* value must defined.
@@ -79,7 +79,7 @@ public class _UnoControlDateFieldModel extends MultiPropertyTest {
}
}) ;
}
-
+
/**
* This property can be void, so if old value is <code> null </code>
@@ -117,7 +117,7 @@ public class _UnoControlDateFieldModel extends MultiPropertyTest {
}
}) ;
}
-
+
/**
* Redefined method returns value, that differs from property value.
*/
@@ -129,7 +129,7 @@ public class _UnoControlDateFieldModel extends MultiPropertyTest {
return new Integer(17);
}
};
-
+
/**
* This property can be void, so if old value is <code> null </code>
* new value must be specified.
@@ -137,9 +137,9 @@ public class _UnoControlDateFieldModel extends MultiPropertyTest {
public void _TextLineColor() {
log.println("Testing with custom Property tester") ;
testProperty("TextLineColor", ColorTester) ;
- }
-
- public void _DateShowCentury() {
+ }
+
+ public void _DateShowCentury() {
boolean res = false;
try {
util.dbg.printPropertyInfo(oObj,"DateShowCentury",log);
@@ -160,14 +160,14 @@ public class _UnoControlDateFieldModel extends MultiPropertyTest {
} catch (com.sun.star.beans.UnknownPropertyException upe) {
log.println("Don't know the Property 'DateShowCentury'");
} catch (com.sun.star.lang.WrappedTargetException wte) {
- log.println("WrappedTargetException while getting Property 'DateShowCentury'");
+ log.println("WrappedTargetException while getting Property 'DateShowCentury'");
} catch (com.sun.star.lang.IllegalArgumentException iae) {
log.println("IllegalArgumentException while getting Property 'DateShowCentury'");
} catch (com.sun.star.beans.PropertyVetoException pve) {
log.println("PropertyVetoException while getting Property 'DateShowCentury'");
- }
- tRes.tested("DateShowCentury",res);
-
+ }
+ tRes.tested("DateShowCentury",res);
+
}
}
diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlDialogElement.java b/qadevOOo/tests/java/ifc/awt/_UnoControlDialogElement.java
index f9746fb6210f..2e20cf12a979 100644
--- a/qadevOOo/tests/java/ifc/awt/_UnoControlDialogElement.java
+++ b/qadevOOo/tests/java/ifc/awt/_UnoControlDialogElement.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -29,7 +29,7 @@ package ifc.awt;
import lib.MultiPropertyTest;
-public class _UnoControlDialogElement extends MultiPropertyTest {
-
+public class _UnoControlDialogElement extends MultiPropertyTest {
+
}
diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlDialogModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlDialogModel.java
index 88b2ecafcb30..f58bebbf5272 100644
--- a/qadevOOo/tests/java/ifc/awt/_UnoControlDialogModel.java
+++ b/qadevOOo/tests/java/ifc/awt/_UnoControlDialogModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -71,7 +71,7 @@ public class _UnoControlDialogModel extends MultiPropertyTest {
}
}) ;
}
-
+
/**
* This property can be VOID, and in case if it is so new
* value must defined.
@@ -82,6 +82,6 @@ public class _UnoControlDialogModel extends MultiPropertyTest {
return utils.isVoid(old) ? new Integer(4321) : null ;
}
}) ;
- }
+ }
}
diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlEditModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlEditModel.java
index fee61c671be1..cd9b09eb7447 100644
--- a/qadevOOo/tests/java/ifc/awt/_UnoControlEditModel.java
+++ b/qadevOOo/tests/java/ifc/awt/_UnoControlEditModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -69,7 +69,7 @@ public class _UnoControlEditModel extends MultiPropertyTest {
}
}) ;
}
-
+
/**
* This property can be VOID, and in case if it is so new
* value must defined.
@@ -80,7 +80,7 @@ public class _UnoControlEditModel extends MultiPropertyTest {
return utils.isVoid(old) ? new Integer(1234) : null ;
}
}) ;
- }
+ }
/**
* This property can be VOID, and in case if it is so new
@@ -105,7 +105,7 @@ public class _UnoControlEditModel extends MultiPropertyTest {
}
}) ;
}
-
+
/**
* Redefined method returns value, that differs from property value.
*/
@@ -117,7 +117,7 @@ public class _UnoControlEditModel extends MultiPropertyTest {
return new Integer(17);
}
};
-
+
/**
* This property can be void, so if old value is <code> null </code>
* new value must be specified.
@@ -125,6 +125,6 @@ public class _UnoControlEditModel extends MultiPropertyTest {
public void _TextLineColor() {
log.println("Testing with custom Property tester") ;
testProperty("TextLineColor", ColorTester) ;
- }
+ }
}
diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlFileControlModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlFileControlModel.java
index 144ccd46a205..ad5e3d0be64a 100644
--- a/qadevOOo/tests/java/ifc/awt/_UnoControlFileControlModel.java
+++ b/qadevOOo/tests/java/ifc/awt/_UnoControlFileControlModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -65,7 +65,7 @@ public class _UnoControlFileControlModel extends MultiPropertyTest {
}
}) ;
}
-
+
/**
* This property can be VOID, and in case if it is so new
* value must defined.
@@ -76,7 +76,7 @@ public class _UnoControlFileControlModel extends MultiPropertyTest {
return utils.isVoid(old) ? new Integer(1234) : null ;
}
}) ;
- }
+ }
/**
* This property can be VOID, and in case if it is so new
diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlFixedLineModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlFixedLineModel.java
index f9087e46cd41..382c39bffbbb 100644
--- a/qadevOOo/tests/java/ifc/awt/_UnoControlFixedLineModel.java
+++ b/qadevOOo/tests/java/ifc/awt/_UnoControlFixedLineModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlFixedTextModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlFixedTextModel.java
index d66cfde5995a..9c96a2510fd1 100644
--- a/qadevOOo/tests/java/ifc/awt/_UnoControlFixedTextModel.java
+++ b/qadevOOo/tests/java/ifc/awt/_UnoControlFixedTextModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -62,7 +62,7 @@ public class _UnoControlFixedTextModel extends MultiPropertyTest {
}
}) ;
}
-
+
/**
* This property can be VOID, and in case if it is so new
* value must defined.
@@ -73,7 +73,7 @@ public class _UnoControlFixedTextModel extends MultiPropertyTest {
return utils.isVoid(old) ? new Integer(1234) : null ;
}
}) ;
- }
+ }
/**
* This property can be VOID, and in case if it is so new
@@ -86,7 +86,7 @@ public class _UnoControlFixedTextModel extends MultiPropertyTest {
}
}) ;
}
-
+
/**
* Redefined method returns value, that differs from property value.
*/
@@ -98,7 +98,7 @@ public class _UnoControlFixedTextModel extends MultiPropertyTest {
return new Integer(17);
}
};
-
+
/**
* This property can be void, so if old value is <code> null </code>
* new value must be specified.
@@ -106,6 +106,6 @@ public class _UnoControlFixedTextModel extends MultiPropertyTest {
public void _TextLineColor() {
log.println("Testing with custom Property tester") ;
testProperty("TextLineColor", ColorTester) ;
- }
+ }
}
diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlFormattedFieldModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlFormattedFieldModel.java
index 31bc7959a287..f277cbef2664 100644
--- a/qadevOOo/tests/java/ifc/awt/_UnoControlFormattedFieldModel.java
+++ b/qadevOOo/tests/java/ifc/awt/_UnoControlFormattedFieldModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -86,7 +86,7 @@ public class _UnoControlFormattedFieldModel extends MultiPropertyTest {
log.println("Testing with custom Property tester") ;
testProperty("DefaultControl", ControlTester) ;
}
-
+
/**
* This property can be VOID, and in case if it is so new
* value must defined.
@@ -97,7 +97,7 @@ public class _UnoControlFormattedFieldModel extends MultiPropertyTest {
return utils.isVoid(old) ? new Integer(1234) : null ;
}
}) ;
- }
+ }
/**
* This property can be void, so if old value is <code> null </code>
@@ -111,7 +111,7 @@ public class _UnoControlFormattedFieldModel extends MultiPropertyTest {
}
}) ;
}
-
+
/**
* This property can be void, so if old value is <code> null </code>
* new value must be specified.
@@ -123,7 +123,7 @@ public class _UnoControlFormattedFieldModel extends MultiPropertyTest {
super.getNewValue(p,v) ;
}
}) ;
- }
+ }
/**
* This property can be void, so if old value is <code> null </code>
@@ -166,7 +166,7 @@ public class _UnoControlFormattedFieldModel extends MultiPropertyTest {
}
}) ;
}
-
+
/**
* This property can be void, so if old value is <code> null </code>
* new value must be specified.
@@ -182,7 +182,7 @@ public class _UnoControlFormattedFieldModel extends MultiPropertyTest {
return newValue;
}
}) ;
- }
+ }
/**
* This property can be void, so if old value is <code> null </code>
diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlGroupBoxModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlGroupBoxModel.java
index 8b4183aa88fe..b82f65e07220 100644
--- a/qadevOOo/tests/java/ifc/awt/_UnoControlGroupBoxModel.java
+++ b/qadevOOo/tests/java/ifc/awt/_UnoControlGroupBoxModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -59,7 +59,7 @@ public class _UnoControlGroupBoxModel extends MultiPropertyTest {
}
}) ;
}
-
+
/**
* Redefined method returns value, that differs from property value.
*/
@@ -71,7 +71,7 @@ public class _UnoControlGroupBoxModel extends MultiPropertyTest {
return new Integer(17);
}
};
-
+
/**
* This property can be void, so if old value is <code> null </code>
* new value must be specified.
@@ -79,7 +79,7 @@ public class _UnoControlGroupBoxModel extends MultiPropertyTest {
public void _TextLineColor() {
log.println("Testing with custom Property tester") ;
testProperty("TextLineColor", ColorTester) ;
- }
+ }
}
diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlImageControlModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlImageControlModel.java
index 4955cce1dc1a..f9344d5a6ccf 100644
--- a/qadevOOo/tests/java/ifc/awt/_UnoControlImageControlModel.java
+++ b/qadevOOo/tests/java/ifc/awt/_UnoControlImageControlModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -79,7 +79,7 @@ public class _UnoControlImageControlModel extends MultiPropertyTest {
}
}) ;
}
-
+
/**
* This property can be VOID, and in case if it is so new
* value must defined.
@@ -90,8 +90,8 @@ public class _UnoControlImageControlModel extends MultiPropertyTest {
return utils.isVoid(old) ? new Integer(1234) : null ;
}
}) ;
- }
-
+ }
+
/**
* This property can be void, so if old value is <code> null </code>
* new value must be specified.
@@ -104,6 +104,6 @@ public class _UnoControlImageControlModel extends MultiPropertyTest {
}
}) ;
}
-
+
}
diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlListBoxModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlListBoxModel.java
index 97c4bebde37e..21eba19082dc 100644
--- a/qadevOOo/tests/java/ifc/awt/_UnoControlListBoxModel.java
+++ b/qadevOOo/tests/java/ifc/awt/_UnoControlListBoxModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -65,7 +65,7 @@ public class _UnoControlListBoxModel extends MultiPropertyTest {
}
}) ;
}
-
+
/**
* This property can be VOID, and in case if it is so new
* value must defined.
@@ -76,7 +76,7 @@ public class _UnoControlListBoxModel extends MultiPropertyTest {
return utils.isVoid(old) ? new Integer(1234) : null ;
}
}) ;
- }
+ }
/**
* This property can be VOID, and in case if it is so new
@@ -101,7 +101,7 @@ public class _UnoControlListBoxModel extends MultiPropertyTest {
}
}) ;
}
-
+
/**
* Redefined method returns value, that differs from property value.
*/
@@ -113,7 +113,7 @@ public class _UnoControlListBoxModel extends MultiPropertyTest {
return new Integer(17);
}
};
-
+
/**
* This property can be void, so if old value is <code> null </code>
* new value must be specified.
@@ -121,6 +121,6 @@ public class _UnoControlListBoxModel extends MultiPropertyTest {
public void _TextLineColor() {
log.println("Testing with custom Property tester") ;
testProperty("TextLineColor", ColorTester) ;
- }
+ }
}
diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlModel.java
index 63dc6009d75d..c40f64620313 100644
--- a/qadevOOo/tests/java/ifc/awt/_UnoControlModel.java
+++ b/qadevOOo/tests/java/ifc/awt/_UnoControlModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -30,6 +30,6 @@ package ifc.awt;
import lib.MultiPropertyTest;
public class _UnoControlModel extends MultiPropertyTest {
-
+
}
diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlNumericFieldModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlNumericFieldModel.java
index 4ea032cce8a5..913f4235911f 100644
--- a/qadevOOo/tests/java/ifc/awt/_UnoControlNumericFieldModel.java
+++ b/qadevOOo/tests/java/ifc/awt/_UnoControlNumericFieldModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -68,7 +68,7 @@ public class _UnoControlNumericFieldModel extends MultiPropertyTest {
}
}) ;
}
-
+
/**
* This property can be VOID, and in case if it is so new
* value must defined.
@@ -79,7 +79,7 @@ public class _UnoControlNumericFieldModel extends MultiPropertyTest {
return utils.isVoid(old) ? new Integer(1234) : null ;
}
}) ;
- }
+ }
/**
* This property can be VOID, and in case if it is so new
@@ -92,7 +92,7 @@ public class _UnoControlNumericFieldModel extends MultiPropertyTest {
}
}) ;
}
-
+
/**
* This property can be VOID, and in case if it is so new
* value must defined.
@@ -103,7 +103,7 @@ public class _UnoControlNumericFieldModel extends MultiPropertyTest {
return utils.isVoid(old) ? new Integer(4321) : null ;
}
}) ;
- }
+ }
/**
* This property can be VOID, and in case if it is so new
diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlPatternFieldModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlPatternFieldModel.java
index 2fa75c03ba53..51fb016698ce 100644
--- a/qadevOOo/tests/java/ifc/awt/_UnoControlPatternFieldModel.java
+++ b/qadevOOo/tests/java/ifc/awt/_UnoControlPatternFieldModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -64,7 +64,7 @@ public class _UnoControlPatternFieldModel extends MultiPropertyTest {
}
}) ;
}
-
+
/**
* This property can be VOID, and in case if it is so new
* value must defined.
@@ -75,7 +75,7 @@ public class _UnoControlPatternFieldModel extends MultiPropertyTest {
return utils.isVoid(old) ? new Integer(1234) : null ;
}
}) ;
- }
+ }
/**
* This property can be VOID, and in case if it is so new
@@ -88,7 +88,7 @@ public class _UnoControlPatternFieldModel extends MultiPropertyTest {
}
}) ;
}
-
+
/**
* This property can be VOID, and in case if it is so new
* value must defined.
@@ -99,7 +99,7 @@ public class _UnoControlPatternFieldModel extends MultiPropertyTest {
return utils.isVoid(old) ? new Integer(4321) : null ;
}
}) ;
- }
+ }
/**
* This property can be VOID, and in case if it is so new
diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlProgressBarModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlProgressBarModel.java
index 54bdb7195f16..a59e9f0963a2 100644
--- a/qadevOOo/tests/java/ifc/awt/_UnoControlProgressBarModel.java
+++ b/qadevOOo/tests/java/ifc/awt/_UnoControlProgressBarModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlRadioButtonModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlRadioButtonModel.java
index b7b54c05addf..31442493895b 100644
--- a/qadevOOo/tests/java/ifc/awt/_UnoControlRadioButtonModel.java
+++ b/qadevOOo/tests/java/ifc/awt/_UnoControlRadioButtonModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -71,7 +71,7 @@ public class _UnoControlRadioButtonModel extends MultiPropertyTest {
}
}) ;
}
-
+
/**
* Redefined method returns value, that differs from property value.
*/
@@ -83,7 +83,7 @@ public class _UnoControlRadioButtonModel extends MultiPropertyTest {
return new Integer(17);
}
};
-
+
/**
* This property can be void, so if old value is <code> null </code>
* new value must be specified.
@@ -91,8 +91,8 @@ public class _UnoControlRadioButtonModel extends MultiPropertyTest {
public void _TextLineColor() {
log.println("Testing with custom Property tester") ;
testProperty("TextLineColor", ColorTester) ;
- }
-
+ }
+
/**
* This property can be VOID, and in case if it is so new
* value must defined.
@@ -103,6 +103,6 @@ public class _UnoControlRadioButtonModel extends MultiPropertyTest {
return utils.isVoid(old) ? new Integer(1234) : null ;
}
}) ;
- }
+ }
}
diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlScrollBarModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlScrollBarModel.java
index 824c6f0185d8..edb8a07b986b 100644
--- a/qadevOOo/tests/java/ifc/awt/_UnoControlScrollBarModel.java
+++ b/qadevOOo/tests/java/ifc/awt/_UnoControlScrollBarModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -58,12 +58,12 @@ public class _UnoControlScrollBarModel extends MultiPropertyTest {
*/
public void _BackgroundColor() {
testProperty("BackgroundColor", new PropertyTester() {
- protected Object getNewValue(String p, Object old) {
+ protected Object getNewValue(String p, Object old) {
return utils.isVoid(old) ? new Integer(32768) : null ;
}
}) ;
}
-
+
/**
* This property can be VOID, and in case if it is so new
* value must defined.
@@ -74,8 +74,8 @@ public class _UnoControlScrollBarModel extends MultiPropertyTest {
return utils.isVoid(old) ? new Integer(1234) : null ;
}
}) ;
- }
-
+ }
+
/**
* This property can be VOID, and in case if it is so new
* value must defined.
@@ -86,15 +86,15 @@ public class _UnoControlScrollBarModel extends MultiPropertyTest {
return utils.isVoid(old) ? new Integer(65324) : null ;
}
}) ;
- }
-
+ }
+
/**
* This property can be VOID, and in case if it is so new
* value must defined.
*/
public void _ScrollValue() {
testProperty("ScrollValue", new PropertyTester() {
- protected Object getNewValue(String p, Object old) {
+ protected Object getNewValue(String p, Object old) {
return utils.isVoid(old) ? new Integer(10) : new Integer(15) ;
}
}) ;
diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlSpinButtonModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlSpinButtonModel.java
index a0489db5cdf6..12464db2a4ff 100644
--- a/qadevOOo/tests/java/ifc/awt/_UnoControlSpinButtonModel.java
+++ b/qadevOOo/tests/java/ifc/awt/_UnoControlSpinButtonModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -31,19 +31,19 @@ import lib.MultiPropertyTest;
import util.utils;
public class _UnoControlSpinButtonModel extends MultiPropertyTest {
-
+
/**
* This property can be VOID, and in case if it is so new
* value must defined.
*/
public void _BackgroundColor() {
testProperty("BackgroundColor", new PropertyTester() {
- protected Object getNewValue(String p, Object old) {
+ protected Object getNewValue(String p, Object old) {
return utils.isVoid(old) ? new Integer(32768) : null ;
}
}) ;
}
-
+
/**
* This property can be VOID, and in case if it is so new
* value must defined.
@@ -54,8 +54,8 @@ public class _UnoControlSpinButtonModel extends MultiPropertyTest {
return utils.isVoid(old) ? new Integer(1234) : null ;
}
}) ;
- }
-
+ }
+
/**
* This property can be VOID, and in case if it is so new
* value must defined.
@@ -66,6 +66,6 @@ public class _UnoControlSpinButtonModel extends MultiPropertyTest {
return utils.isVoid(old) ? new Integer(65324) : null ;
}
}) ;
- }
-
+ }
+
} \ No newline at end of file
diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlTimeFieldModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlTimeFieldModel.java
index 1e1a0b78d058..035ca42be8a1 100644
--- a/qadevOOo/tests/java/ifc/awt/_UnoControlTimeFieldModel.java
+++ b/qadevOOo/tests/java/ifc/awt/_UnoControlTimeFieldModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -72,7 +72,7 @@ public class _UnoControlTimeFieldModel extends MultiPropertyTest {
}
}) ;
}
-
+
/**
* This property can be VOID, and in case if it is so new
* value must defined.
@@ -83,7 +83,7 @@ public class _UnoControlTimeFieldModel extends MultiPropertyTest {
return utils.isVoid(old) ? new Integer(1234) : null ;
}
}) ;
- }
+ }
/**
* This property can be VOID, and in case if it is so new
diff --git a/qadevOOo/tests/java/ifc/awt/_XButton.java b/qadevOOo/tests/java/ifc/awt/_XButton.java
index 3aacd8515144..c8c9adb2cf33 100644
--- a/qadevOOo/tests/java/ifc/awt/_XButton.java
+++ b/qadevOOo/tests/java/ifc/awt/_XButton.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/_XCheckBox.java b/qadevOOo/tests/java/ifc/awt/_XCheckBox.java
index e8307ed8f8bb..a0063d76e9d6 100644
--- a/qadevOOo/tests/java/ifc/awt/_XCheckBox.java
+++ b/qadevOOo/tests/java/ifc/awt/_XCheckBox.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/_XComboBox.java b/qadevOOo/tests/java/ifc/awt/_XComboBox.java
index 8dd65e33050c..aa3aecbcca2d 100644
--- a/qadevOOo/tests/java/ifc/awt/_XComboBox.java
+++ b/qadevOOo/tests/java/ifc/awt/_XComboBox.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/_XControl.java b/qadevOOo/tests/java/ifc/awt/_XControl.java
index fbf10ca97271..7f12c8cabad8 100644
--- a/qadevOOo/tests/java/ifc/awt/_XControl.java
+++ b/qadevOOo/tests/java/ifc/awt/_XControl.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/_XControlContainer.java b/qadevOOo/tests/java/ifc/awt/_XControlContainer.java
index 831df3461041..3ee305ea4e84 100644
--- a/qadevOOo/tests/java/ifc/awt/_XControlContainer.java
+++ b/qadevOOo/tests/java/ifc/awt/_XControlContainer.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/_XCurrencyField.java b/qadevOOo/tests/java/ifc/awt/_XCurrencyField.java
index 588962be5afd..755643ad522b 100644
--- a/qadevOOo/tests/java/ifc/awt/_XCurrencyField.java
+++ b/qadevOOo/tests/java/ifc/awt/_XCurrencyField.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/_XDataTransferProviderAccess.java b/qadevOOo/tests/java/ifc/awt/_XDataTransferProviderAccess.java
index 909723b8a429..1d1ccf3a3fe5 100644
--- a/qadevOOo/tests/java/ifc/awt/_XDataTransferProviderAccess.java
+++ b/qadevOOo/tests/java/ifc/awt/_XDataTransferProviderAccess.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/_XDateField.java b/qadevOOo/tests/java/ifc/awt/_XDateField.java
index a8eaf303302e..fd22837a36f5 100644
--- a/qadevOOo/tests/java/ifc/awt/_XDateField.java
+++ b/qadevOOo/tests/java/ifc/awt/_XDateField.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -75,12 +75,12 @@ public class _XDateField extends MultiMethodTest {
requiredMethod("getDate()") ;
boolean result = true ;
- oObj.setDate(19000101) ;
+ oObj.setDate(19000101) ;
result = oObj.getDate() == 19000101 ;
-
+
if (! result ) {
- System.out.println("getDate: "+oObj.getDate()+" , expected 19000101");
+ System.out.println("getDate: "+oObj.getDate()+" , expected 19000101");
}
tRes.tested("setDate()", result) ;
diff --git a/qadevOOo/tests/java/ifc/awt/_XDialog.java b/qadevOOo/tests/java/ifc/awt/_XDialog.java
index a5fc0bf98170..91dc2a0cdf0f 100644
--- a/qadevOOo/tests/java/ifc/awt/_XDialog.java
+++ b/qadevOOo/tests/java/ifc/awt/_XDialog.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/_XFixedText.java b/qadevOOo/tests/java/ifc/awt/_XFixedText.java
index e93d97e85e19..5fc61841b7f5 100644
--- a/qadevOOo/tests/java/ifc/awt/_XFixedText.java
+++ b/qadevOOo/tests/java/ifc/awt/_XFixedText.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/_XImageConsumer.java b/qadevOOo/tests/java/ifc/awt/_XImageConsumer.java
index f47320fa3e2c..96e1de152adb 100644
--- a/qadevOOo/tests/java/ifc/awt/_XImageConsumer.java
+++ b/qadevOOo/tests/java/ifc/awt/_XImageConsumer.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/_XImageProducer.java b/qadevOOo/tests/java/ifc/awt/_XImageProducer.java
index 60dd0c9b7fdf..9e039772039c 100644
--- a/qadevOOo/tests/java/ifc/awt/_XImageProducer.java
+++ b/qadevOOo/tests/java/ifc/awt/_XImageProducer.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/_XItemListener.java b/qadevOOo/tests/java/ifc/awt/_XItemListener.java
index b5f920f4ffa7..27991c1eab52 100644
--- a/qadevOOo/tests/java/ifc/awt/_XItemListener.java
+++ b/qadevOOo/tests/java/ifc/awt/_XItemListener.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/_XLayoutConstrains.java b/qadevOOo/tests/java/ifc/awt/_XLayoutConstrains.java
index 81bfc6889175..4c11ebdb6b23 100644
--- a/qadevOOo/tests/java/ifc/awt/_XLayoutConstrains.java
+++ b/qadevOOo/tests/java/ifc/awt/_XLayoutConstrains.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/_XListBox.java b/qadevOOo/tests/java/ifc/awt/_XListBox.java
index 9d1e4a84702e..70becc6327cb 100644
--- a/qadevOOo/tests/java/ifc/awt/_XListBox.java
+++ b/qadevOOo/tests/java/ifc/awt/_XListBox.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/_XMessageBoxFactory.java b/qadevOOo/tests/java/ifc/awt/_XMessageBoxFactory.java
index 9c96506938da..9ec01eb5aaa1 100644
--- a/qadevOOo/tests/java/ifc/awt/_XMessageBoxFactory.java
+++ b/qadevOOo/tests/java/ifc/awt/_XMessageBoxFactory.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/_XNumericField.java b/qadevOOo/tests/java/ifc/awt/_XNumericField.java
index 65003777182c..3b86d1a9a22d 100644
--- a/qadevOOo/tests/java/ifc/awt/_XNumericField.java
+++ b/qadevOOo/tests/java/ifc/awt/_XNumericField.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/_XPatternField.java b/qadevOOo/tests/java/ifc/awt/_XPatternField.java
index 5cbd0145d76e..acf6312ba9a9 100644
--- a/qadevOOo/tests/java/ifc/awt/_XPatternField.java
+++ b/qadevOOo/tests/java/ifc/awt/_XPatternField.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/_XRadioButton.java b/qadevOOo/tests/java/ifc/awt/_XRadioButton.java
index 348ac264ecf5..c901c0cebadb 100644
--- a/qadevOOo/tests/java/ifc/awt/_XRadioButton.java
+++ b/qadevOOo/tests/java/ifc/awt/_XRadioButton.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/_XScrollBar.java b/qadevOOo/tests/java/ifc/awt/_XScrollBar.java
index a5a55d300aeb..cbaf7119ca77 100644
--- a/qadevOOo/tests/java/ifc/awt/_XScrollBar.java
+++ b/qadevOOo/tests/java/ifc/awt/_XScrollBar.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -47,7 +47,7 @@ public class _XScrollBar extends MultiMethodTest {
com.sun.star.awt.XAdjustmentListener listener = new AdjustmentListener();
public void _addAdjustmentListener() {
- util.FormTools.switchDesignOf((XMultiServiceFactory) tParam.getMSF(),
+ util.FormTools.switchDesignOf((XMultiServiceFactory) tParam.getMSF(),
(XTextDocument) tEnv.getObjRelation("Document"));
shortWait();
oObj.addAdjustmentListener(listener);
@@ -68,35 +68,35 @@ public class _XScrollBar extends MultiMethodTest {
requiredMethod("addAdjustmentListener()");
tRes.tested("removeAdjustmentListener()", true);
}
-
+
public void _setBlockIncrement() {
oObj.setBlockIncrement(15);
oObj.setBlockIncrement(5);
int bi = oObj.getBlockIncrement();
tRes.tested("setBlockIncrement()",bi==5);
- }
+ }
public void _getBlockIncrement() {
//this method is checked in the corresponding set method
//so that method is requiered here and if it works
//this method is given OK too
requiredMethod("setBlockIncrement()");
- tRes.tested("getBlockIncrement()", true);
+ tRes.tested("getBlockIncrement()", true);
}
-
+
public void _setLineIncrement() {
oObj.setLineIncrement(12);
oObj.setLineIncrement(2);
int li = oObj.getLineIncrement();
tRes.tested("setLineIncrement()",li==2);
- }
+ }
public void _getLineIncrement() {
//this method is checked in the corresponding set method
//so that method is requiered here and if it works
//this method is given OK too
requiredMethod("setLineIncrement()");
- tRes.tested("getLineIncrement()", true);
+ tRes.tested("getLineIncrement()", true);
}
public void _setMaximum() {
@@ -105,44 +105,44 @@ public class _XScrollBar extends MultiMethodTest {
int max = oObj.getMaximum();
tRes.tested("setMaximum()",max==480);
}
-
+
public void _getMaximum() {
//this method is checked in the corresponding set method
//so that method is requiered here and if it works
//this method is given OK too
requiredMethod("setMaximum()");
- tRes.tested("getMaximum()", true);
+ tRes.tested("getMaximum()", true);
}
-
+
public void _setOrientation() {
oObj.setOrientation(ScrollBarOrientation.HORIZONTAL);
oObj.setOrientation(ScrollBarOrientation.VERTICAL);
int ori = oObj.getOrientation();
tRes.tested("setOrientation()",ori==ScrollBarOrientation.VERTICAL);
- }
+ }
public void _getOrientation() {
//this method is checked in the corresponding set method
//so that method is requiered here and if it works
//this method is given OK too
requiredMethod("setOrientation()");
- tRes.tested("getOrientation()", true);
+ tRes.tested("getOrientation()", true);
}
-
+
public void _setValue() {
oObj.setMaximum(600);
oObj.setValue(480);
oObj.setValue(520);
int val = oObj.getValue();
tRes.tested("setValue()",val==520);
- }
+ }
public void _getValue() {
//this method is checked in the corresponding set method
//so that method is requiered here and if it works
//this method is given OK too
requiredMethod("setValue()");
- tRes.tested("getValue()", true);
+ tRes.tested("getValue()", true);
}
public void _setVisibleSize() {
@@ -150,14 +150,14 @@ public class _XScrollBar extends MultiMethodTest {
oObj.setVisibleSize(500);
int vs = oObj.getVisibleSize();
tRes.tested("setVisibleSize()",vs==500);
- }
-
+ }
+
public void _getVisibleSize() {
//this method is checked in the corresponding set method
//so that method is requiered here and if it works
//this method is given OK too
requiredMethod("setVisibleSize()");
- tRes.tested("getVisibleSize()", true);
+ tRes.tested("getVisibleSize()", true);
}
public void _setValues() {
@@ -165,8 +165,8 @@ public class _XScrollBar extends MultiMethodTest {
oObj.setValues(70, 210, 500);
int val = oObj.getValue();
int vs = oObj.getVisibleSize();
- int max = oObj.getMaximum();
- tRes.tested("setValues()",((val==70) && (vs==210) && (max==500)));
+ int max = oObj.getMaximum();
+ tRes.tested("setValues()",((val==70) && (vs==210) && (max==500)));
}
private void adjustScrollBar() {
@@ -176,17 +176,17 @@ public class _XScrollBar extends MultiMethodTest {
XScrollBar.class, tEnv.getTestObject());
sc.setValue(500);
-
+
shortWait();
XAccessible acc = (XAccessible) UnoRuntime.queryInterface(
XAccessible.class, tEnv.getTestObject());
XAccessibleComponent aCom = (XAccessibleComponent) UnoRuntime.queryInterface(
- XAccessibleComponent.class,
+ XAccessibleComponent.class,
acc.getAccessibleContext());
- Point location = aCom.getLocationOnScreen();
+ Point location = aCom.getLocationOnScreen();
//Point location = (Point) tEnv.getObjRelation("Location");
//XAccessibleComponent aCom = (XAccessibleComponent) tEnv.getObjRelation("Location");
//Point location = aCom.getLocationOnScreen();
diff --git a/qadevOOo/tests/java/ifc/awt/_XSpinField.java b/qadevOOo/tests/java/ifc/awt/_XSpinField.java
index 327aacbef7bf..e18bc8589610 100644
--- a/qadevOOo/tests/java/ifc/awt/_XSpinField.java
+++ b/qadevOOo/tests/java/ifc/awt/_XSpinField.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/_XSpinValue.java b/qadevOOo/tests/java/ifc/awt/_XSpinValue.java
index e0ab3513b6fe..dbbcc2c0332c 100644
--- a/qadevOOo/tests/java/ifc/awt/_XSpinValue.java
+++ b/qadevOOo/tests/java/ifc/awt/_XSpinValue.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -40,13 +40,13 @@ import java.awt.event.InputEvent;
import lib.MultiMethodTest;
public class _XSpinValue extends MultiMethodTest {
-
+
public XSpinValue oObj;
public boolean adjusted = false;
com.sun.star.awt.XAdjustmentListener listener = new AdjustmentListener();
public void _addAdjustmentListener() {
- util.FormTools.switchDesignOf((XMultiServiceFactory) tParam.getMSF(),
+ util.FormTools.switchDesignOf((XMultiServiceFactory) tParam.getMSF(),
(XTextDocument) tEnv.getObjRelation("Document"));
shortWait();
oObj.addAdjustmentListener(listener);
@@ -67,22 +67,22 @@ public class _XSpinValue extends MultiMethodTest {
requiredMethod("addAdjustmentListener()");
tRes.tested("removeAdjustmentListener()", true);
}
-
+
public void _setSpinIncrement() {
oObj.setSpinIncrement(15);
oObj.setSpinIncrement(5);
int bi = oObj.getSpinIncrement();
tRes.tested("setSpinIncrement()",bi==5);
- }
+ }
public void _getSpinIncrement() {
//this method is checked in the corresponding set method
//so that method is requiered here and if it works
//this method is given OK too
requiredMethod("setSpinIncrement()");
- tRes.tested("getSpinIncrement()", true);
+ tRes.tested("getSpinIncrement()", true);
}
-
+
public void _setMaximum() {
oObj.setMaximum(490);
@@ -90,30 +90,30 @@ public class _XSpinValue extends MultiMethodTest {
int max = oObj.getMaximum();
tRes.tested("setMaximum()",max==480);
}
-
+
public void _getMaximum() {
//this method is checked in the corresponding set method
//so that method is requiered here and if it works
//this method is given OK too
requiredMethod("setMaximum()");
- tRes.tested("getMaximum()", true);
+ tRes.tested("getMaximum()", true);
}
-
+
public void _setMinimum() {
oObj.setMinimum(90);
oObj.setMinimum(80);
int max = oObj.getMinimum();
tRes.tested("setMinimum()",max==80);
}
-
+
public void _getMinimum() {
//this method is checked in the corresponding set method
//so that method is requiered here and if it works
//this method is given OK too
requiredMethod("setMinimum()");
- tRes.tested("getMinimum()", true);
- }
-
+ tRes.tested("getMinimum()", true);
+ }
+
public void _setOrientation() {
boolean res = true;
try {
@@ -125,30 +125,30 @@ public class _XSpinValue extends MultiMethodTest {
int ori = oObj.getOrientation();
res &= (ori==ScrollBarOrientation.VERTICAL);
tRes.tested("setOrientation()",res );
- }
+ }
public void _getOrientation() {
//this method is checked in the corresponding set method
//so that method is requiered here and if it works
//this method is given OK too
requiredMethod("setOrientation()");
- tRes.tested("getOrientation()", true);
+ tRes.tested("getOrientation()", true);
}
-
+
public void _setValue() {
oObj.setMaximum(600);
oObj.setValue(480);
oObj.setValue(520);
int val = oObj.getValue();
tRes.tested("setValue()",val==520);
- }
+ }
public void _getValue() {
//this method is checked in the corresponding set method
//so that method is requiered here and if it works
//this method is given OK too
requiredMethod("setValue()");
- tRes.tested("getValue()", true);
+ tRes.tested("getValue()", true);
}
public void _setValues() {
@@ -156,8 +156,8 @@ public class _XSpinValue extends MultiMethodTest {
oObj.setValues(70, 210, 200);
int val = oObj.getValue();
int min = oObj.getMinimum();
- int max = oObj.getMaximum();
- tRes.tested("setValues()",((min==70) && (max==210) && (val==200)));
+ int max = oObj.getMaximum();
+ tRes.tested("setValues()",((min==70) && (max==210) && (val==200)));
}
private void adjustScrollBar() {
@@ -167,17 +167,17 @@ public class _XSpinValue extends MultiMethodTest {
XSpinValue.class, tEnv.getTestObject());
sv.setValue(500);
-
+
shortWait();
XAccessible acc = (XAccessible) UnoRuntime.queryInterface(
XAccessible.class, tEnv.getTestObject());
XAccessibleComponent aCom = (XAccessibleComponent) UnoRuntime.queryInterface(
- XAccessibleComponent.class,
+ XAccessibleComponent.class,
acc.getAccessibleContext());
- Point location = aCom.getLocationOnScreen();
+ Point location = aCom.getLocationOnScreen();
//Point location = (Point) tEnv.getObjRelation("Location");
//XAccessibleComponent aCom = (XAccessibleComponent) tEnv.getObjRelation("Location");
//Point location = aCom.getLocationOnScreen();
@@ -216,5 +216,5 @@ public class _XSpinValue extends MultiMethodTest {
System.out.println("Listener disposed");
}
}
-
+
}
diff --git a/qadevOOo/tests/java/ifc/awt/_XTabController.java b/qadevOOo/tests/java/ifc/awt/_XTabController.java
index baf9b8f97bcc..a266bcbfc0f9 100644
--- a/qadevOOo/tests/java/ifc/awt/_XTabController.java
+++ b/qadevOOo/tests/java/ifc/awt/_XTabController.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/_XTabControllerModel.java b/qadevOOo/tests/java/ifc/awt/_XTabControllerModel.java
index 42442185c539..c1637450dbd9 100644
--- a/qadevOOo/tests/java/ifc/awt/_XTabControllerModel.java
+++ b/qadevOOo/tests/java/ifc/awt/_XTabControllerModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/_XTextComponent.java b/qadevOOo/tests/java/ifc/awt/_XTextComponent.java
index 850b281b00f8..3a8a64c115fe 100644
--- a/qadevOOo/tests/java/ifc/awt/_XTextComponent.java
+++ b/qadevOOo/tests/java/ifc/awt/_XTextComponent.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -188,12 +188,12 @@ public class _XTextComponent extends MultiMethodTest {
oObj.setText(text);
oObj.setSelection(new Selection(0,3));
boolean result = oObj.getSelectedText().equals(text);
-
+
if (! result) {
System.out.println("Getting '"+oObj.getSelectedText()+"'");
System.out.println("Expected '"+text+"'");
}
-
+
tRes.tested("getSelectedText()",result);
}
diff --git a/qadevOOo/tests/java/ifc/awt/_XTextLayoutConstrains.java b/qadevOOo/tests/java/ifc/awt/_XTextLayoutConstrains.java
index 135a1abe917b..10663621dd2d 100644
--- a/qadevOOo/tests/java/ifc/awt/_XTextLayoutConstrains.java
+++ b/qadevOOo/tests/java/ifc/awt/_XTextLayoutConstrains.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/_XTextListener.java b/qadevOOo/tests/java/ifc/awt/_XTextListener.java
index df40799cb369..245642a803d8 100644
--- a/qadevOOo/tests/java/ifc/awt/_XTextListener.java
+++ b/qadevOOo/tests/java/ifc/awt/_XTextListener.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -115,14 +115,14 @@ public class _XTextListener extends MultiMethodTest {
tRes.tested("textChanged()", result) ;
}
-
+
/**
* Forces environment recreation.
*/
protected void after() {
disposeEnvironment();
}
-
+
}
diff --git a/qadevOOo/tests/java/ifc/awt/_XTimeField.java b/qadevOOo/tests/java/ifc/awt/_XTimeField.java
index 95f31140b847..59da87e5de7e 100644
--- a/qadevOOo/tests/java/ifc/awt/_XTimeField.java
+++ b/qadevOOo/tests/java/ifc/awt/_XTimeField.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -74,7 +74,7 @@ public class _XTimeField extends MultiMethodTest {
oObj.setTime(11150000) ;
result = oObj.getTime() == 11150000 ;
-
+
if (! result ) {
System.out.println("Getting "+oObj.getTime()+ " expected 11150000");
}
diff --git a/qadevOOo/tests/java/ifc/awt/_XToolkit.java b/qadevOOo/tests/java/ifc/awt/_XToolkit.java
index 8824c3bba9ac..c70d66594013 100644
--- a/qadevOOo/tests/java/ifc/awt/_XToolkit.java
+++ b/qadevOOo/tests/java/ifc/awt/_XToolkit.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/_XTopWindow.java b/qadevOOo/tests/java/ifc/awt/_XTopWindow.java
index e1203d7a6e31..f3e2d7c5354c 100644
--- a/qadevOOo/tests/java/ifc/awt/_XTopWindow.java
+++ b/qadevOOo/tests/java/ifc/awt/_XTopWindow.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/_XUnoControlContainer.java b/qadevOOo/tests/java/ifc/awt/_XUnoControlContainer.java
index 99fd41135c1a..41c2579eda81 100644
--- a/qadevOOo/tests/java/ifc/awt/_XUnoControlContainer.java
+++ b/qadevOOo/tests/java/ifc/awt/_XUnoControlContainer.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -56,12 +56,12 @@ public class _XUnoControlContainer extends MultiMethodTest {
private XTabController tabControl1 = null;
private XTabController tabControl2 = null;
- /**
+ /**
* This method gets the object relations.
- *
+ *
*/
protected void before() {
-
+
tabControl1 = (XTabController) tEnv.getObjRelation("TABCONTROL1");
tabControl2 = (XTabController) tEnv.getObjRelation("TABCONTROL2");
if ((tabControl1 == null) || (tabControl2 == null)){
@@ -70,16 +70,16 @@ public class _XUnoControlContainer extends MultiMethodTest {
}
TabControllers[0] = tabControl1;
TabControllers[1] = tabControl2;
-
+
}
-
-
-
+
+
+
/**
* This tests removes the object relations <code>TABCONTROL1</code> and
* <code>TABCONTROL1</code>.
- * Has <b> OK </b> status if the sequenze of <code>XTabController[]</code>
- * get before calling method is smaller then sequenze of
+ * Has <b> OK </b> status if the sequenze of <code>XTabController[]</code>
+ * get before calling method is smaller then sequenze of
* <code>XTabController[]</code> get after calling method.<p>
*
* The following method tests are to be completed successfully before :
@@ -91,23 +91,23 @@ public class _XUnoControlContainer extends MultiMethodTest {
public void _setTabControllers() {
requiredMethod( "getTabControllers()");
requiredMethod( "removeTabController()");
-
+
log.println("removing TABCONTROL1 and TABCONTROL2");
oObj.removeTabController(tabControl1);
oObj.removeTabController(tabControl2);
-
+
log.println("get current controllers");
XTabController[] myTabControllers = oObj.getTabControllers();
log.println("set new controllers");
oObj.setTabControllers( TabControllers );
-
+
log.println("get new current controllers");
XTabController[] myNewTabControllers = oObj.getTabControllers();
- tRes.tested("setTabControllers()",
+ tRes.tested("setTabControllers()",
(myTabControllers.length < myNewTabControllers.length ));
-
+
}
/**
@@ -127,28 +127,28 @@ public class _XUnoControlContainer extends MultiMethodTest {
/**
* Test calls the method with object relation 'TABCONTROL1' as a parameter.<p>
- * Has <b> OK </b> status if the sequenze of <code>XTabController[]</code>
- * get before calling method is smaller then sequenze of
+ * Has <b> OK </b> status if the sequenze of <code>XTabController[]</code>
+ * get before calling method is smaller then sequenze of
* <code>XTabController[]</code> get after calling method.<p>
*/
public void _addTabController() {
log.println("get current controllers");
XTabController[] myTabControllers = oObj.getTabControllers();
-
+
log.println("add TABCONTROL1");
oObj.addTabController( tabControl1 );
-
+
log.println("get new current controllers");
XTabController[] myNewTabControllers = oObj.getTabControllers();
-
- tRes.tested("addTabController()",
+
+ tRes.tested("addTabController()",
(myTabControllers.length < myNewTabControllers.length ));
}
/**
* Test calls the method with object relation 'TABCONTROL2' as a parameter.<p>
- * Has <b> OK </b> status if the sequenze of <code>XTabController[]</code>
- * get before calling method is smaller then sequenze of
+ * Has <b> OK </b> status if the sequenze of <code>XTabController[]</code>
+ * get before calling method is smaller then sequenze of
* <code>XTabController[]</code> get after calling method.<p>
*
* The following method tests are to be completed successfully before :
@@ -163,17 +163,17 @@ public class _XUnoControlContainer extends MultiMethodTest {
log.println("add TABCONTROL2");
oObj.addTabController( tabControl2 );
-
+
log.println("get current controllers");
XTabController[] myTabControllers = oObj.getTabControllers();
-
+
log.println("remove TABCONTROL2");
oObj.removeTabController(tabControl2);
log.println("get new current controllers");
XTabController[] myNewTabControllers = oObj.getTabControllers();
- tRes.tested("removeTabController()",
+ tRes.tested("removeTabController()",
(myTabControllers.length > myNewTabControllers.length ));
}
diff --git a/qadevOOo/tests/java/ifc/awt/_XUserInputInterception.java b/qadevOOo/tests/java/ifc/awt/_XUserInputInterception.java
index cf52cfb5bd57..a5cbb17829f4 100644
--- a/qadevOOo/tests/java/ifc/awt/_XUserInputInterception.java
+++ b/qadevOOo/tests/java/ifc/awt/_XUserInputInterception.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -67,9 +67,9 @@ import util.AccessibilityTools;
*/
public class _XUserInputInterception extends MultiMethodTest {
public XUserInputInterception oObj = null;
-
+
private XModel m_XModel = null;
-
+
/** the listener 1 for the mouse click test */
private MyMouseClickHandler1 m_MouseListener1 = null;
/** the listener 2 for the mouse click test */
@@ -84,23 +84,23 @@ public class _XUserInputInterception extends MultiMethodTest {
private boolean m_mousePressed1 = false;
/** indicates if the mouseReleased event was called*/
private boolean m_mouseReleased1 = false;
-
+
/** indicates if the mousePressed event was called*/
private boolean m_mousePressed2 = false;
/** indicates if the mouseReleased event was called*/
private boolean m_mouseReleased2 = false;
-
+
/** indicates if the mousePressed event was called*/
private boolean m_keyPressed1 = false;
/** indicates if the mouseReleased event was called*/
private boolean m_keyReleased1 = false;
-
+
/** indicates if the mousePressed event was called*/
private boolean m_keyPressed2 = false;
/** indicates if the mouseReleased event was called*/
private boolean m_keyReleased2 = false;
-
- /** get the object rlation XUserInputInterception.XModel from the
+
+ /** get the object rlation XUserInputInterception.XModel from the
* test environment
*/
protected void before() {
@@ -113,25 +113,25 @@ public class _XUserInputInterception extends MultiMethodTest {
/**
* This test adds two different key listener to the object. <p>
- *
+ *
* Has <b> OK </b> if no exception is thrown.
*/
public void _addKeyHandler() {
-
+
log.println("creating key listener 1");
m_KeyListener1 = new MyKeyHandler1();
-
+
log.println("creating key listener 2");
m_KeyListener2 = new MyKeyHandler2();
-
-
+
+
log.println("adding key listener 1");
oObj.addKeyHandler(m_KeyListener1);
-
+
log.println("adding key listener 2");
oObj.addKeyHandler(m_KeyListener2);
-
+
tRes.tested("addKeyHandler()", true);
}
@@ -149,21 +149,21 @@ public class _XUserInputInterception extends MultiMethodTest {
requiredMethod("addKeyHandler()");
log.println("remove key listener 2");
-
+
oObj.removeKeyHandler(m_KeyListener2);
-
+
log.println("starting thread to check the key listener...");
EventTrigger et = new EventTrigger(m_XModel, EventTriggerType.KEY_TEXT_INTO_DOC);
et.run();
-
+
util.utils.shortWait(tParam.getInt(util.PropertyName.SHORT_WAIT) * 2);
log.println("key listener thread should be finished.");
-
-
+
+
boolean bOK = m_keyPressed1 & m_keyReleased1 &
! m_keyPressed2 & ! m_keyReleased2;
-
+
if (! bOK){
log.println("The key listener has not the expectd status:");
log.println("listener\texpected\tgot");
@@ -172,16 +172,16 @@ public class _XUserInputInterception extends MultiMethodTest {
log.println("keyPressed2\tfalse\t"+m_keyPressed2);
log.println("keyReleased2\tfalse\t"+m_keyReleased2);
}
-
+
log.println("remove Key listener 1");
oObj.removeKeyHandler(m_KeyListener1);
-
+
tRes.tested("removeKeyHandler()", bOK);
}
/**
* This test adds two different mouse klick listener to the object. <p>
- *
+ *
* Has <b> OK </b> if no exception is thrown.
*/
public void _addMouseClickHandler() {
@@ -189,12 +189,12 @@ public class _XUserInputInterception extends MultiMethodTest {
m_MouseListener1 = new MyMouseClickHandler1();
log.println("creating mouse listener 2");
m_MouseListener2 = new MyMouseClickHandler2();
-
+
log.println("adding mouse listener 1");
oObj.addMouseClickHandler(m_MouseListener1);
log.println("adding mouse listener 2");
oObj.addMouseClickHandler(m_MouseListener2);
-
+
tRes.tested("addMouseClickHandler()", true);
}
@@ -210,22 +210,22 @@ public class _XUserInputInterception extends MultiMethodTest {
*/
public void _removeMouseClickHandler() {
requiredMethod("addMouseClickHandler");
-
+
log.println("remove mouse listener 2");
-
+
oObj.removeMouseClickHandler(m_MouseListener2);
-
+
log.println("starting thread to check the mouse listener...");
EventTrigger et = new EventTrigger(m_XModel, EventTriggerType.MOUSE_KLICK_INTO_DOC);
et.run();
-
+
util.utils.shortWait(tParam.getInt(util.PropertyName.SHORT_WAIT) * 2);
log.println("mouse listener thread should be finished.");
-
+
boolean bOK = m_mousePressed1 & m_mouseReleased1 &
! m_mousePressed2 & ! m_mouseReleased2;
-
+
if (! bOK){
log.println("The mouse listener has not the expectd status:");
log.println("listener\t\texpected\tgot");
@@ -234,21 +234,21 @@ public class _XUserInputInterception extends MultiMethodTest {
log.println("mousePressed2\tfalse\t\t"+m_mousePressed2);
log.println("mouseReleased2\tfalse\t\t"+m_mouseReleased2);
}
-
+
log.println("remove mouse listener 1");
oObj.removeMouseClickHandler(m_MouseListener1);
-
+
tRes.tested("removeMouseClickHandler()", bOK);
}
-
+
/**
* Forces environment recreation.
*/
protected void after() {
disposeEnvironment();
- }
-
+ }
+
/**
* Listener which added and its method must be called
* on <code>keyPressed</code> and <code>keyReleased</code> call.
@@ -322,7 +322,7 @@ public class _XUserInputInterception extends MultiMethodTest {
"This should not be happen because listener is removed!");
}
}
-
+
/**
* Listener which added and its method must be called
* on <code>mousePressed</code> and <code>mouseReleased</code> call.
@@ -358,7 +358,7 @@ public class _XUserInputInterception extends MultiMethodTest {
log.println("XMouseClickHandler 1: disposing-Event");
}
};
-
+
/**
* Listener which added and removed. Its method must NOT be called
* on <code>mousePressed</code> and <code>mouseReleased</code> call.
@@ -397,14 +397,14 @@ public class _XUserInputInterception extends MultiMethodTest {
" This should not be happen because listener is removed!");
}
};
-
+
/**
* To check the events this class is a thread which click a mouse button and
* press a key with the <CODE>Robot</CODE> class
* @see java.awt.Robot
*/
private class EventTrigger extends Thread{
-
+
/**
* represents a <CODE>AccessibilityTools</CODE>
*/
@@ -418,7 +418,7 @@ public class _XUserInputInterception extends MultiMethodTest {
* represents a <CODE>XModel</CODE> of a document
*/
private XModel xModel = null;
-
+
/**
* Creates an instacne of this class. The parameter <CODE>eType</CODE> represents
* the kind of event wich will be triggert at <CODE>run()</CODE>
@@ -430,17 +430,17 @@ public class _XUserInputInterception extends MultiMethodTest {
this.xModel = model;
this.eventType = eType;
}
-
+
/**
* Triggers the event wich is represented by <CODE>eventType</CODE>
* The scenarios are:
* <ul>
* <li>EventTest.EventTriggerType.MOUSE_KLICK_INTO_DOC
- * which calls
+ * which calls
* <li><CODE>clickIntoDoc</CODE></LI>
* </LI>
* <li>EventTest.EventTriggerType.KEY_TEXT_INTO_DOC
- * which calls
+ * which calls
* <li><CODE>clickIntodoc</CODE></LI>
* <li><CODE>keyIntoDoc</CODE></LI>
* </LI>
@@ -449,7 +449,7 @@ public class _XUserInputInterception extends MultiMethodTest {
public void run(){
switch (this.eventType){
-
+
case EventTriggerType.MOUSE_KLICK_INTO_DOC:
clickIntoDoc();
break;
@@ -457,7 +457,7 @@ public class _XUserInputInterception extends MultiMethodTest {
clickIntoDoc();
keyIntoDoc();
break;
-
+
}
}
/**
@@ -471,14 +471,14 @@ public class _XUserInputInterception extends MultiMethodTest {
try{
util.DesktopTools.bringWindowToFront(xModel);
-
+
XWindow xWindow = at.getCurrentWindow(
- (XMultiServiceFactory) tParam.getMSF(),
+ (XMultiServiceFactory) tParam.getMSF(),
xModel);
-
+
XAccessible xRoot = at.getAccessibleObject(xWindow);
-
-
+
+
XAccessibleContext xPanel = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PANEL);
XAccessibleComponent xPanelCont = (XAccessibleComponent) UnoRuntime.queryInterface(XAccessibleComponent.class, xPanel);
@@ -504,7 +504,7 @@ public class _XUserInputInterception extends MultiMethodTest {
log.println("could not click into the scroll bar: " + e.toString());
}
}
-
+
/**
* This method press the "A" key. Therefore it uses the <CODE>Robot</CODE>
* class.
@@ -519,21 +519,21 @@ public class _XUserInputInterception extends MultiMethodTest {
} catch (java.awt.AWTException e) {
log.println("couldn't press key");
}
-
+
}
}
-
- /** This interface represents all possible actions which could be used
+
+ /** This interface represents all possible actions which could be used
* in the <CODE>EventTrigger</CODE> class.
* @see EventTest.EventTrigger
- */
+ */
private interface EventTriggerType{
-
+
/** klick the mouse into the scroll bar*/
final public static int MOUSE_KLICK_INTO_DOC = 1;
-
+
/** write some text into a spread sheet*/
final public static int KEY_TEXT_INTO_DOC = 2;
- }
+ }
}
diff --git a/qadevOOo/tests/java/ifc/awt/_XView.java b/qadevOOo/tests/java/ifc/awt/_XView.java
index a3f87c2ea3dc..a54c5268387b 100644
--- a/qadevOOo/tests/java/ifc/awt/_XView.java
+++ b/qadevOOo/tests/java/ifc/awt/_XView.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -131,13 +131,13 @@ public class _XView extends MultiMethodTest {
oObj.setZoom(2,2);
tRes.tested("setZoom()", true);
}
-
+
/**
* Forces environment recreation.
*/
protected void after() {
disposeEnvironment();
- }
-
+ }
+
}
diff --git a/qadevOOo/tests/java/ifc/awt/_XWindow.java b/qadevOOo/tests/java/ifc/awt/_XWindow.java
index f3cfda4e6085..80c3c70763fb 100644
--- a/qadevOOo/tests/java/ifc/awt/_XWindow.java
+++ b/qadevOOo/tests/java/ifc/awt/_XWindow.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -270,7 +270,7 @@ public class _XWindow extends MultiMethodTest {
log.println("set object invisible...");
oObj.setVisible(false);
shortWait();
- res = wListener.hidden && !wListener.resized
+ res = wListener.hidden && !wListener.resized
&& !wListener.moved && !wListener.shown;
result &= res;
if (!res) {
@@ -288,7 +288,7 @@ public class _XWindow extends MultiMethodTest {
log.println("set object visible...");
oObj.setVisible(true) ;
shortWait();
- res = wListener.shown && !wListener.resized &&
+ res = wListener.shown && !wListener.resized &&
!wListener.hidden && !wListener.moved;
result &= res;
if (!res) {
diff --git a/qadevOOo/tests/java/ifc/awt/tree/_TreeControlModel.java b/qadevOOo/tests/java/ifc/awt/tree/_TreeControlModel.java
index 197ec80110e8..4cd54d7ae8e4 100644
--- a/qadevOOo/tests/java/ifc/awt/tree/_TreeControlModel.java
+++ b/qadevOOo/tests/java/ifc/awt/tree/_TreeControlModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
diff --git a/qadevOOo/tests/java/ifc/awt/tree/_XMutableTreeDataModel.java b/qadevOOo/tests/java/ifc/awt/tree/_XMutableTreeDataModel.java
index cc21a2828db0..d6ff1ce97dd9 100644
--- a/qadevOOo/tests/java/ifc/awt/tree/_XMutableTreeDataModel.java
+++ b/qadevOOo/tests/java/ifc/awt/tree/_XMutableTreeDataModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -45,7 +45,7 @@ import lib.MultiMethodTest;
public class _XMutableTreeDataModel extends MultiMethodTest {
public XMutableTreeDataModel oObj = null;
-
+
private XMutableTreeNode mNewNode = null;
/**
@@ -70,26 +70,26 @@ public class _XMutableTreeDataModel extends MultiMethodTest {
*/
public void _setRoot() {
requiredMethod("createNode()") ;
-
+
boolean bOK = true;
try {
-
+
oObj.setRoot(mNewNode);
} catch (com.sun.star.lang.IllegalArgumentException ex) {
bOK = false;
log.println("ERROR: while trying to set a new root an IllegalArgumentException was thrown:\n" + ex.toString());
}
-
+
try {
-
+
oObj.setRoot(null);
bOK = false;
log.println("ERROR: while trying to set a null object as root expected IllegalArgumentException was not thrown.");
} catch (com.sun.star.lang.IllegalArgumentException ex) {
log.println("expected IllegalArgumentException was thrown => ok");
-
+
}
-
+
tRes.tested("setRoot()", bOK);
}
diff --git a/qadevOOo/tests/java/ifc/awt/tree/_XMutableTreeNode.java b/qadevOOo/tests/java/ifc/awt/tree/_XMutableTreeNode.java
index e90665889733..1373d97c4904 100644
--- a/qadevOOo/tests/java/ifc/awt/tree/_XMutableTreeNode.java
+++ b/qadevOOo/tests/java/ifc/awt/tree/_XMutableTreeNode.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -51,68 +51,68 @@ import lib.StatusException;
* @see com.sun.star.awt.tree.XTreeDataModel
*/
public class _XMutableTreeNode extends MultiMethodTest {
-
+
public XMutableTreeNode oObj = null;
-
+
private int mCount = 0;
-
+
private XMutableTreeNodeCreator nodeCreator = null;
-
+
public static interface XMutableTreeNodeCreator{
public XMutableTreeNode createNode(String name);
}
-
+
public void before(){
nodeCreator = (XMutableTreeNodeCreator) tEnv.getObjRelation("XMutableTreeNodeCreator");
if (nodeCreator == null){
throw new StatusException(Status.failed(
"Couldn't get relation 'XMutableTreeNodeCreator'"));
}
-
+
}
-
+
public void _appendChild(){
boolean bOK = true;
-
+
log.println("try to append a valid node...");
-
+
XMutableTreeNode myNode = nodeCreator.createNode("myNodeToAppend");
-
+
try {
oObj.appendChild(myNode);
} catch (com.sun.star.lang.IllegalArgumentException ex) {
log.println("ERROR: could not appedn a valid node: " + ex.toString());
bOK = false;
}
-
+
log.println("try to append the node a second time...");
try {
-
+
oObj.appendChild(myNode);
log.println("ERROR: expected IllegalArgumentException was not thrown => FAILED");
bOK = false;
} catch (com.sun.star.lang.IllegalArgumentException ex) {
log.println("expected IllegalArgumentException was thrown => OK");
}
-
+
log.println("try to append the object itself...");
try {
-
+
oObj.appendChild(oObj);
log.println("ERROR: expected IllegalArgumentException was not thrown => FAILED");
bOK = false;
} catch (com.sun.star.lang.IllegalArgumentException ex) {
log.println("expected IllegalArgumentException was thrown => OK");
}
-
+
tRes.tested("appendChild()", bOK);
}
-
+
public void _insertChildByIndex(){
boolean bOK = true;
XMutableTreeNode myNode = nodeCreator.createNode("myNodeToInsert");
-
+
try {
log.println("try to insert a valid node...");
oObj.insertChildByIndex(0, myNode);
@@ -123,7 +123,7 @@ public class _XMutableTreeNode extends MultiMethodTest {
log.println("ERROR: could not insert a valid node on index '0': " + ex.toString());
bOK = false;
}
-
+
try {
log.println("try to insert a valid node a second time...");
oObj.insertChildByIndex(0, myNode);
@@ -137,7 +137,7 @@ public class _XMutableTreeNode extends MultiMethodTest {
}
XMutableTreeNode myNode2 = nodeCreator.createNode("myNodeToInsert2");
-
+
try {
log.println("try to insert a valid node on invalid index '-3'...");
oObj.insertChildByIndex(-3, myNode2);
@@ -149,7 +149,7 @@ public class _XMutableTreeNode extends MultiMethodTest {
} catch (com.sun.star.lang.IndexOutOfBoundsException ex) {
log.println("Expected IndexOutOfBoundsException was thrown => OK");
}
-
+
try {
log.println("try to insert the object itself...");
oObj.insertChildByIndex(0, oObj);
@@ -164,12 +164,12 @@ public class _XMutableTreeNode extends MultiMethodTest {
tRes.tested("insertChildByIndex()", bOK);
}
-
+
public void _removeChildByIndex(){
-
+
requiredMethod("insertChildByIndex()");
boolean bOK = true;
-
+
try {
log.println("try to remove node at index '0'...");
oObj.removeChildByIndex(0);
@@ -177,7 +177,7 @@ public class _XMutableTreeNode extends MultiMethodTest {
log.println("ERROR: IndexOutOfBoundsException was thrown => FAILED");
bOK = false;
}
-
+
try {
log.println("try to remove node at invalid index '-3'");
oObj.removeChildByIndex(-3);
@@ -188,88 +188,88 @@ public class _XMutableTreeNode extends MultiMethodTest {
}
tRes.tested("removeChildByIndex()", bOK);
}
-
+
public void _setHasChildrenOnDemand(){
boolean bOK = true;
-
+
log.println("setHasChildrenOnDemand(true)");
oObj.setHasChildrenOnDemand(true);
-
+
log.println("setHasChildrenOnDemand(false)");
oObj.setHasChildrenOnDemand(false);
-
+
tRes.tested("setHasChildrenOnDemand()", bOK);
}
-
+
public void _setDisplayValue(){
boolean bOK = true;
-
+
log.println("setDisplayValue(\"MyTestValue\")");
oObj.setDisplayValue("MyTestValue");
log.println("setDisplayValue(null)");
oObj.setDisplayValue(null);
-
+
log.println("oObj.setDisplayValue(oObj)");
oObj.setDisplayValue(oObj);
-
+
tRes.tested("setDisplayValue()", bOK);
}
-
+
public void _setNodeGraphicURL(){
boolean bOK = true;
-
+
log.println("setNodeGraphicURL(\"MyTestURL\")");
oObj.setNodeGraphicURL("MyTestURL");
-
+
log.println("setNodeGraphicURL(null)");
oObj.setNodeGraphicURL(null);
-
+
tRes.tested("setNodeGraphicURL()", bOK);
}
-
+
public void _setExpandedGraphicURL(){
boolean bOK = true;
-
+
log.println("setExpandedGraphicURL(\"myExpandedURL\")");
oObj.setExpandedGraphicURL("myExpandedURL");
-
+
log.println("setExpandedGraphicURL(null)");
oObj.setExpandedGraphicURL(null);
-
+
tRes.tested("setExpandedGraphicURL()", bOK);
}
-
+
public void _setCollapsedGraphicURL(){
boolean bOK = true;
-
+
log.println("setCollapsedGraphicURL(\"myCollapsedURL\")");
oObj.setCollapsedGraphicURL("myCollapsedURL");
-
+
log.println("setCollapsedGraphicURL(null)");
oObj.setCollapsedGraphicURL(null);
-
+
tRes.tested("setCollapsedGraphicURL()", bOK);
}
-
+
public void _DataValue(){
boolean bOK = true;
-
+
log.println("setDataValue(\"myDataValue\")");
oObj.setDataValue("myDataValue");
-
+
String sDataValue = (String) oObj.getDataValue();
-
+
if ( ! sDataValue.equals("myDataValue")) {
log.println("ERROR: getDataVlaue does not return the value which is inserted before:\n" +
"\texpected: myDataValue\n" +
"\tgot: " + sDataValue);
bOK = false;
}
-
+
log.println("setDataValue(null)");
oObj.setDataValue(null);
-
+
Object oDataValue = oObj.getDataValue();
if ( oDataValue != null) {
log.println("ERROR: getDataVlaue does not return the value which is inserted before:\n" +
@@ -277,10 +277,10 @@ public class _XMutableTreeNode extends MultiMethodTest {
"\tgot: " + oDataValue.toString());
bOK = false;
}
-
+
log.println("oObj.setDisplayValue(oObj)");
oObj.setDisplayValue(oObj);
-
+
oDataValue = oObj.getDataValue();
if ( oDataValue != null) {
log.println("ERROR: getDataVlaue does not return the value which is inserted before:\n" +
@@ -288,8 +288,8 @@ public class _XMutableTreeNode extends MultiMethodTest {
"\tgot: " + oDataValue.toString());
bOK = false;
}
-
+
tRes.tested("DataValue()", bOK);
}
-
+
}
diff --git a/qadevOOo/tests/java/ifc/awt/tree/_XTreeControl.java b/qadevOOo/tests/java/ifc/awt/tree/_XTreeControl.java
index 600298aea9e9..fa327967ceb7 100644
--- a/qadevOOo/tests/java/ifc/awt/tree/_XTreeControl.java
+++ b/qadevOOo/tests/java/ifc/awt/tree/_XTreeControl.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -67,41 +67,41 @@ import lib.StatusException;
* @see com.sun.star.awt.tree.XTreeControl
*/
public class _XTreeControl extends MultiMethodTest {
-
+
public XTreeControl oObj = null;
-
+
private XMutableTreeNode mNewNode = null;
-
+
private XMutableTreeNode mXNode = null;
-
+
XTreeExpansionListener mTreeExpansionListener1 = new TreeExpansionListenerImpl1();
-
+
XTreeExpansionListener mTreeExpansionListener2 = new TreeExpansionListenerImpl2();
-
+
XTreeEditListener mTreeEditListener1 = new TreeEditListenerImpl1();
-
+
XTreeEditListener mTreeEditListener2 = new TreeEditListenerImpl2();
-
+
boolean mTreeExpanded1 = false;
boolean mTreeExpanding1 = false;
boolean mTreeCollapsed1 = false;
boolean mTreeCollapsing1 = false;
-
+
boolean mTreeExpanded2 = false;
boolean mTreeExpanding2 = false;
boolean mTreeCollapsed2 = false;
boolean mTreeCollapsing2 = false;
-
+
boolean mTreeNodeEditing1 = false;
boolean mTreeNodeEdit1 = false;
-
+
boolean mTreeNodeEditing2 = false;
boolean mTreeNodeEdit2 = false;
-
+
public static interface XTreeDataModelListenerEvent{
public void fireEvent();
}
-
+
public class TreeExpansionListenerImpl1 implements XTreeExpansionListener{
public void requestChildNodes(TreeExpansionEvent treeExpansionEvent) {
log.println("event at ExpansionListener 1: requestChildNodes");
@@ -131,7 +131,7 @@ public class _XTreeControl extends MultiMethodTest {
log.println("event at ExpansionListener 1: disposing");
}
}
-
+
public class TreeExpansionListenerImpl2 implements XTreeExpansionListener{
public void requestChildNodes(TreeExpansionEvent treeExpansionEvent) {
log.println("event at ExpansionListener 2: requestChildNodes");
@@ -160,9 +160,9 @@ public class _XTreeControl extends MultiMethodTest {
public void disposing(EventObject eventObject) {
log.println("event at ExpansionListener 2: disposing");
}
-
+
}
-
+
public class TreeEditListenerImpl1 implements XTreeEditListener{
public void nodeEditing(XTreeNode xTreeNode) throws VetoException {
log.println("event at EditListener 1: nodeEditing");
@@ -178,7 +178,7 @@ public class _XTreeControl extends MultiMethodTest {
log.println("event at EditListener 1: disposing");
}
}
-
+
public class TreeEditListenerImpl2 implements XTreeEditListener{
public void nodeEditing(XTreeNode xTreeNode) throws VetoException {
log.println("event at EditListener 2: nodeEditing");
@@ -195,7 +195,7 @@ public class _XTreeControl extends MultiMethodTest {
log.println("event at EditListener 2: disposing");
}
}
-
+
private void resetTreeExpandingListener(){
mTreeExpanded1 = false;
mTreeExpanded2 = false;
@@ -206,42 +206,42 @@ public class _XTreeControl extends MultiMethodTest {
mTreeCollapsing1 = false;
mTreeCollapsing2 = false;
}
-
+
private void resetEditListener(){
mTreeNodeEditing1 = false;
mTreeNodeEdit1 = false;
mTreeNodeEditing2 = false;
mTreeNodeEdit2 = false;
}
-
+
public void before(){
mXNode = (XMutableTreeNode) tEnv.getObjRelation("XTreeControl_Node");
if (mXNode == null) {
throw new StatusException(Status.failed("ERROR: could not get object relation 'XTreeControl_Node'"));
}
}
-
+
public void _isNodeExpanded() throws ExpandVetoException{
boolean bOK = true;
boolean isExpanded = false;
-
+
try {
isExpanded = oObj.isNodeExpanded(mXNode);
log.println("node is expanded: " + isExpanded);
-
+
} catch (com.sun.star.lang.IllegalArgumentException ex) {
bOK = false;
log.println("ERROR: could not query for 'isNodeExpanded()': " + ex.toString());
}
-
- if (isExpanded)
+
+ if (isExpanded)
try {
-
+
log.println("try to collapse node...");
oObj.collapseNode(mXNode);
-
+
} catch (ExpandVetoException ex) {
bOK = false;
log.println("ERROR: could not collapse node: " + ex.toString());
@@ -249,12 +249,12 @@ public class _XTreeControl extends MultiMethodTest {
bOK = false;
log.println("ERROR: could not collapse node: " + ex.toString());
}
- else
+ else
try {
-
+
log.println("try to expand node...");
oObj.expandNode(mXNode);
-
+
} catch (ExpandVetoException ex) {
bOK = false;
log.println("ERROR: could not expand node: " + ex.toString());
@@ -262,44 +262,44 @@ public class _XTreeControl extends MultiMethodTest {
bOK = false;
log.println("ERROR: could not expand node: " + ex.toString());
}
-
+
try {
-
+
boolean isAlsoExpanded = oObj.isNodeExpanded(mXNode);
-
+
bOK &= (isExpanded != isAlsoExpanded);
-
+
log.println("node is expanded: " + isAlsoExpanded + " => " + bOK);
} catch (com.sun.star.lang.IllegalArgumentException ex) {
bOK = false;
log.println("ERROR: could not query for 'isNodeExpanded()': " + ex.toString());
}
-
+
tRes.tested("isNodeExpanded()", bOK);
-
+
}
public void _isNodeCollapsed(){
-
+
boolean bOK = true;
boolean isCollapsed = false;
-
+
try {
isCollapsed = oObj.isNodeCollapsed(mXNode);
log.println("node is Collapsed: " + isCollapsed);
-
+
} catch (com.sun.star.lang.IllegalArgumentException ex) {
bOK = false;
log.println("ERROR: could not query for 'isNodeCollapsed()': " + ex.toString());
}
-
- if ( ! isCollapsed)
+
+ if ( ! isCollapsed)
try {
-
+
log.println("try to collapse node...");
oObj.collapseNode(mXNode);
-
+
} catch (ExpandVetoException ex) {
bOK = false;
log.println("ERROR: could not collapse node: " + ex.toString());
@@ -307,12 +307,12 @@ public class _XTreeControl extends MultiMethodTest {
bOK = false;
log.println("ERROR: could not collapse node: " + ex.toString());
}
- else
+ else
try {
-
+
log.println("try to expand node...");
oObj.expandNode(mXNode);
-
+
} catch (ExpandVetoException ex) {
bOK = false;
log.println("ERROR: could not expand node: " + ex.toString());
@@ -320,28 +320,28 @@ public class _XTreeControl extends MultiMethodTest {
bOK = false;
log.println("ERROR: could not expand node: " + ex.toString());
}
-
+
try {
-
+
boolean isAlsoCollapsed = oObj.isNodeCollapsed(mXNode);
-
+
bOK &= (isCollapsed != isAlsoCollapsed);
-
+
log.println("node is Collapsed: " + isAlsoCollapsed + " => " + bOK);
} catch (com.sun.star.lang.IllegalArgumentException ex) {
bOK = false;
log.println("ERROR: could not query for 'isNodeCollapsed()': " + ex.toString());
}
-
+
tRes.tested("isNodeCollapsed()", bOK);
-
+
}
public void _makeNodeVisible(){
-
+
boolean bOK = true;
try {
-
+
oObj.makeNodeVisible(mXNode);
} catch (ExpandVetoException ex) {
bOK = false;
@@ -351,53 +351,53 @@ public class _XTreeControl extends MultiMethodTest {
log.println("ERROR: could not call method 'makeNodeVisible()' successfully: " + ex.toString());
}
try {
-
+
bOK &= oObj.isNodeVisible(mXNode);
} catch (com.sun.star.lang.IllegalArgumentException ex) {
bOK = false;
log.println("ERROR: could not call method 'isNodeVisible()' successfully: " + ex.toString());
}
-
+
tRes.tested("makeNodeVisible()", bOK);
-
+
}
public void _isNodeVisible(){
-
+
this.requiredMethod("makeNodeVisible()");
boolean bOK = true;
log.println("since required method 'makeNodeVisible()' uses method 'isNodeVisible()' this test is ok.");
tRes.tested("isNodeVisible()", bOK);
-
+
}
-
+
public void _expandNode(){
-
+
this.requiredMethod("isNodeExpanded()");
-
+
boolean bOK = true;
log.println("since required method 'isnodeExpanded()' uses method 'expandNode()' this test is ok.");
tRes.tested("expandNode()", bOK);
-
+
}
-
+
public void _collapseNode(){
-
+
this.requiredMethod("isNodeCollapsed()");
-
+
boolean bOK = true;
log.println("since required method 'isnodeCollapsed()' uses method 'expandNode()' this test is ok.");
tRes.tested("collapseNode()", bOK);
-
+
}
-
+
public void _addTreeExpansionListener(){
-
+
boolean bOK = true;
-
+
log.println("collapse Node to get an initial status...");
try {
-
+
oObj.collapseNode(mXNode);
} catch (ExpandVetoException ex) {
bOK = false;
@@ -406,15 +406,15 @@ public class _XTreeControl extends MultiMethodTest {
bOK = false;
log.println("ERROR: could not collapse node: " + ex.toString());
}
-
+
log.println("add mTreeExpansionListener1...");
oObj.addTreeExpansionListener(mTreeExpansionListener1);
-
+
log.println("add mTreeExpansionListener2");
oObj.addTreeExpansionListener(mTreeExpansionListener2);
-
- resetTreeExpandingListener();
-
+
+ resetTreeExpandingListener();
+
log.println("expand Node...");
try {
@@ -427,15 +427,15 @@ public class _XTreeControl extends MultiMethodTest {
bOK = false;
log.println("ERROR: could not expand node: " + ex.toString());
}
-
+
bOK &= mTreeExpanded1 & mTreeExpanded2 & ! mTreeCollapsed1 & ! mTreeCollapsed2
& mTreeExpanding1 & mTreeExpanding2 & ! mTreeCollapsing1 & ! mTreeCollapsing2;
-
- resetTreeExpandingListener();
-
+
+ resetTreeExpandingListener();
+
log.println("collapse Node...");
try {
-
+
oObj.collapseNode(mXNode);
} catch (ExpandVetoException ex) {
bOK = false;
@@ -444,23 +444,23 @@ public class _XTreeControl extends MultiMethodTest {
bOK = false;
log.println("ERROR: could not collapse node: " + ex.toString());
}
-
+
bOK &= ! mTreeExpanded1 & ! mTreeExpanded2 & mTreeCollapsed1 & mTreeCollapsed2
& ! mTreeExpanding1 & ! mTreeExpanding2 & mTreeCollapsing1 & mTreeCollapsing2;
-
+
tRes.tested("addTreeExpansionListener()", bOK);
-
+
}
-
+
public void _removeTreeExpansionListener(){
-
+
this.requiredMethod("addTreeExpansionListener()");
-
+
boolean bOK = true;
-
+
log.println("collapse Node to get an initial status...");
try {
-
+
oObj.collapseNode(mXNode);
} catch (ExpandVetoException ex) {
bOK = false;
@@ -469,12 +469,12 @@ public class _XTreeControl extends MultiMethodTest {
bOK = false;
log.println("ERROR: could not collapse node: " + ex.toString());
}
-
+
resetTreeExpandingListener();
-
+
log.println("remove mTreeExpansionListener2 ...");
oObj.removeTreeExpansionListener(mTreeExpansionListener2);
-
+
log.println("expand Node...");
try {
@@ -487,15 +487,15 @@ public class _XTreeControl extends MultiMethodTest {
bOK = false;
log.println("ERROR: could not expand node: " + ex.toString());
}
-
+
bOK &= mTreeExpanded1 & ! mTreeExpanded2 & ! mTreeCollapsed1 & ! mTreeCollapsed2
& mTreeExpanding1 & ! mTreeExpanding2 & ! mTreeCollapsing1 & ! mTreeCollapsing2;
-
- resetTreeExpandingListener();
-
+
+ resetTreeExpandingListener();
+
log.println("collapse Node...");
try {
-
+
oObj.collapseNode(mXNode);
} catch (ExpandVetoException ex) {
bOK = false;
@@ -504,166 +504,166 @@ public class _XTreeControl extends MultiMethodTest {
bOK = false;
log.println("ERROR: could not collapse node: " + ex.toString());
}
-
+
bOK &= ! mTreeExpanded1 & ! mTreeExpanded2 & mTreeCollapsed1 & ! mTreeCollapsed2
& ! mTreeExpanding1 & ! mTreeExpanding2 & mTreeCollapsing1 & ! mTreeCollapsing2;
-
+
log.println("remove mTreeExpansionListener2 ...");
oObj.removeTreeExpansionListener(mTreeExpansionListener2);
-
+
tRes.tested("removeTreeExpansionListener()", bOK);
-
+
}
-
+
public void _getNodeForLocation(){
-
+
boolean bOK = false;
-
-
+
+
tRes.tested("getNodeForLocation()", bOK);
-
+
}
-
+
public void _getClosestNodeForLocation(){
-
+
boolean bOK = false;
-
+
log.println("try to get Node for location 100,100");
XTreeNode myNode = oObj.getClosestNodeForLocation(100,100);
-
+
bOK &= (myNode != null);
-
+
tRes.tested("getClosestNodeForLocation()", bOK);
-
+
}
-
+
public void _isEditing(){
-
+
boolean bOK = false;
-
+
log.println("not ready because of i78701");
-
+
tRes.tested("isEditing()", bOK);
-
+
}
-
+
public void _stopEditing(){
-
+
boolean bOK = false;
log.println("not ready because of i78701");
-
-
+
+
tRes.tested("stopEditing()", bOK);
-
+
}
-
+
public void _cancelEditing(){
-
+
boolean bOK = false;
-
+
log.println("not ready because of i78701");
-
+
tRes.tested("cancelEditing()", bOK);
-
+
}
-
+
public void _startEditingAtNode(){
-
+
boolean bOK = false;
-
+
log.println("not ready because of i78701");
-
+
tRes.tested("startEditingAtNode()", bOK);
-
+
}
-
+
public void _addTreeEditListener(){
-
+
boolean bOK = true;
-
+
log.println("add EditListener 1....");
oObj.addTreeEditListener(mTreeEditListener1);
-
+
log.println("add EditListener 2....");
oObj.addTreeEditListener(mTreeEditListener2);
-
+
resetEditListener();
-
+
try {
-
+
oObj.startEditingAtNode(mXNode);
} catch (com.sun.star.lang.IllegalArgumentException ex) {
log.println("ERROR: could not start editing at node: " + ex.toString());
bOK = false;
}
-
+
log.println("not ready because of i78701");
bOK = false;
-
-
+
+
tRes.tested("addTreeEditListener()", bOK);
-
+
}
-
+
public void _removeTreeEditListener(){
-
+
boolean bOK = false;
-
+
log.println("not ready because of i78701");
-
+
tRes.tested("removeTreeEditListener()", bOK);
-
+
}
-
+
public void _DefaultExpandedGraphicURL(){
-
+
boolean bOK = true;
-
+
String current = oObj.getDefaultExpandedGraphicURL();
log.println("current DefaultExpandedGraphicURL: " + current);
-
+
String changeUrl = null;
-
- if (current.equals("private:graphicrepository/sd/res/triangle_right.png"))
+
+ if (current.equals("private:graphicrepository/sd/res/triangle_right.png"))
changeUrl = "private:graphicrepository/sd/res/triangle_down.png";
else changeUrl = "private:graphicrepository/sd/res/triangle_right.png";
log.println("try to set '" + changeUrl + "' as new DefaultExpandedGraphicURL");
-
+
oObj.setDefaultExpandedGraphicURL(changeUrl);
-
+
String newUrl = oObj.getDefaultExpandedGraphicURL();
-
+
log.println("new DefaultExpandedGraphicURL: " + newUrl);
-
+
bOK &= ! newUrl.equals(current);
-
+
tRes.tested("DefaultExpandedGraphicURL()", bOK);
-
+
}
-
+
public void _DefaultCollapsedGraphicURL(){
-
+
boolean bOK = true;
-
+
String current = oObj.getDefaultCollapsedGraphicURL();
log.println("current DefaultCollapsedGraphicURL: " + current);
String changeUrl = null;
-
- if (current.equals("private:graphicrepository/sd/res/triangle_right.png"))
+
+ if (current.equals("private:graphicrepository/sd/res/triangle_right.png"))
changeUrl = "private:graphicrepository/sd/res/triangle_down.png";
else changeUrl = "private:graphicrepository/sd/res/triangle_right.png";
log.println("try to set '" + changeUrl + "' as new DefaultCollapsedGraphicURL");
oObj.setDefaultCollapsedGraphicURL(changeUrl);
-
+
String newUrl = oObj.getDefaultCollapsedGraphicURL();
-
+
log.println("new DefaultCollapsedGraphicURL: " + newUrl);
-
+
bOK &= ! newUrl.equals(current);
-
+
tRes.tested("DefaultCollapsedGraphicURL()", bOK);
}
}
diff --git a/qadevOOo/tests/java/ifc/awt/tree/_XTreeDataModel.java b/qadevOOo/tests/java/ifc/awt/tree/_XTreeDataModel.java
index c2a98b744bae..340523ee0b9d 100644
--- a/qadevOOo/tests/java/ifc/awt/tree/_XTreeDataModel.java
+++ b/qadevOOo/tests/java/ifc/awt/tree/_XTreeDataModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -49,80 +49,80 @@ import lib.StatusException;
* @see com.sun.star.awt.tree.XTreeDataModel
*/
public class _XTreeDataModel extends MultiMethodTest {
-
+
public XTreeDataModel oObj = null;
-
+
private XMutableTreeNode mNewNode = null;
-
+
XTreeDataModelListener mListener1 = new myEventListener1();
-
+
XTreeDataModelListener mListener2 = new myEventListener2();
-
+
XTreeDataModelListenerEvent mListenerEvent = null;
-
+
boolean mTreeStructureChanged1 = false;
-
+
boolean mTreeStructureChanged2 = false;
-
+
public static interface XTreeDataModelListenerEvent{
public void fireEvent();
}
-
+
public class myEventListener1 implements XTreeDataModelListener{
public void treeNodesChanged(TreeDataModelEvent treeDataModelEvent) {
log.println("Listener 1: treeNodesChanged");
}
-
+
public void treeNodesInserted(TreeDataModelEvent treeDataModelEvent) {
log.println("Listener 1: treeNodesInserted");
}
-
+
public void treeNodesRemoved(TreeDataModelEvent treeDataModelEvent) {
log.println("Listener 1: treeNodesRemoved");
}
-
+
public void treeStructureChanged(TreeDataModelEvent treeDataModelEvent) {
log.println("Listener 1: treeStructureChanged");
mTreeStructureChanged1 = true;
}
-
+
public void disposing(EventObject eventObject) {
log.println("Listener 1: disposing");
}
}
-
+
public class myEventListener2 implements XTreeDataModelListener{
public void treeNodesChanged(TreeDataModelEvent treeDataModelEvent) {
log.println("Listener 2: treeNodesChanged");
}
-
+
public void treeNodesInserted(TreeDataModelEvent treeDataModelEvent) {
log.println("Listener 2: treeNodesInserted");
}
-
+
public void treeNodesRemoved(TreeDataModelEvent treeDataModelEvent) {
log.println("Listener 2: treeNodesRemoved");
}
-
+
public void treeStructureChanged(TreeDataModelEvent treeDataModelEvent) {
log.println("Listener 2: treeStructureChanged");
mTreeStructureChanged2 = true;
}
-
+
public void disposing(EventObject eventObject) {
log.println("Listener 2: disposing");
}
-
+
}
-
+
public void before(){
mListenerEvent = (XTreeDataModelListenerEvent) tEnv.getObjRelation("XTreeDataModelListenerEvent");
if (mListenerEvent == null) {
- throw new StatusException(Status.failed("ERROR: could not get object relation 'XTreeDataModelListenerEvent'\n" +
+ throw new StatusException(Status.failed("ERROR: could not get object relation 'XTreeDataModelListenerEvent'\n" +
"This object relation must be kind of 'ifc.awt.tree._XTreeDataModel.XTreeDataModelListenerEvent'"));
}
}
-
+
/**
* Gets the title and compares it to the value set in
* <code>setTitle</code> method test. <p>
@@ -133,50 +133,50 @@ public class _XTreeDataModel extends MultiMethodTest {
* </ul>
*/
public void _getRoot() {
-
+
boolean bOK = true;
XTreeNode root = oObj.getRoot();
-
+
tRes.tested("getRoot()", bOK);
-
+
}
-
+
public void _addTreeDataModelListener(){
-
+
boolean bOK = true;
-
+
log.println("add listener 1 to object...");
oObj.addTreeDataModelListener(mListener1);
-
+
log.println("add listener 2 to object...");
oObj.addTreeDataModelListener(mListener2);
-
+
mTreeStructureChanged1 = false;
mTreeStructureChanged2 = false;
-
+
mListenerEvent.fireEvent();
-
+
bOK = mTreeStructureChanged1 & mTreeStructureChanged2;
-
+
tRes.tested("addTreeDataModelListener()", bOK);
}
-
+
public void _removeTreeDataModelListener(){
-
+
boolean bOK = true;
-
+
log.println("remove listener 2 from object...");
oObj.removeTreeDataModelListener(mListener2);
-
+
mTreeStructureChanged1 = false;
mTreeStructureChanged2 = false;
-
+
mListenerEvent.fireEvent();
-
+
bOK = mTreeStructureChanged1 & ! mTreeStructureChanged2;
-
+
tRes.tested("removeTreeDataModelListener()", bOK);
-
+
}
}
diff --git a/qadevOOo/tests/java/ifc/awt/tree/_XTreeNode.java b/qadevOOo/tests/java/ifc/awt/tree/_XTreeNode.java
index e1eba75eb497..f7a6424c6152 100644
--- a/qadevOOo/tests/java/ifc/awt/tree/_XTreeNode.java
+++ b/qadevOOo/tests/java/ifc/awt/tree/_XTreeNode.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -51,44 +51,44 @@ import lib.StatusException;
* @see com.sun.star.awt.tree.XTreeDataModel
*/
public class _XTreeNode extends MultiMethodTest {
-
+
public XTreeNode oObj = null;
-
+
private int mCount = 0;
-
+
String msDisplayValue = null;
String msExpandedGraphicURL = null;
String msCollapsedGraphicURL = null;
String msNodeGraphicURL = null;
-
-
+
+
public void before(){
msDisplayValue = (String) tEnv.getObjRelation("XTreeNode_DisplayValue");
if (msDisplayValue == null){
throw new StatusException(Status.failed(
"Couldn't get relation 'XTreeNode_DisplayVlaue'"));
}
-
+
msExpandedGraphicURL = (String) tEnv.getObjRelation("XTreeNode_ExpandedGraphicURL");
if (msExpandedGraphicURL == null){
throw new StatusException(Status.failed(
"Couldn't get relation 'XTreeNode_ExpandedGraphicURL'"));
}
-
+
msCollapsedGraphicURL = (String) tEnv.getObjRelation("XTreeNode_CollapsedGraphicURL");
if (msCollapsedGraphicURL == null){
throw new StatusException(Status.failed(
"Couldn't get relation 'XTreeNode_CollapsedGraphicURL'"));
}
-
+
msNodeGraphicURL = (String) tEnv.getObjRelation("XTreeNode_NodeGraphicURL");
if(msNodeGraphicURL == null){
throw new StatusException(Status.failed(
"Couldn't get relation 'XTreeNode_NodeGraphicURL'"));
}
-
+
}
-
+
/**
* Gets the title and compares it to the value set in
* <code>setTitle</code> method test. <p>
@@ -101,7 +101,7 @@ public class _XTreeNode extends MultiMethodTest {
public void _getChildAt(){
this.requiredMethod("getChildCount()");
boolean bOK = true;
-
+
for (int i=0; i < mCount ; i++){
XTreeNode xNode = null;
try {
@@ -114,13 +114,13 @@ public class _XTreeNode extends MultiMethodTest {
bOK = false;
}
}
-
+
tRes.tested("getChildAt()", bOK);
}
-
-
+
+
public void _getChildCount(){
-
+
boolean bOK = true;
mCount = oObj.getChildCount();
log.println("got count '" + mCount + "' of children");
@@ -130,11 +130,11 @@ public class _XTreeNode extends MultiMethodTest {
}
tRes.tested("getChildCount()", bOK);
}
-
-
+
+
public void _getParent(){
this.requiredMethod("getChildAt()");
-
+
boolean bOK = true;
XTreeNode xNode = null;
try {
@@ -143,20 +143,20 @@ public class _XTreeNode extends MultiMethodTest {
} catch (com.sun.star.lang.IndexOutOfBoundsException ex) {
log.println("ERROR: getChildAt(0): " + ex.toString());
}
-
+
log.println("try to get parrent of children");
XTreeNode xParrent = xNode.getParent();
-
-
+
+
bOK = oObj.equals(xParrent);
log.println("original object and parrent should be the same: " + bOK);
tRes.tested("getParent()", bOK);
}
-
-
+
+
public void _getIndex(){
this.requiredMethod("getChildAt()");
-
+
boolean bOK = true;
XTreeNode xNode = null;
try {
@@ -165,57 +165,57 @@ public class _XTreeNode extends MultiMethodTest {
} catch (com.sun.star.lang.IndexOutOfBoundsException ex) {
log.println("ERROR: getChildAt(0): " + ex.toString());
}
-
+
log.println("try to get index from child...");
int index = oObj.getIndex(xNode);
-
+
if (index != 0){
log.println("ERROR: getIndex() does not return '0' => FAILED");
bOK = false;
}
-
+
tRes.tested("getIndex()", bOK);
}
-
-
+
+
public void _hasChildrenOnDemand(){
-
+
boolean bOK = true;
-
+
bOK = oObj.hasChildrenOnDemand();
tRes.tested("hasChildrenOnDemand()", bOK);
}
-
-
+
+
public void _getDisplayValue(){
-
+
boolean bOK = true;
String DisplayValue = null;
Object dispVal = oObj.getDisplayValue();
-
+
try {
DisplayValue = AnyConverter.toString(dispVal);
} catch (com.sun.star.lang.IllegalArgumentException ex) {
log.println("ERROR: could not convert the returned object of 'getDisplyValue()' " +
"to String with AnyConverter: " + ex.toString());
}
-
+
if ( ! this.msDisplayValue.equals(DisplayValue)){
log.println("ERROR: getNodeGraphicURL() does not return expected value:\n" +
"\tExpected: " + this.msDisplayValue +"\n" +
"\tGot: " + DisplayValue);
bOK = false;
}
-
+
tRes.tested("getDisplayValue()", bOK);
}
-
-
+
+
public void _getNodeGraphicURL(){
-
+
boolean bOK = true;
String graphicURL = oObj.getNodeGraphicURL();
-
+
if ( ! this.msNodeGraphicURL.equals(graphicURL)){
log.println("ERROR: getNodeGraphicURL() does not return expected value:\n" +
"\tExpected: " + this.msNodeGraphicURL +"\n" +
@@ -224,38 +224,38 @@ public class _XTreeNode extends MultiMethodTest {
}
tRes.tested("getNodeGraphicURL()", bOK);
}
-
-
+
+
public void _getExpandedGraphicURL(){
-
+
boolean bOK = true;
String ExpandedGraphicURL = oObj.getExpandedGraphicURL();
-
+
if ( ! this.msExpandedGraphicURL.equals(ExpandedGraphicURL)){
log.println("ERROR: getExpandedGraphicURL() does not return expected value:\n" +
"\tExpected: " + this.msExpandedGraphicURL +"\n" +
"\tGot: " + ExpandedGraphicURL);
bOK = false;
}
-
+
tRes.tested("getExpandedGraphicURL()", bOK);
}
-
-
+
+
public void _getCollapsedGraphicURL(){
-
+
boolean bOK = true;
-
+
String CollapsedGraphicURL = oObj.getCollapsedGraphicURL();
-
+
if ( ! this.msCollapsedGraphicURL.equals(CollapsedGraphicURL)){
log.println("ERROR: getExpandedGraphicURL() does not return expected value:\n" +
"\tExpected: " + this.msCollapsedGraphicURL +"\n" +
"\tGot: " + CollapsedGraphicURL);
bOK = false;
}
-
+
tRes.tested("getCollapsedGraphicURL()", bOK);
}
-
+
} \ No newline at end of file