diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-11 15:58:09 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-14 10:59:48 +0200 |
commit | ac5954d7c540f34702033d7d951d1d16cb96730a (patch) | |
tree | 310ba9698a10c74662de0714db683f932de32b0c /qadevOOo/tests/java/ifc | |
parent | 89c0a2b2f65beeb6f42d3334662100a13169a8d6 (diff) |
java: remove commented out code
Change-Id: I05c907a38b562231e968c17f14e09ef80e0a6ed1
Diffstat (limited to 'qadevOOo/tests/java/ifc')
21 files changed, 1 insertions, 65 deletions
diff --git a/qadevOOo/tests/java/ifc/awt/_XScrollBar.java b/qadevOOo/tests/java/ifc/awt/_XScrollBar.java index d061aae384ad..f385db27719e 100644 --- a/qadevOOo/tests/java/ifc/awt/_XScrollBar.java +++ b/qadevOOo/tests/java/ifc/awt/_XScrollBar.java @@ -177,9 +177,6 @@ public class _XScrollBar extends MultiMethodTest { acc.getAccessibleContext()); Point location = aCom.getLocationOnScreen(); - //Point location = (Point) tEnv.getObjRelation("Location"); - //XAccessibleComponent aCom = (XAccessibleComponent) tEnv.getObjRelation("Location"); - //Point location = aCom.getLocationOnScreen(); try { Robot rob = new Robot(); rob.mouseMove(location.X + 50, location.Y + 75); diff --git a/qadevOOo/tests/java/ifc/awt/_XSpinValue.java b/qadevOOo/tests/java/ifc/awt/_XSpinValue.java index e889fe4242bf..b8a2765627f3 100644 --- a/qadevOOo/tests/java/ifc/awt/_XSpinValue.java +++ b/qadevOOo/tests/java/ifc/awt/_XSpinValue.java @@ -168,9 +168,6 @@ public class _XSpinValue extends MultiMethodTest { acc.getAccessibleContext()); Point location = aCom.getLocationOnScreen(); - //Point location = (Point) tEnv.getObjRelation("Location"); - //XAccessibleComponent aCom = (XAccessibleComponent) tEnv.getObjRelation("Location"); - //Point location = aCom.getLocationOnScreen(); try { Robot rob = new Robot(); rob.mouseMove(location.X + 20, location.Y + 10); diff --git a/qadevOOo/tests/java/ifc/beans/_XMultiPropertySet.java b/qadevOOo/tests/java/ifc/beans/_XMultiPropertySet.java index 7b000c059a2e..4b2a03f1c104 100644 --- a/qadevOOo/tests/java/ifc/beans/_XMultiPropertySet.java +++ b/qadevOOo/tests/java/ifc/beans/_XMultiPropertySet.java @@ -88,7 +88,6 @@ public class _XMultiPropertySet extends MultiMethodTest { */ public class MyChangeListener implements XPropertiesChangeListener { public void propertiesChange(PropertyChangeEvent[] e) { - //_log.println("Listener was called"); propertiesChanged = true; } public void disposing (EventObject obj) {} @@ -170,8 +169,6 @@ public class _XMultiPropertySet extends MultiMethodTest { // Change one of the property to be sure, that this event was cauched. - //Random rnd = new Random(); - //int idx = rnd.nextInt(testPropsAmount); for (int i=0; i<testPropsAmount;i++) { log.print("Trying to change property " + testPropsNames[i]); try { diff --git a/qadevOOo/tests/java/ifc/container/_XContainer.java b/qadevOOo/tests/java/ifc/container/_XContainer.java index b7c987d4e1d3..f3277e9da837 100644 --- a/qadevOOo/tests/java/ifc/container/_XContainer.java +++ b/qadevOOo/tests/java/ifc/container/_XContainer.java @@ -131,15 +131,12 @@ public class _XContainer extends MultiMethodTest { */ public class MyListener implements XContainerListener { public void elementInserted(ContainerEvent e) { - //_log.println("Element was inserted"); bElementInserted = true; } public void elementRemoved(ContainerEvent e) { - //_log.println("Element was removed"); bElementRemoved = true; } public void elementReplaced(ContainerEvent e) { - //_log.println("Element was replaced"); bElementReplaced = true; } public void disposing (EventObject obj) {} diff --git a/qadevOOo/tests/java/ifc/document/_XViewDataSupplier.java b/qadevOOo/tests/java/ifc/document/_XViewDataSupplier.java index 4b6409845b0d..e2de9f6c5d00 100644 --- a/qadevOOo/tests/java/ifc/document/_XViewDataSupplier.java +++ b/qadevOOo/tests/java/ifc/document/_XViewDataSupplier.java @@ -40,7 +40,6 @@ public class _XViewDataSupplier extends MultiMethodTest { public void _getViewData() { xAccess = oObj.getViewData(); -// util.dbg.printInterfaces(xAccess); if (xAccess != null) { setViewID(xAccess, myview); } diff --git a/qadevOOo/tests/java/ifc/drawing/_LineShapeDescriptor.java b/qadevOOo/tests/java/ifc/drawing/_LineShapeDescriptor.java index feb8a8d8847a..a619b952f271 100644 --- a/qadevOOo/tests/java/ifc/drawing/_LineShapeDescriptor.java +++ b/qadevOOo/tests/java/ifc/drawing/_LineShapeDescriptor.java @@ -83,9 +83,7 @@ public class _LineShapeDescriptor extends MultiMethodTest { Object ValueToSet = null; try { - //waitForAllThreads(); gValue = oObj.getPropertyValue(name); - //waitForAllThreads(); if ( (name.equals("LineEnd")) || (name.equals("LineStart")) ) { if (gValue == null) gValue = newPoints(null); ValueToSet = newPoints( (Point[]) gValue); @@ -93,7 +91,6 @@ public class _LineShapeDescriptor extends MultiMethodTest { else { ValueToSet = ValueChanger.changePValue(gValue); } - //waitForAllThreads(); oObj.setPropertyValue(name,ValueToSet); sValue = oObj.getPropertyValue(name); diff --git a/qadevOOo/tests/java/ifc/drawing/_ShapeDescriptor.java b/qadevOOo/tests/java/ifc/drawing/_ShapeDescriptor.java index 5e3049c73495..1ffc66ee2624 100644 --- a/qadevOOo/tests/java/ifc/drawing/_ShapeDescriptor.java +++ b/qadevOOo/tests/java/ifc/drawing/_ShapeDescriptor.java @@ -75,15 +75,12 @@ public class _ShapeDescriptor extends MultiMethodTest { try { - //waitForAllThreads(); gValue = oObj.getPropertyValue(name); - //waitForAllThreads(); if (!ro) { ValueToSet = ValueChanger.changePValue(gValue); if ( name.equals("Style") ) { ValueToSet = newStyle(gValue); } - //waitForAllThreads(); oObj.setPropertyValue(name,ValueToSet); sValue = oObj.getPropertyValue(name); } diff --git a/qadevOOo/tests/java/ifc/drawing/_XShape.java b/qadevOOo/tests/java/ifc/drawing/_XShape.java index 64c4310eed5f..97e9b3611140 100644 --- a/qadevOOo/tests/java/ifc/drawing/_XShape.java +++ b/qadevOOo/tests/java/ifc/drawing/_XShape.java @@ -132,7 +132,6 @@ public class _XShape extends MultiMethodTest { log.println("Expected: "+sNew.Height+";"+sNew.Width); log.println("Getting: "+gSize.Height+";"+gSize.Width); - //result &= util.ValueComparer.equalValue(sNew, gSize) ; //errors in calculation from points/twips less then 1 are acceptable result &= (sNew.Height-gSize.Height <= 2) && (sNew.Width-gSize.Width <= 2); diff --git a/qadevOOo/tests/java/ifc/i18n/_XCalendar.java b/qadevOOo/tests/java/ifc/i18n/_XCalendar.java index 43f46d128be0..6be1bbbead7b 100644 --- a/qadevOOo/tests/java/ifc/i18n/_XCalendar.java +++ b/qadevOOo/tests/java/ifc/i18n/_XCalendar.java @@ -534,13 +534,5 @@ public class _XCalendar extends MultiMethodTest { tRes.tested("isValid()", res); } - /** - * Method returns locale for a given language and country. - * @param localeIndex index of needed locale. - */ -/* public Locale getLocale(int localeIndex) { - return new Locale(languages[localeIndex], countries[localeIndex], ""); - }*/ - } diff --git a/qadevOOo/tests/java/ifc/i18n/_XExtendedIndexEntrySupplier.java b/qadevOOo/tests/java/ifc/i18n/_XExtendedIndexEntrySupplier.java index 8f454c7a2e75..2664c0422241 100644 --- a/qadevOOo/tests/java/ifc/i18n/_XExtendedIndexEntrySupplier.java +++ b/qadevOOo/tests/java/ifc/i18n/_XExtendedIndexEntrySupplier.java @@ -163,19 +163,6 @@ public class _XExtendedIndexEntrySupplier extends MultiMethodTest { res &= localres; } - -/* log.println("\tTrying to load 'dummy' algorithm"); - - boolean localres = !oObj.loadAlgorithm(locales[i], "dummy", - CollatorOptions.CollatorOptions_IGNORE_WIDTH); - - if (!localres) { - log.println("\t ... didn't work as expected - FAILED"); - } else { - log.println("\t ... worked - OK"); - } - - res &= localres;*/ } tRes.tested("loadAlgorithm()", res); diff --git a/qadevOOo/tests/java/ifc/sheet/_DatabaseImportDescriptor.java b/qadevOOo/tests/java/ifc/sheet/_DatabaseImportDescriptor.java index 4ddeae4db611..6a8f402e741f 100644 --- a/qadevOOo/tests/java/ifc/sheet/_DatabaseImportDescriptor.java +++ b/qadevOOo/tests/java/ifc/sheet/_DatabaseImportDescriptor.java @@ -68,11 +68,8 @@ public class _DatabaseImportDescriptor extends MultiMethodTest { try { - //waitForAllThreads(); gValue = props[nr].Value; - //waitForAllThreads(); ValueToSet = ValueChanger.changePValue(gValue); - //waitForAllThreads(); props[nr].Value=ValueToSet; sValue = props[nr].Value; diff --git a/qadevOOo/tests/java/ifc/sheet/_FunctionDescription.java b/qadevOOo/tests/java/ifc/sheet/_FunctionDescription.java index 5afd917ca7fe..9b0ecd43c084 100644 --- a/qadevOOo/tests/java/ifc/sheet/_FunctionDescription.java +++ b/qadevOOo/tests/java/ifc/sheet/_FunctionDescription.java @@ -113,12 +113,9 @@ public class _FunctionDescription extends MultiMethodTest { try { - //waitForAllThreads(); gValue = oObj.getPropertyValue( name ); - //waitForAllThreads(); ValueToSet = ValueChanger.changePValue( gValue ); - //waitForAllThreads(); oObj.setPropertyValue( name, ValueToSet ); sValue = oObj.getPropertyValue( name ); diff --git a/qadevOOo/tests/java/ifc/sheet/_SheetSortDescriptor.java b/qadevOOo/tests/java/ifc/sheet/_SheetSortDescriptor.java index 1bc0eaab69bb..83bfe72a665d 100644 --- a/qadevOOo/tests/java/ifc/sheet/_SheetSortDescriptor.java +++ b/qadevOOo/tests/java/ifc/sheet/_SheetSortDescriptor.java @@ -69,7 +69,6 @@ public class _SheetSortDescriptor extends MultiMethodTest { } public void _SortAscending() { - //changeProp("SortAscending",3); log.println("Property 'SortAscending' is not part of the "+ "property array"); log.println("Available properties:"); @@ -98,14 +97,11 @@ public class _SheetSortDescriptor extends MultiMethodTest { try { - //waitForAllThreads(); gValue = props[nr].Value; if ( name.equals("OutputPosition")) { gInt = ((CellAddress) gValue).Row; } - //waitForAllThreads(); ValueToSet = ValueChanger.changePValue(gValue); - //waitForAllThreads(); props[nr].Value=ValueToSet; sValue = props[nr].Value; if ( name.equals("OutputPosition")) { diff --git a/qadevOOo/tests/java/ifc/sheet/_XDataPilotDescriptor.java b/qadevOOo/tests/java/ifc/sheet/_XDataPilotDescriptor.java index 9fa571f48af6..dbcd70bdd543 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XDataPilotDescriptor.java +++ b/qadevOOo/tests/java/ifc/sheet/_XDataPilotDescriptor.java @@ -342,7 +342,6 @@ public class _XDataPilotDescriptor extends MultiMethodTest { requiredMethod("getDataPilotFields()"); XIndexAccess IA = oObj.getPageFields(); boolean bResult = (IA != null); - // boolean bResult = CheckNames(IA, 4); tRes.tested("getPageFields()", bResult); } diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetAuditing.java b/qadevOOo/tests/java/ifc/sheet/_XSheetAuditing.java index 5be2edee32ce..ea2eec6a845e 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetAuditing.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetAuditing.java @@ -103,7 +103,6 @@ public class _XSheetAuditing extends MultiMethodTest { public void _hidePrecedents() { requiredMethod("showPrecedents()"); -// requiredMethod("showPrecedents()"); oObj.hidePrecedents(address); tRes.tested("hidePrecedents()", hasRightAmountOfShapes(0)); } diff --git a/qadevOOo/tests/java/ifc/style/_CharacterProperties.java b/qadevOOo/tests/java/ifc/style/_CharacterProperties.java index 5a6114888f15..49370918ace9 100644 --- a/qadevOOo/tests/java/ifc/style/_CharacterProperties.java +++ b/qadevOOo/tests/java/ifc/style/_CharacterProperties.java @@ -352,7 +352,6 @@ public class _CharacterProperties extends MultiPropertyTest { Object ValueToSet = null; try { - //waitForAllThreads(); gValue = oProps.getPropertyValue(name); if ( (gValue == null) || (utils.isVoid(gValue)) ) { @@ -360,7 +359,6 @@ public class _CharacterProperties extends MultiPropertyTest { gValue = newVal; } - //waitForAllThreads(); if (name.equals("CharRotation")) { Short s1 = new Short((short) 0); Short s2 = new Short((short) 900); @@ -381,7 +379,6 @@ public class _CharacterProperties extends MultiPropertyTest { } } - //waitForAllThreads(); oProps.setPropertyValue(name,ValueToSet); sValue = get.getPropertyValue(name); if (sValue == null) { diff --git a/qadevOOo/tests/java/ifc/text/_XText.java b/qadevOOo/tests/java/ifc/text/_XText.java index c33505668670..b34374ac1167 100644 --- a/qadevOOo/tests/java/ifc/text/_XText.java +++ b/qadevOOo/tests/java/ifc/text/_XText.java @@ -78,8 +78,6 @@ public class _XText extends MultiMethodTest { } catch( com.sun.star.lang.IllegalArgumentException iaE ){ throw new StatusException("Couldn't insert textcontent",iaE); - //Status.failed(iaE.toString()); - //return; } // get indexaccess to the tablecollection @@ -144,7 +142,6 @@ public class _XText extends MultiMethodTest { log.println( "test for removeTextContent" ); try { oObj.removeTextContent( (XTextContent)oInt ); - //oObj.removeTextContent( (XTextContent)oInt ); } catch( com.sun.star.container.NoSuchElementException nseE ){ // Some exception.FAILED diff --git a/qadevOOo/tests/java/ifc/ucb/_XContentProviderManager.java b/qadevOOo/tests/java/ifc/ucb/_XContentProviderManager.java index fd9cf81b7b36..9849f1f7f51c 100644 --- a/qadevOOo/tests/java/ifc/ucb/_XContentProviderManager.java +++ b/qadevOOo/tests/java/ifc/ucb/_XContentProviderManager.java @@ -221,8 +221,7 @@ public class _XContentProviderManager extends MultiMethodTest { ContentProviderInfo[] providersInfo = oObj.queryContentProviders(); for (int i = 0; i < providersInfo.length; i++) { - if (result.equals(providersInfo[i].ContentProvider) - /*&& myScheme.equals(providersInfo[i].Scheme)*/) { + if (result.equals(providersInfo[i].ContentProvider)) { found = true; break; } diff --git a/qadevOOo/tests/java/ifc/util/_XImportable.java b/qadevOOo/tests/java/ifc/util/_XImportable.java index f913375d7e57..6a36526db9e6 100644 --- a/qadevOOo/tests/java/ifc/util/_XImportable.java +++ b/qadevOOo/tests/java/ifc/util/_XImportable.java @@ -54,7 +54,6 @@ public class _XImportable extends MultiMethodTest { log.print("Getting when calling createImportDescriptor(true) --"); - //printPropertyValue(descriptor); log.println("done"); log.print("Checking PropertyNames -- "); @@ -71,7 +70,6 @@ public class _XImportable extends MultiMethodTest { log.print("Getting when calling createImportDescriptor(false) -- "); - //printPropertyValue(descriptor); log.println("done"); log.print("Checking PropertyNames -- "); diff --git a/qadevOOo/tests/java/ifc/util/_XSearchDescriptor.java b/qadevOOo/tests/java/ifc/util/_XSearchDescriptor.java index f1761ce755c1..b9a8f558ed4d 100644 --- a/qadevOOo/tests/java/ifc/util/_XSearchDescriptor.java +++ b/qadevOOo/tests/java/ifc/util/_XSearchDescriptor.java @@ -70,7 +70,6 @@ public class _XSearchDescriptor extends MultiMethodTest { cmpSearchStr = oObj.getSearchString(); if(!(cmpSearchStr.equals(oldSearchStr))){ bResult = true; } - //oObj.setSearchString(oldSearchStr); tRes.tested("setSearchString()", bResult); } diff --git a/qadevOOo/tests/java/ifc/view/_XPrintable.java b/qadevOOo/tests/java/ifc/view/_XPrintable.java index 3efd4c3e9a40..cc00ae30940d 100644 --- a/qadevOOo/tests/java/ifc/view/_XPrintable.java +++ b/qadevOOo/tests/java/ifc/view/_XPrintable.java @@ -91,7 +91,6 @@ public class _XPrintable extends MultiMethodTest { tRes.tested("setPrinter()",false); } - //oObj.setPrinter(the_printer); the_printer = oObj.getPrinter() ; propIdx = 0 ; |