[Libreoffice-commits] core.git: framework/qa

2023-10-11 Thread Caolán McNamara (via logerrit)
 framework/qa/cppunit/dispatchtest.cxx |3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 30c582a7202b1403e260af933258d456e7280a19
Author: Caolán McNamara 
AuthorDate: Tue Oct 10 21:23:43 2023 +0100
Commit: Caolán McNamara 
CommitDate: Wed Oct 11 15:20:30 2023 +0200

make CppunitTest_framework_dispatch reliable

the appearance of 2 interceptions is reproducible for me on linux with

make CppunitTest_framework_dispatch VALGRIND=memcheck

1st time
 #1 (anonymous 
namespace)::MyInterceptor::queryDispatch(com::sun::star::util::URL const&, 
rtl::OUString const&, int) at core/framework/qa/cppunit/dispatchtest.cxx:139
 #2 non-virtual thunk to (anonymous 
namespace)::MyInterceptor::queryDispatch(com::sun::star::util::URL const&, 
rtl::OUString const&, int) at core/framework/qa/cppunit/dispatchtest.cxx:0
 #3 framework::InterceptionHelper::queryDispatch(com::sun::star::util::URL 
const&, rtl::OUString const&, int) at 
core/framework/source/dispatch/interceptionhelper.cxx:87
 #4 non-virtual thunk to 
framework::InterceptionHelper::queryDispatch(com::sun::star::util::URL const&, 
rtl::OUString const&, int) at 
core/framework/source/dispatch/interceptionhelper.cxx:0
 #5 (anonymous 
namespace)::XFrameImpl::queryDispatch(com::sun::star::util::URL const&, 
rtl::OUString const&, int) at core/framework/source/services/frame.cxx:2329
 #6 non-virtual thunk to (anonymous 
namespace)::XFrameImpl::queryDispatch(com::sun::star::util::URL const&, 
rtl::OUString const&, int) at core/framework/source/services/frame.cxx:0
 #7 
framework::DispatchHelper::executeDispatch(com::sun::star::uno::Reference
 const&, rtl::OUString const&, rtl::OUString const&, int, 
com::sun::star::uno::Sequence const&) at 
core/framework/source/services/dispatchhelper.cxx:110
 #8 non-virtual thunk to 
framework::DispatchHelper::executeDispatch(com::sun::star::uno::Reference
 const&, rtl::OUString const&, rtl::OUString const&, int, 
com::sun::star::uno::Sequence const&) at 
core/framework/source/services/dispatchhelper.cxx:0
 #9 
unotest::MacrosTest::dispatchCommand(com::sun::star::uno::Reference
 const&, rtl::OUString const&, 
com::sun::star::uno::Sequence const&) at 
core/unotest/source/cpp/macros_test.cxx:94
 #10 (anonymous namespace)::testInterception::TestBody() at 
core/framework/qa/cppunit/dispatchtest.cxx:172

2nd time
 #1 (anonymous 
namespace)::MyInterceptor::queryDispatch(com::sun::star::util::URL const&, 
rtl::OUString const&, int) at core/framework/qa/cppunit/dispatchtest.cxx:139
 #2 non-virtual thunk to (anonymous 
namespace)::MyInterceptor::queryDispatch(com::sun::star::util::URL const&, 
rtl::OUString const&, int) at core/framework/qa/cppunit/dispatchtest.cxx:0
 #3 framework::InterceptionHelper::queryDispatch(com::sun::star::util::URL 
const&, rtl::OUString const&, int) at 
core/framework/source/dispatch/interceptionhelper.cxx:87
 #4 non-virtual thunk to 
framework::InterceptionHelper::queryDispatch(com::sun::star::util::URL const&, 
rtl::OUString const&, int) at 
core/framework/source/dispatch/interceptionhelper.cxx:0
 #5 (anonymous 
namespace)::XFrameImpl::queryDispatch(com::sun::star::util::URL const&, 
rtl::OUString const&, int) at core/framework/source/services/frame.cxx:2329
 #6 non-virtual thunk to (anonymous 
namespace)::XFrameImpl::queryDispatch(com::sun::star::util::URL const&, 
rtl::OUString const&, int) at core/framework/source/services/frame.cxx:0
 #7 SfxStateCache::GetSlotServer(SfxDispatcher&, 
com::sun::star::uno::Reference 
const&) at core/sfx2/source/control/statcach.cxx:263
 #8 SfxBindings::UpdateSlotServer_Impl() at 
core/sfx2/source/control/bindings.cxx:1083
 #9 SfxBindings::NextJob_Impl(Timer const*) at 
core/sfx2/source/control/bindings.cxx:1254
 #10 SfxBindings::NextJob(Timer*) at 
core/sfx2/source/control/bindings.cxx:1222
 #11 SfxBindings::LinkStubNextJob(void*, Timer*) at 
core/sfx2/source/control/bindings.cxx:1219
 #12 Link::Call(Timer*) const at 
core/include/tools/link.hxx:111
 #13 Timer::Invoke() at core/vcl/source/app/timer.cxx:76
 #14 Scheduler::CallbackTaskScheduling() at 
core/vcl/source/app/scheduler.cxx:480
 #15 SalTimer::CallCallback() at core/vcl/inc/saltimer.hxx:55
 #16 SvpSalInstance::CheckTimeout(bool) at core/vcl/headless/svpinst.cxx:161
 #17 SvpSalInstance::ImplYield(bool, bool) at 
core/vcl/headless/svpinst.cxx:399
 #18 SvpSalInstance::DoYield(bool, bool) at 
core/vcl/headless/svpinst.cxx:471
 #19 ImplYield(bool, bool) at core/vcl/source/app/svapp.cxx:377
 #20 Scheduler::ProcessEventsToIdle() at core/vcl/source/app/svapp.cxx:407
 #21 
unotest::MacrosTest::dispatchCommand(com::sun::star::uno::Reference
 const&, rtl::OUString const&, 
com::sun::star::uno::Sequence const&) at 
core/unotest/source/cpp/macros_test.cxx:95
 #22 (anonymous namespace)::testInterception::TestBody() at 

[Libreoffice-commits] core.git: framework/qa odk/examples qadevOOo/tests

2023-09-25 Thread apurvapriyadarshi (via logerrit)
 framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java   |
4 ++--
 odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java |   
10 +-
 qadevOOo/tests/java/mod/_sd/SdUnoDrawView.java|
2 +-
 qadevOOo/tests/java/mod/_svx/SvxGraphCtrlAccessibleContext.java   |
2 +-
 4 files changed, 9 insertions(+), 9 deletions(-)

New commits:
commit 31ca96ff3075343c8d0c334fc77a9d0969986d77
Author: apurvapriyadarshi 
AuthorDate: Wed Sep 20 23:37:21 2023 +0530
Commit: Ilmari Lauhakangas 
CommitDate: Mon Sep 25 13:04:27 2023 +0200

tdf#146150 Use dispatch cmd for the corresponding SID

Change-Id: I0d987a8b10f2c69192d080b534a1d6aa71a6cf4d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157105
Tested-by: Ilmari Lauhakangas 
Reviewed-by: Ilmari Lauhakangas 

diff --git 
a/framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java 
b/framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java
index 7496b58e080b..b376b715a1eb 100644
--- a/framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java
+++ b/framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java
@@ -72,7 +72,7 @@ public class ContextMenuInterceptor implements 
XContextMenuInterceptor
 // entry "Content"
 XPropertySet xMenuEntry = 
UnoRuntime.queryInterface(XPropertySet.class, 
xMenuElementFactory.createInstance("com.sun.star.ui.ActionTrigger"));
 xMenuEntry.setPropertyValue("Text", "Content");
-xMenuEntry.setPropertyValue("CommandURL", "slot:5401");
+xMenuEntry.setPropertyValue("CommandURL", ".uno:HelpIndex");
 xMenuEntry.setPropertyValue("HelpURL", "5401");
 
 // insert menu entry to sub menu
@@ -91,7 +91,7 @@ public class ContextMenuInterceptor implements 
XContextMenuInterceptor
 // entry "Tips"
 xMenuEntry = 
UnoRuntime.queryInterface(com.sun.star.beans.XPropertySet.class, 
xMenuElementFactory.createInstance("com.sun.star.ui.ActionTrigger"));
 xMenuEntry.setPropertyValue("Text", "Tips");
-xMenuEntry.setPropertyValue("CommandURL", "slot:5404");
+xMenuEntry.setPropertyValue("CommandURL", ".uno:HelpTip");
 xMenuEntry.setPropertyValue("HelpURL", "5404");
 
 // insert menu entry to sub menu
diff --git 
a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java 
b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java
index 92ae178adc59..076669014d83 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java
@@ -67,11 +67,11 @@ public class StatusView extendsJPanel
  * const
  * These URL's describe available feature states.
  */
-private static final String FEATUREURL_FONT  = "slot:10007";
-private static final String FEATUREURL_SIZE  = "slot:10015";
-private static final String FEATUREURL_BOLD  = "slot:10009";
-private static final String FEATUREURL_ITALIC= "slot:10008";
-private static final String FEATUREURL_UNDERLINE = "slot:10014";
+private static final String FEATUREURL_FONT  = ".uno:CharFontName";
+private static final String FEATUREURL_SIZE  = ".uno:FontHeight";
+private static final String FEATUREURL_BOLD  = ".uno:Bold";
+private static final String FEATUREURL_ITALIC= ".uno:Italic";
+private static final String FEATUREURL_UNDERLINE = ".uno:Underline";
 
 
 
diff --git a/qadevOOo/tests/java/mod/_sd/SdUnoDrawView.java 
b/qadevOOo/tests/java/mod/_sd/SdUnoDrawView.java
index fc4bd27c1a88..dd4e0298e125 100644
--- a/qadevOOo/tests/java/mod/_sd/SdUnoDrawView.java
+++ b/qadevOOo/tests/java/mod/_sd/SdUnoDrawView.java
@@ -214,7 +214,7 @@ public class SdUnoDrawView extends TestCase {
 XController secondController = aModel.getCurrentController();
 tEnv.addObjRelation("SecondController", secondController);
 tEnv.addObjRelation("XDispatchProvider.URL",
-"slot:27009");
+".uno:DrawingMode");
 
 //Adding relations for DrawingDocumentDrawView
 XDrawPage new_page = the_pages.insertNewByIndex(1);
diff --git a/qadevOOo/tests/java/mod/_svx/SvxGraphCtrlAccessibleContext.java 
b/qadevOOo/tests/java/mod/_svx/SvxGraphCtrlAccessibleContext.java
index e2b3581d4a06..64eb954aae1e 100644
--- a/qadevOOo/tests/java/mod/_svx/SvxGraphCtrlAccessibleContext.java
+++ b/qadevOOo/tests/java/mod/_svx/SvxGraphCtrlAccessibleContext.java
@@ -100,7 +100,7 @@ public class SvxGraphCtrlAccessibleContext extends TestCase{
 
 //Opening ImageMapDialog
 try {
-String aSlotID = "slot:10371";
+String aSlotID = ".uno:ImageMapDialog";
   

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sw/qa

2023-08-27 Thread anfanite396 (via logerrit)
 framework/qa/complex/api_internal/api.lst |1 
 qadevOOo/Jar_OOoRunner.mk |1 
 qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXReferenceMarks.csv |7 
 qadevOOo/tests/java/mod/_sw/SwXReferenceMarks.java|  128 
--
 sw/qa/api/SwXReferenceMarks.cxx   |  128 
--
 sw/qa/unoapi/sw_2.sce |1 
 6 files changed, 54 insertions(+), 212 deletions(-)

New commits:
commit 9a4f776e5ad7e0b47a884765a11c72a8f7ada6dc
Author: anfanite396 
AuthorDate: Thu Aug 24 15:23:55 2023 +0530
Commit: Tomaž Vajngerl 
CommitDate: Sun Aug 27 08:21:26 2023 +0200

tdf#45904: Remove old SwXReferenceMarks Java test

Change-Id: I8830e54fdba98d3cfd1e2844e7faf02e55e7d0ac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156044
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 304220026084..2d5bcd4b7d6d 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -153,7 +153,6 @@ job219=sw.SwXModule
 job221=sw.SwXPrintSettings
 job222=sw.SwXPropertySet
 job223=sw.SwXPropertySetInfo
-job225=sw.SwXReferenceMarks
 job226=sw.SwXStyle
 job228=sw.SwXStyleFamily
 job229=sw.SwXTableCellText
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 60343d0958d0..d71eb77d943b 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -1109,7 +1109,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sw/SwXPrintSettings \
 qadevOOo/tests/java/mod/_sw/SwXPropertySet \
 qadevOOo/tests/java/mod/_sw/SwXPropertySetInfo \
-qadevOOo/tests/java/mod/_sw/SwXReferenceMarks \
 qadevOOo/tests/java/mod/_sw/SwXShape \
 qadevOOo/tests/java/mod/_sw/SwXStyle \
 qadevOOo/tests/java/mod/_sw/SwXStyleFamily \
diff --git a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXReferenceMarks.csv 
b/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXReferenceMarks.csv
deleted file mode 100644
index bcc24a043220..
--- a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXReferenceMarks.csv
+++ /dev/null
@@ -1,7 +0,0 @@
-"SwXReferenceMarks";"com::sun::star::container::XNameAccess";"getByName()"
-"SwXReferenceMarks";"com::sun::star::container::XNameAccess";"getElementNames()"
-"SwXReferenceMarks";"com::sun::star::container::XNameAccess";"hasByName()"
-"SwXReferenceMarks";"com::sun::star::container::XIndexAccess";"getCount()"
-"SwXReferenceMarks";"com::sun::star::container::XIndexAccess";"getByIndex()"
-"SwXReferenceMarks";"com::sun::star::container::XElementAccess";"getElementType()"
-"SwXReferenceMarks";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/qadevOOo/tests/java/mod/_sw/SwXReferenceMarks.java 
b/qadevOOo/tests/java/mod/_sw/SwXReferenceMarks.java
deleted file mode 100644
index 40b99adeccc1..
--- a/qadevOOo/tests/java/mod/_sw/SwXReferenceMarks.java
+++ /dev/null
@@ -1,128 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sw;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.container.XNamed;
-import com.sun.star.lang.XMultiServiceFactory;
-import com.sun.star.text.XReferenceMarksSupplier;
-import com.sun.star.text.XText;
-import com.sun.star.text.XTextContent;
-import com.sun.star.text.XTextCursor;
-import com.sun.star.text.XTextDocument;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-/**
- * Test for object which is represented by service
- * com.sun.star.text.ReferenceMarks. 
- * Object implements the following interfaces :
- * 
- *   com::sun::star::container::XNameAccess
- *   com::sun::star::container::XIndexAccess
- *   com::sun::star::container::XElementAccess
- *  
- * This object test  is NOT  designed to be run in several
- * threads concurrently.
- * @see com.sun.star.container.XNameAccess
- * @see com.sun.star.container.XIndexAccess
- * @see 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sw/qa

2023-08-25 Thread anfanite396 (via logerrit)
 framework/qa/complex/api_internal/api.lst|1 
 qadevOOo/Jar_OOoRunner.mk|1 
 qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXStyleFamilies.csv |7 
 qadevOOo/tests/java/mod/_sw/SwXStyleFamilies.java|   97 
--
 sw/qa/api/SwXStyleFamilies.cxx   |3 
 sw/qa/unoapi/sw_2.sce|1 
 6 files changed, 110 deletions(-)

New commits:
commit 1dca3e5839089608b640a1b9f69d1c8521d4b10e
Author: anfanite396 
AuthorDate: Thu Aug 24 15:32:36 2023 +0530
Commit: Tomaž Vajngerl 
CommitDate: Fri Aug 25 08:29:06 2023 +0200

tdf#45904: Remove old SwXStyleFamilies Java test

Change-Id: I3057e4a2fcf1b057d35050bfeb7c22fbad19325b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156045
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index f3befca0..e24f9f945c86 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -159,7 +159,6 @@ job222=sw.SwXPropertySet
 job223=sw.SwXPropertySetInfo
 job225=sw.SwXReferenceMarks
 job226=sw.SwXStyle
-job227=sw.SwXStyleFamilies
 job228=sw.SwXStyleFamily
 job229=sw.SwXTableCellText
 job230=sw.SwXTableRows
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index de423c3bc624..37c36f18c0f1 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -1119,7 +1119,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sw/SwXReferenceMarks \
 qadevOOo/tests/java/mod/_sw/SwXShape \
 qadevOOo/tests/java/mod/_sw/SwXStyle \
-qadevOOo/tests/java/mod/_sw/SwXStyleFamilies \
 qadevOOo/tests/java/mod/_sw/SwXStyleFamily \
 qadevOOo/tests/java/mod/_sw/SwXTableCellText \
 qadevOOo/tests/java/mod/_sw/SwXTableColumns \
diff --git a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXStyleFamilies.csv 
b/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXStyleFamilies.csv
deleted file mode 100644
index f2f3e1303856..
--- a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXStyleFamilies.csv
+++ /dev/null
@@ -1,7 +0,0 @@
-"SwXStyleFamilies";"com::sun::star::container::XNameAccess";"getByName()"
-"SwXStyleFamilies";"com::sun::star::container::XNameAccess";"getElementNames()"
-"SwXStyleFamilies";"com::sun::star::container::XNameAccess";"hasByName()"
-"SwXStyleFamilies";"com::sun::star::container::XIndexAccess#optional";"getCount()"
-"SwXStyleFamilies";"com::sun::star::container::XIndexAccess#optional";"getByIndex()"
-"SwXStyleFamilies";"com::sun::star::container::XElementAccess";"getElementType()"
-"SwXStyleFamilies";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/qadevOOo/tests/java/mod/_sw/SwXStyleFamilies.java 
b/qadevOOo/tests/java/mod/_sw/SwXStyleFamilies.java
deleted file mode 100644
index ebbc4690aa69..
--- a/qadevOOo/tests/java/mod/_sw/SwXStyleFamilies.java
+++ /dev/null
@@ -1,97 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sw;
-
-import java.io.PrintWriter;
-
-import lib.StatusException;
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.container.XNameAccess;
-import com.sun.star.style.XStyleFamiliesSupplier;
-import com.sun.star.text.XTextDocument;
-import com.sun.star.uno.UnoRuntime;
-
-
-/**
- * Test for object which is represented by service
- * com.sun.star.style.StyleFamilies. 
- * Object implements the following interfaces :
- * 
- *   com::sun::star::container::XNameAccess
- *   com::sun::star::container::XElementAccess
- *   com::sun::star::container::XIndexAccess
- *  
- * This object test  is NOT  designed to be run in several
- * threads concurrently.
- * @see com.sun.star.container.XNameAccess
- * @see com.sun.star.container.XElementAccess
- * @see com.sun.star.container.XIndexAccess
- * @see com.sun.star.style.StyleFamilies
- * @see ifc.container._XNameAccess
- * @see ifc.container._XElementAccess
- * @see ifc.container._XIndexAccess
- */
-public 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sw/CppunitTest_sw_apitests.mk sw/qa

2023-08-25 Thread anfanite396 (via logerrit)
 framework/qa/complex/api_internal/api.lst  |1 
 qadevOOo/Jar_OOoRunner.mk  |1 
 qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextEmbeddedObjects.csv |7 
 qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObjects.java|  121 
--
 sw/CppunitTest_sw_apitests.mk  |1 
 sw/qa/api/SwXTextEmbeddedObjects.cxx   |  100 

 sw/qa/unoapi/sw_3.sce  |1 
 7 files changed, 101 insertions(+), 131 deletions(-)

New commits:
commit 534326bf573ace5877c7d790b37399623aa71d79
Author: anfanite396 
AuthorDate: Thu Aug 24 16:47:30 2023 +0530
Commit: Tomaž Vajngerl 
CommitDate: Fri Aug 25 08:27:53 2023 +0200

tdf#45904: Move SwXTextEmbeddedObjects Java tests to C++

Change-Id: I05ad9e264162e3fb97ebea814f59ed44bf23056a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156050
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index e1f01f7a2fc0..f3befca0 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -165,7 +165,6 @@ job229=sw.SwXTableCellText
 job230=sw.SwXTableRows
 job231=sw.SwXTextColumns
 job232=sw.SwXTextDefaults
-job233=sw.SwXTextEmbeddedObjects
 job234=sw.SwXTextField
 job237=sw.SwXTextFrameText
 job238=sw.SwXTextGraphicObjects
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 9c0af119c032..de423c3bc624 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -1129,7 +1129,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sw/SwXTextDefaults \
 qadevOOo/tests/java/mod/_sw/SwXTextDocument \
 qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObject \
-qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObjects \
 qadevOOo/tests/java/mod/_sw/SwXTextField \
 qadevOOo/tests/java/mod/_sw/SwXTextFrame \
 qadevOOo/tests/java/mod/_sw/SwXTextFrameText \
diff --git 
a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextEmbeddedObjects.csv 
b/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextEmbeddedObjects.csv
deleted file mode 100644
index 89ab2d561f04..
--- a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextEmbeddedObjects.csv
+++ /dev/null
@@ -1,7 +0,0 @@
-"SwXTextEmbeddedObjects";"com::sun::star::container::XNameAccess";"getByName()"
-"SwXTextEmbeddedObjects";"com::sun::star::container::XNameAccess";"getElementNames()"
-"SwXTextEmbeddedObjects";"com::sun::star::container::XNameAccess";"hasByName()"
-"SwXTextEmbeddedObjects";"com::sun::star::container::XIndexAccess";"getCount()"
-"SwXTextEmbeddedObjects";"com::sun::star::container::XIndexAccess";"getByIndex()"
-"SwXTextEmbeddedObjects";"com::sun::star::container::XElementAccess";"getElementType()"
-"SwXTextEmbeddedObjects";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObjects.java 
b/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObjects.java
deleted file mode 100644
index 4b0e3ae7239b..
--- a/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObjects.java
+++ /dev/null
@@ -1,121 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sw;
-
-import com.sun.star.beans.XPropertySet;
-import java.io.PrintWriter;
-
-import lib.StatusException;
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.lang.XMultiServiceFactory;
-import com.sun.star.text.XTextContent;
-import com.sun.star.text.XTextCursor;
-import com.sun.star.text.XTextDocument;
-import com.sun.star.text.XTextEmbeddedObjectsSupplier;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-
-public class SwXTextEmbeddedObjects extends TestCase {
-
-XTextDocument oDoc;
-
-/**
- * in general this method creates a testdocument
- *
- *  @param tParamclass which contains additional test parameters
- *  @param logclass to log 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sw/qa

2023-08-25 Thread anfanite396 (via logerrit)
 framework/qa/complex/api_internal/api.lst|1 
 qadevOOo/Jar_OOoRunner.mk|1 
 qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXReferenceMark.csv |7 
 qadevOOo/tests/java/mod/_sw/SwXReferenceMark.java|  117 
--
 sw/qa/unoapi/sw_2.sce|1 
 5 files changed, 127 deletions(-)

New commits:
commit 52f785d15197b4ef645ae08015994f5accf2ec8e
Author: anfanite396 
AuthorDate: Thu Aug 24 15:13:21 2023 +0530
Commit: Tomaž Vajngerl 
CommitDate: Fri Aug 25 08:25:02 2023 +0200

tdf#45904: Remove old SwXReferenceMark Java test

Change-Id: I81acf617726b7e7e5b5510b0d6d7677c7d08aba5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156043
Reviewed-by: Tomaž Vajngerl 
Tested-by: Tomaž Vajngerl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index bcabcb80168d..e1f01f7a2fc0 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -157,7 +157,6 @@ job220=sw.SwXParagraphEnumeration
 job221=sw.SwXPrintSettings
 job222=sw.SwXPropertySet
 job223=sw.SwXPropertySetInfo
-job224=sw.SwXReferenceMark
 job225=sw.SwXReferenceMarks
 job226=sw.SwXStyle
 job227=sw.SwXStyleFamilies
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 3d5e9824b413..9c0af119c032 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -1116,7 +1116,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sw/SwXPrintSettings \
 qadevOOo/tests/java/mod/_sw/SwXPropertySet \
 qadevOOo/tests/java/mod/_sw/SwXPropertySetInfo \
-qadevOOo/tests/java/mod/_sw/SwXReferenceMark \
 qadevOOo/tests/java/mod/_sw/SwXReferenceMarks \
 qadevOOo/tests/java/mod/_sw/SwXShape \
 qadevOOo/tests/java/mod/_sw/SwXStyle \
diff --git a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXReferenceMark.csv 
b/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXReferenceMark.csv
deleted file mode 100644
index bdabc0f82d21..
--- a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXReferenceMark.csv
+++ /dev/null
@@ -1,7 +0,0 @@
-"SwXReferenceMark";"com::sun::star::lang::XComponent";"dispose()"
-"SwXReferenceMark";"com::sun::star::lang::XComponent";"addEventListener()"
-"SwXReferenceMark";"com::sun::star::lang::XComponent";"removeEventListener()"
-"SwXReferenceMark";"com::sun::star::container::XNamed";"getName()"
-"SwXReferenceMark";"com::sun::star::container::XNamed";"setName()"
-"SwXReferenceMark";"com::sun::star::text::XTextContent";"attach()"
-"SwXReferenceMark";"com::sun::star::text::XTextContent";"getAnchor()"
diff --git a/qadevOOo/tests/java/mod/_sw/SwXReferenceMark.java 
b/qadevOOo/tests/java/mod/_sw/SwXReferenceMark.java
deleted file mode 100644
index 8b257ba13342..
--- a/qadevOOo/tests/java/mod/_sw/SwXReferenceMark.java
+++ /dev/null
@@ -1,117 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sw;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.container.XNamed;
-import com.sun.star.lang.XMultiServiceFactory;
-import com.sun.star.text.XText;
-import com.sun.star.text.XTextContent;
-import com.sun.star.text.XTextCursor;
-import com.sun.star.text.XTextDocument;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-/**
- * Test for object which is represented by service
- * com.sun.star.text.ReferenceMark. 
- * Object implements the following interfaces :
- * 
- *   com::sun::star::container::XNamed
- *   com::sun::star::lang::XComponent
- *   com::sun::star::text::XTextContent
- *  
- * This object test  is NOT  designed to be run in several
- * threads concurrently.
- * @see com.sun.star.container.XNamed
- * @see com.sun.star.lang.XComponent
- * @see com.sun.star.text.XTextContent
- * @see com.sun.star.text.ReferenceMark
- * @see ifc.container._XNamed
- * @see ifc.lang._XComponent
- * @see ifc.text._XTextContent
- */
-public class SwXReferenceMark extends TestCase {
-XTextDocument 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sw/CppunitTest_sw_apitests.mk sw/qa

2023-08-25 Thread anfanite396 (via logerrit)
 framework/qa/complex/api_internal/api.lst   |1 
 qadevOOo/Jar_OOoRunner.mk   |1 
 qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextFieldMasters.csv |5 
 qadevOOo/tests/java/mod/_sw/SwXTextFieldMasters.java|  125 
--
 sw/CppunitTest_sw_apitests.mk   |1 
 sw/qa/api/SwXTextFieldMasters.cxx   |   86 
++
 sw/qa/unoapi/sw_3.sce   |1 
 7 files changed, 87 insertions(+), 133 deletions(-)

New commits:
commit 0440f57a096c2d8da704b3bc409ecfd74202ac8f
Author: anfanite396 
AuthorDate: Thu Aug 24 17:09:56 2023 +0530
Commit: Tomaž Vajngerl 
CommitDate: Fri Aug 25 08:24:06 2023 +0200

tdf#45904: Move SwXTextFieldMasters Java tests to C++

Change-Id: Ifa185b24fe49f2c88e4d3687a09ebce5987503a0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156051
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 6e1d1cbe8d65..bcabcb80168d 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -168,7 +168,6 @@ job231=sw.SwXTextColumns
 job232=sw.SwXTextDefaults
 job233=sw.SwXTextEmbeddedObjects
 job234=sw.SwXTextField
-job235=sw.SwXTextFieldMasters
 job237=sw.SwXTextFrameText
 job238=sw.SwXTextGraphicObjects
 job239=sw.SwXTextPortionEnumeration
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index cb0422a1dbe3..3d5e9824b413 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -1132,7 +1132,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObject \
 qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObjects \
 qadevOOo/tests/java/mod/_sw/SwXTextField \
-qadevOOo/tests/java/mod/_sw/SwXTextFieldMasters \
 qadevOOo/tests/java/mod/_sw/SwXTextFrame \
 qadevOOo/tests/java/mod/_sw/SwXTextFrameText \
 qadevOOo/tests/java/mod/_sw/SwXTextGraphicObject \
diff --git 
a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextFieldMasters.csv 
b/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextFieldMasters.csv
deleted file mode 100644
index 4cc2e926c4eb..
--- a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextFieldMasters.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-"SwXTextFieldMasters";"com::sun::star::container::XNameAccess";"getByName()"
-"SwXTextFieldMasters";"com::sun::star::container::XNameAccess";"getElementNames()"
-"SwXTextFieldMasters";"com::sun::star::container::XNameAccess";"hasByName()"
-"SwXTextFieldMasters";"com::sun::star::container::XElementAccess";"getElementType()"
-"SwXTextFieldMasters";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextFieldMasters.java 
b/qadevOOo/tests/java/mod/_sw/SwXTextFieldMasters.java
deleted file mode 100644
index 3f6d70705a41..
--- a/qadevOOo/tests/java/mod/_sw/SwXTextFieldMasters.java
+++ /dev/null
@@ -1,125 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sw;
-
-import java.io.PrintWriter;
-
-import lib.StatusException;
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.text.XTextDocument;
-import com.sun.star.text.XTextFieldsSupplier;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-/**
- *
- * initial description
- * @see com.sun.star.container.XContainer
- * @see com.sun.star.container.XElementAccess
- * @see com.sun.star.container.XNameAccess
- * @see com.sun.star.container.XNameContainer
- * @see com.sun.star.container.XNameReplace
- *
- */
-public class SwXTextFieldMasters extends TestCase {
-
-XTextDocument xTextDoc;
-
-/**
- * in general this method creates a testdocument
- *
- *  @param tParamclass which contains additional test parameters
- *  @param logclass to log the test state and result
- *
- *
- *  @see TestParameters
- *@see PrintWriter
- *
-   

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sw/qa

2023-08-23 Thread anfanite396 (via logerrit)
 framework/qa/complex/api_internal/api.lst   |1 
 qadevOOo/Jar_OOoRunner.mk   |1 
 qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXBookmark.csv |   10 -
 qadevOOo/tests/java/mod/_sw/SwXBookmark.java|  101 
 sw/qa/api/SwXBookmark.cxx   |   96 ---
 sw/qa/unoapi/sw_1.sce   |1 
 6 files changed, 37 insertions(+), 173 deletions(-)

New commits:
commit 6d9f68e47a1984fe310293ea2318e314f4a18bb2
Author: anfanite396 
AuthorDate: Thu Aug 17 16:45:43 2023 +0530
Commit: Tomaž Vajngerl 
CommitDate: Wed Aug 23 15:30:47 2023 +0200

tdf#45904: Remove old SwXBookmark Java test

Change-Id: If17818329b805a03b975e105ea97f7c6cc16d1a4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155767
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 209b3ad1bcb8..6e1d1cbe8d65 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -139,7 +139,6 @@ job200=sw.SwAccessibleTableCellView
 job201=sw.SwAccessibleTextFrameView
 job202=sw.SwAccessibleTextGraphicObject
 job203=sw.SwXBodyText
-job204=sw.SwXBookmark
 job206=sw.SwXCell
 job207=sw.SwXDocumentIndexes
 job208=sw.SwXDocumentIndexMark
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 52cccbc05110..a539bc96c16a 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -1094,7 +1094,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sw/SwXAutoTextEntry \
 qadevOOo/tests/java/mod/_sw/SwXAutoTextGroup \
 qadevOOo/tests/java/mod/_sw/SwXBodyText \
-qadevOOo/tests/java/mod/_sw/SwXBookmark \
 qadevOOo/tests/java/mod/_sw/SwXCell \
 qadevOOo/tests/java/mod/_sw/SwXCellRange \
 qadevOOo/tests/java/mod/_sw/SwXChapterNumbering \
diff --git a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXBookmark.csv 
b/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXBookmark.csv
deleted file mode 100644
index 5508d6f1bd0a..
--- a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXBookmark.csv
+++ /dev/null
@@ -1,10 +0,0 @@
-"SwXBookmark";"com::sun::star::lang::XComponent";"dispose()"
-"SwXBookmark";"com::sun::star::lang::XComponent";"addEventListener()"
-"SwXBookmark";"com::sun::star::lang::XComponent";"removeEventListener()"
-"SwXBookmark";"com::sun::star::text::TextContent";"AnchorType#optional"
-"SwXBookmark";"com::sun::star::text::TextContent";"AnchorTypes#optional"
-"SwXBookmark";"com::sun::star::text::TextContent";"TextWrap#optional"
-"SwXBookmark";"com::sun::star::container::XNamed";"getName()"
-"SwXBookmark";"com::sun::star::container::XNamed";"setName()"
-"SwXBookmark";"com::sun::star::text::XTextContent";"attach()"
-"SwXBookmark";"com::sun::star::text::XTextContent";"getAnchor()"
diff --git a/qadevOOo/tests/java/mod/_sw/SwXBookmark.java 
b/qadevOOo/tests/java/mod/_sw/SwXBookmark.java
deleted file mode 100644
index 034a64b8e827..
--- a/qadevOOo/tests/java/mod/_sw/SwXBookmark.java
+++ /dev/null
@@ -1,101 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sw;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.text.XTextContent;
-import com.sun.star.text.XTextDocument;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-/**
- * Test for object which is represented by service
- * com.sun.star.text.Bookmark. 
- * Object implements the following interfaces :
- * 
- *   com::sun::star::container::XNamed
- *   com::sun::star::lang::XComponent
- *   com::sun::star::text::XTextContent
- *   com::sun::star::text::TextContent
- *  
- * This object test  is NOT  designed to be run in several
- * threads concurrently.
- * @see com.sun.star.container.XNamed
- * @see com.sun.star.lang.XComponent
- * @see com.sun.star.text.XTextContent
- * @see com.sun.star.text.TextContent
- * @see ifc.container._XNamed
- * @see ifc.lang._XComponent
- * 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sw/CppunitTest_sw_apitests.mk sw/qa

2023-08-23 Thread anfanite396 (via logerrit)
 framework/qa/complex/api_internal/api.lst |1 
 qadevOOo/Jar_OOoRunner.mk |1 
 qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextTables.csv |7 
 qadevOOo/tests/java/mod/_sw/SwXTextTables.java|  118 --
 sw/CppunitTest_sw_apitests.mk |1 
 sw/qa/api/SwXTextTables.cxx   |   97 
 sw/qa/unoapi/sw_4.sce |1 
 7 files changed, 98 insertions(+), 128 deletions(-)

New commits:
commit 2c5dfcf4b076aa8a75423a26b0804d5afc90ff0f
Author: anfanite396 
AuthorDate: Thu Aug 17 22:57:29 2023 +0530
Commit: Tomaž Vajngerl 
CommitDate: Wed Aug 23 15:27:08 2023 +0200

tdf#45904: Move SwXTextTables Java tests to C++

Change-Id: I3946e68ce5c8a9611c243e427bc94c277c0a5456
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155810
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 0104075a89b8..209b3ad1bcb8 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -177,7 +177,6 @@ job240=sw.SwXTextRanges
 job241=sw.SwXTextSearch
 job242=sw.SwXTextSection
 job244=sw.SwXTextTableRow
-job245=sw.SwXTextTables
 job246=sw.SwXViewSettings
 job247=sw.XMLContentExporter
 job248=sw.XMLExporter
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 4347ae7f24fe..4fcb8728eb98 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -1150,7 +1150,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sw/SwXTextTable \
 qadevOOo/tests/java/mod/_sw/SwXTextTableCursor \
 qadevOOo/tests/java/mod/_sw/SwXTextTableRow \
-qadevOOo/tests/java/mod/_sw/SwXTextTables \
 qadevOOo/tests/java/mod/_sw/SwXTextView \
 qadevOOo/tests/java/mod/_sw/SwXTextViewCursor \
 qadevOOo/tests/java/mod/_sw/SwXViewSettings \
diff --git a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextTables.csv 
b/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextTables.csv
deleted file mode 100644
index 7fb1526deef1..
--- a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextTables.csv
+++ /dev/null
@@ -1,7 +0,0 @@
-"SwXTextTables";"com::sun::star::container::XNameAccess";"getByName()"
-"SwXTextTables";"com::sun::star::container::XNameAccess";"getElementNames()"
-"SwXTextTables";"com::sun::star::container::XNameAccess";"hasByName()"
-"SwXTextTables";"com::sun::star::container::XIndexAccess";"getCount()"
-"SwXTextTables";"com::sun::star::container::XIndexAccess";"getByIndex()"
-"SwXTextTables";"com::sun::star::container::XElementAccess";"getElementType()"
-"SwXTextTables";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextTables.java 
b/qadevOOo/tests/java/mod/_sw/SwXTextTables.java
deleted file mode 100644
index 28ad076e4f98..
--- a/qadevOOo/tests/java/mod/_sw/SwXTextTables.java
+++ /dev/null
@@ -1,118 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sw;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.lang.XMultiServiceFactory;
-import com.sun.star.text.XTextDocument;
-import com.sun.star.text.XTextTable;
-import com.sun.star.text.XTextTablesSupplier;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-/**
- *
- * initial description
- * @see com.sun.star.container.XElementAccess
- * @see com.sun.star.container.XIndexAccess
- * @see com.sun.star.container.XNameAccess
- *
- */
-public class SwXTextTables extends TestCase {
-XTextDocument xTextDoc;
-
-@Override
-protected void initialize( TestParameters tParam, PrintWriter log ) throws 
Exception {
-SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
-
-log.println( "creating a textdocument" );
-xTextDoc = SOF.createTextDoc( null );
-}
-
-@Override
-protected void cleanup( TestParameters 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sw/CppunitTest_sw_apitests.mk sw/qa

2023-08-23 Thread anfanite396 (via logerrit)
 framework/qa/complex/api_internal/api.lst   |1 
 qadevOOo/Jar_OOoRunner.mk   |1 
 qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextSections.csv |7 
 qadevOOo/tests/java/mod/_sw/SwXTextSections.java|  122 
--
 sw/CppunitTest_sw_apitests.mk   |1 
 sw/qa/api/SwXTextSections.cxx   |  100 
 sw/qa/unoapi/sw_3.sce   |1 
 7 files changed, 101 insertions(+), 132 deletions(-)

New commits:
commit 49c4f0581c7a926f0ab836241f912c70fc9cac75
Author: anfanite396 
AuthorDate: Thu Aug 17 22:04:54 2023 +0530
Commit: Tomaž Vajngerl 
CommitDate: Wed Aug 23 15:26:51 2023 +0200

tdf#45904: Move SwXTextSections Java tests to C++

Change-Id: I24f7098f71a126790a177715a85fcea2724cb4aa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155808
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index c7bf6a1386a3..0104075a89b8 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -176,7 +176,6 @@ job239=sw.SwXTextPortionEnumeration
 job240=sw.SwXTextRanges
 job241=sw.SwXTextSearch
 job242=sw.SwXTextSection
-job243=sw.SwXTextSections
 job244=sw.SwXTextTableRow
 job245=sw.SwXTextTables
 job246=sw.SwXViewSettings
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 3c2e2d780fa1..4347ae7f24fe 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -1147,7 +1147,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sw/SwXTextRanges \
 qadevOOo/tests/java/mod/_sw/SwXTextSearch \
 qadevOOo/tests/java/mod/_sw/SwXTextSection \
-qadevOOo/tests/java/mod/_sw/SwXTextSections \
 qadevOOo/tests/java/mod/_sw/SwXTextTable \
 qadevOOo/tests/java/mod/_sw/SwXTextTableCursor \
 qadevOOo/tests/java/mod/_sw/SwXTextTableRow \
diff --git a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextSections.csv 
b/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextSections.csv
deleted file mode 100644
index 990ae764df98..
--- a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextSections.csv
+++ /dev/null
@@ -1,7 +0,0 @@
-"SwXTextSections";"com::sun::star::container::XNameAccess";"getByName()"
-"SwXTextSections";"com::sun::star::container::XNameAccess";"getElementNames()"
-"SwXTextSections";"com::sun::star::container::XNameAccess";"hasByName()"
-"SwXTextSections";"com::sun::star::container::XIndexAccess";"getCount()"
-"SwXTextSections";"com::sun::star::container::XIndexAccess";"getByIndex()"
-"SwXTextSections";"com::sun::star::container::XElementAccess";"getElementType()"
-"SwXTextSections";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextSections.java 
b/qadevOOo/tests/java/mod/_sw/SwXTextSections.java
deleted file mode 100644
index c00d0cb5ed94..
--- a/qadevOOo/tests/java/mod/_sw/SwXTextSections.java
+++ /dev/null
@@ -1,122 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sw;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.container.XNameAccess;
-import com.sun.star.lang.XMultiServiceFactory;
-import com.sun.star.text.XText;
-import com.sun.star.text.XTextContent;
-import com.sun.star.text.XTextCursor;
-import com.sun.star.text.XTextDocument;
-import com.sun.star.text.XTextSectionsSupplier;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-/**
- *
- * initial description
- * @see com.sun.star.text.XText
- *
- */
-public class SwXTextSections extends TestCase {
-XTextDocument xTextDoc;
-
-@Override
-protected void initialize( TestParameters tParam, PrintWriter log ) throws 
Exception {
-SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
-log.println( "creating a textdocument" );
-xTextDoc = SOF.createTextDoc( null );
-   

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sw/CppunitTest_sw_apitests.mk sw/qa

2023-08-21 Thread anfanite396 (via logerrit)
 framework/qa/complex/api_internal/api.lst |1 
 qadevOOo/Jar_OOoRunner.mk |1 
 qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextFieldTypes.csv |6 
 qadevOOo/tests/java/mod/_sw/SwXTextFieldTypes.java|  126 
--
 sw/CppunitTest_sw_apitests.mk |1 
 sw/qa/api/SwXTextFieldTypes.cxx   |   85 ++
 sw/qa/unoapi/sw_3.sce |1 
 7 files changed, 86 insertions(+), 135 deletions(-)

New commits:
commit 63464fdf552ce82ec29631f0736edd43c0ba4146
Author: anfanite396 
AuthorDate: Sat Jul 8 08:59:58 2023 +0530
Commit: Tomaž Vajngerl 
CommitDate: Mon Aug 21 10:35:18 2023 +0200

Move SwXTextFieldTypes Java tests to C++

Change-Id: I77ca9bc6cd0db626df826e2084514d34becf39bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154208
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 0d1d4e10b391..c7bf6a1386a3 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -170,7 +170,6 @@ job232=sw.SwXTextDefaults
 job233=sw.SwXTextEmbeddedObjects
 job234=sw.SwXTextField
 job235=sw.SwXTextFieldMasters
-job236=sw.SwXTextFieldTypes
 job237=sw.SwXTextFrameText
 job238=sw.SwXTextGraphicObjects
 job239=sw.SwXTextPortionEnumeration
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 0ba2007cb2d5..3c2e2d780fa1 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -1137,7 +1137,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObjects \
 qadevOOo/tests/java/mod/_sw/SwXTextField \
 qadevOOo/tests/java/mod/_sw/SwXTextFieldMasters \
-qadevOOo/tests/java/mod/_sw/SwXTextFieldTypes \
 qadevOOo/tests/java/mod/_sw/SwXTextFrame \
 qadevOOo/tests/java/mod/_sw/SwXTextFrameText \
 qadevOOo/tests/java/mod/_sw/SwXTextGraphicObject \
diff --git a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextFieldTypes.csv 
b/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextFieldTypes.csv
deleted file mode 100644
index 7a466b54f492..
--- a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextFieldTypes.csv
+++ /dev/null
@@ -1,6 +0,0 @@
-"SwXTextFieldTypes";"com::sun::star::util::XRefreshable";"refresh()"
-"SwXTextFieldTypes";"com::sun::star::util::XRefreshable";"addRefreshListener()"
-"SwXTextFieldTypes";"com::sun::star::util::XRefreshable";"removeRefreshListener()"
-"SwXTextFieldTypes";"com::sun::star::container::XElementAccess";"getElementType()"
-"SwXTextFieldTypes";"com::sun::star::container::XElementAccess";"hasElements()"
-"SwXTextFieldTypes";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextFieldTypes.java 
b/qadevOOo/tests/java/mod/_sw/SwXTextFieldTypes.java
deleted file mode 100644
index 03cb9721e750..
--- a/qadevOOo/tests/java/mod/_sw/SwXTextFieldTypes.java
+++ /dev/null
@@ -1,126 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sw;
-
-import java.io.PrintWriter;
-
-import lib.StatusException;
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.text.XTextDocument;
-import com.sun.star.text.XTextFieldsSupplier;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-/**
- *
- * initial description
- * @see com.sun.star.container.XContainer
- * @see com.sun.star.container.XElementAccess
- * @see com.sun.star.container.XEnumerationAccess
- *
- */
-public class SwXTextFieldTypes extends TestCase {
-
-XTextDocument xTextDoc;
-
-/**
- * in general this method creates a testdocument
- *
- *  @param tParamclass which contains additional test parameters
- *  @param logclass to log the test state and result
- *
- *
- *  @see TestParameters
- *@see PrintWriter
- *
- */
-@Override
-protected void 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sw/qa

2023-08-21 Thread anfanite396 (via logerrit)
 framework/qa/complex/api_internal/api.lst|1 
 qadevOOo/Jar_OOoRunner.mk|1 
 qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXBookmarks.csv |7 
 qadevOOo/tests/java/mod/_sw/SwXBookmarks.java|  101 ---
 sw/qa/unoapi/sw_1.sce|1 
 5 files changed, 111 deletions(-)

New commits:
commit d71d61326f4ed87151bb4cee1185561f3ae49204
Author: anfanite396 
AuthorDate: Wed Aug 16 21:57:21 2023 +0530
Commit: Tomaž Vajngerl 
CommitDate: Mon Aug 21 10:34:46 2023 +0200

tdf#45904: Remove old SwXBookmarks Java test

Change-Id: Ie8d66b74192d1741922a7728934317859821fa00
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155745
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 096e10dc81cb..0d1d4e10b391 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -140,7 +140,6 @@ job201=sw.SwAccessibleTextFrameView
 job202=sw.SwAccessibleTextGraphicObject
 job203=sw.SwXBodyText
 job204=sw.SwXBookmark
-job205=sw.SwXBookmarks
 job206=sw.SwXCell
 job207=sw.SwXDocumentIndexes
 job208=sw.SwXDocumentIndexMark
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 60e1df69111b..0ba2007cb2d5 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -1095,7 +1095,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sw/SwXAutoTextGroup \
 qadevOOo/tests/java/mod/_sw/SwXBodyText \
 qadevOOo/tests/java/mod/_sw/SwXBookmark \
-qadevOOo/tests/java/mod/_sw/SwXBookmarks \
 qadevOOo/tests/java/mod/_sw/SwXCell \
 qadevOOo/tests/java/mod/_sw/SwXCellRange \
 qadevOOo/tests/java/mod/_sw/SwXChapterNumbering \
diff --git a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXBookmarks.csv 
b/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXBookmarks.csv
deleted file mode 100644
index 49db753ce896..
--- a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXBookmarks.csv
+++ /dev/null
@@ -1,7 +0,0 @@
-"SwXBookmarks";"com::sun::star::container::XNameAccess";"getByName()"
-"SwXBookmarks";"com::sun::star::container::XNameAccess";"getElementNames()"
-"SwXBookmarks";"com::sun::star::container::XNameAccess";"hasByName()"
-"SwXBookmarks";"com::sun::star::container::XIndexAccess";"getCount()"
-"SwXBookmarks";"com::sun::star::container::XIndexAccess";"getByIndex()"
-"SwXBookmarks";"com::sun::star::container::XElementAccess";"getElementType()"
-"SwXBookmarks";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/qadevOOo/tests/java/mod/_sw/SwXBookmarks.java 
b/qadevOOo/tests/java/mod/_sw/SwXBookmarks.java
deleted file mode 100644
index 3c830212e7cc..
--- a/qadevOOo/tests/java/mod/_sw/SwXBookmarks.java
+++ /dev/null
@@ -1,101 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sw;
-
-import java.io.PrintWriter;
-
-import lib.StatusException;
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.container.XNameAccess;
-import com.sun.star.text.XBookmarksSupplier;
-import com.sun.star.text.XTextContent;
-import com.sun.star.text.XTextDocument;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-/**
- * Test for object which is represented by service
- * com.sun.star.text.Bookmarks. 
- * Object implements the following interfaces :
- * 
- *   com::sun::star::container::XNameAccess
- *   com::sun::star::container::XElementAccess
- *  
- * This object test  is NOT  designed to be run in several
- * threads concurrently.
- * @see com.sun.star.container.XNameAccess
- * @see com.sun.star.container.XElementAccess
- * @see ifc.container._XNameAccess
- * @see ifc.container._XElementAccess
- */
-public class SwXBookmarks extends TestCase {
-XTextDocument xTextDoc;
-SOfficeFactory SOF;
-
-/**
-* Creates text document.
-*/
-@Override
-protected void initialize( TestParameters tParam, PrintWriter log ) throws 
Exception {
-

[Libreoffice-commits] core.git: framework/qa

2023-04-12 Thread Noel Grandin (via logerrit)
 framework/qa/cppunit/dispatchtest.cxx |9 +
 1 file changed, 9 insertions(+)

New commits:
commit 00f73472c1342213b7eb48b9e48175db3c9041c2
Author: Noel Grandin 
AuthorDate: Wed Apr 12 14:00:16 2023 +0200
Commit: Noel Grandin 
CommitDate: Thu Apr 13 07:57:16 2023 +0200

try to fix CppunitTest_framework_dispatch on windows

I see occasional failures here, possibly they are a threading
issue since we are touching these fields from multiple threads.
Add a mutex to see if it helps.

Change-Id: I7277e96d07d292a6bc1d333dabec7a82fc607465
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150281
Tested-by: Noel Grandin 
Reviewed-by: Noel Grandin 

diff --git a/framework/qa/cppunit/dispatchtest.cxx 
b/framework/qa/cppunit/dispatchtest.cxx
index f45f0da5bf0e..fd091f42bd5a 100644
--- a/framework/qa/cppunit/dispatchtest.cxx
+++ b/framework/qa/cppunit/dispatchtest.cxx
@@ -16,6 +16,7 @@
 #include 
 
 #include 
+#include 
 
 using namespace ::com::sun::star;
 
@@ -25,6 +26,7 @@ namespace
 class MyInterceptor
 : public cppu::WeakImplHelper
 {
+std::mutex maMutex;
 uno::Reference m_xMaster;
 uno::Reference m_xSlave;
 uno::Sequence m_aDisabledCommands;
@@ -67,6 +69,7 @@ MyInterceptor::MyInterceptor()
 
 int MyInterceptor::getExpected()
 {
+std::unique_lock aGuard(maMutex);
 int nRet = m_nExpected;
 m_nExpected = 0;
 return nRet;
@@ -74,6 +77,7 @@ int MyInterceptor::getExpected()
 
 int MyInterceptor::getUnexpected()
 {
+std::unique_lock aGuard(maMutex);
 int nRet = m_nUnexpected;
 m_nUnexpected = 0;
 return nRet;
@@ -84,22 +88,26 @@ uno::Sequence MyInterceptor::getInterceptedURLs() 
{ return m_aDisabled
 void MyInterceptor::setMasterDispatchProvider(
 const uno::Reference& xNewSupplier)
 {
+std::unique_lock aGuard(maMutex);
 m_xMaster = xNewSupplier;
 }
 
 uno::Reference 
MyInterceptor::getMasterDispatchProvider()
 {
+std::unique_lock aGuard(maMutex);
 return m_xMaster;
 }
 
 void MyInterceptor::setSlaveDispatchProvider(
 const uno::Reference& xNewSupplier)
 {
+std::unique_lock aGuard(maMutex);
 m_xSlave = xNewSupplier;
 }
 
 uno::Reference 
MyInterceptor::getSlaveDispatchProvider()
 {
+std::unique_lock aGuard(maMutex);
 return m_xSlave;
 }
 
@@ -122,6 +130,7 @@ uno::Reference 
MyInterceptor::queryDispatch(const util::URL& r
   const OUString& 
/*rTargetFrameName*/,
   sal_Int32 
/*SearchFlags*/)
 {
+std::unique_lock aGuard(maMutex);
 if (std::find(std::cbegin(m_aDisabledCommands), 
std::cend(m_aDisabledCommands), rURL.Complete)
 != std::cend(m_aDisabledCommands))
 ++m_nExpected;


[Libreoffice-commits] core.git: framework/qa odk/examples

2023-01-18 Thread Andrea Gelmini (via logerrit)
 framework/qa/complex/framework/recovery/RecoveryTools.java |2 +-
 odk/examples/cpp/Draw/Draw.cxx |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 031f7527f477e0e5561b2de26725d6e45f344c93
Author: Andrea Gelmini 
AuthorDate: Wed Jan 18 10:44:33 2023 +0100
Commit: Adolfo Jayme Barrientos 
CommitDate: Wed Jan 18 11:28:31 2023 +

Fix typo

Change-Id: Ifc9748fc33c72ad6e0cb334ca22ebb8b488164c9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145710
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos 

diff --git a/framework/qa/complex/framework/recovery/RecoveryTools.java 
b/framework/qa/complex/framework/recovery/RecoveryTools.java
index 3a9451250049..cb0183caf455 100644
--- a/framework/qa/complex/framework/recovery/RecoveryTools.java
+++ b/framework/qa/complex/framework/recovery/RecoveryTools.java
@@ -156,7 +156,7 @@ public class RecoveryTools {
 if (userPath.equals(""))userPath = utils.expandMacro(xMSF, 
"${$ORIGIN/bootstrap.ini:UserInstallation}");
 System.out.println("userPath:'" + userPath + "'");
 
-if (userPath.equals("")) throw new 
com.sun.star.io.IOException("could not get user path at bootstraping");
+if (userPath.equals("")) throw new 
com.sun.star.io.IOException("could not get user path at bootstrapping");
 
 String recoveryFolder = utils.getSystemURL(userPath + 
"/user/backup");
 
diff --git a/odk/examples/cpp/Draw/Draw.cxx b/odk/examples/cpp/Draw/Draw.cxx
index 843bdd553346..baed25444155 100644
--- a/odk/examples/cpp/Draw/Draw.cxx
+++ b/odk/examples/cpp/Draw/Draw.cxx
@@ -66,7 +66,7 @@ int main()
 }
 catch (Exception& e)
 {
-std::cout << "Error: cannot do bootstraping." << std::endl << 
e.Message << std::endl;
+std::cout << "Error: cannot do bootstrapping." << std::endl << 
e.Message << std::endl;
 exit(1);
 }
 


[Libreoffice-commits] core.git: framework/qa svx/qa sw/qa sw/source vcl/qa writerfilter/source xmloff/qa xmloff/source

2022-06-14 Thread Miklos Vajna (via logerrit)
 framework/qa/cppunit/dispatchtest.cxx|2 --
 svx/qa/unit/xoutdev.cxx  |1 -
 sw/qa/extras/rtfimport/rtfimport.cxx |1 -
 sw/source/core/crsr/dropdowncontentcontrolbutton.cxx |1 -
 sw/source/core/txtnode/attrlinebreak.cxx |1 -
 vcl/qa/cppunit/filter/ipdf/ipdf.cxx  |1 -
 writerfilter/source/rtftok/rtfcharsets.cxx   |4 +++-
 xmloff/qa/unit/draw.cxx  |2 --
 xmloff/source/text/xmllinebreakcontext.cxx   |3 ++-
 9 files changed, 5 insertions(+), 11 deletions(-)

New commits:
commit b6758293e65864530f1b2508ec426bb4f0268c75
Author: Miklos Vajna 
AuthorDate: Mon Jun 13 20:02:07 2022 +0200
Commit: Miklos Vajna 
CommitDate: Tue Jun 14 08:11:28 2022 +0200

Remove some unused includes

See tdf#42949 for motivation.

Change-Id: I157b331195cc8262e6bd1dcc536cb653587fc45f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135775
Tested-by: Jenkins
Reviewed-by: Miklos Vajna 

diff --git a/framework/qa/cppunit/dispatchtest.cxx 
b/framework/qa/cppunit/dispatchtest.cxx
index 16a4ecb517f1..b0d873e61bbf 100644
--- a/framework/qa/cppunit/dispatchtest.cxx
+++ b/framework/qa/cppunit/dispatchtest.cxx
@@ -12,12 +12,10 @@
 #include 
 
 #include 
-#include 
 #include 
 #include 
 #include 
 
-#include 
 #include 
 
 using namespace ::com::sun::star;
diff --git a/svx/qa/unit/xoutdev.cxx b/svx/qa/unit/xoutdev.cxx
index 41b46016451c..f805f868207e 100644
--- a/svx/qa/unit/xoutdev.cxx
+++ b/svx/qa/unit/xoutdev.cxx
@@ -15,7 +15,6 @@
 #include 
 
 #include 
-#include 
 #include 
 #include 
 #include 
diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx 
b/sw/qa/extras/rtfimport/rtfimport.cxx
index 9047d0b87f3a..e3e7f887a047 100644
--- a/sw/qa/extras/rtfimport/rtfimport.cxx
+++ b/sw/qa/extras/rtfimport/rtfimport.cxx
@@ -18,7 +18,6 @@
 #include 
 #include 
 #include 
-#include 
 #include 
 #include 
 #include 
diff --git a/sw/source/core/crsr/dropdowncontentcontrolbutton.cxx 
b/sw/source/core/crsr/dropdowncontentcontrolbutton.cxx
index 2fa456e41ee5..14f1ba7e84b0 100644
--- a/sw/source/core/crsr/dropdowncontentcontrolbutton.cxx
+++ b/sw/source/core/crsr/dropdowncontentcontrolbutton.cxx
@@ -14,7 +14,6 @@
 
 #include 
 #include 
-#include 
 #include 
 #include 
 #include 
diff --git a/sw/source/core/txtnode/attrlinebreak.cxx 
b/sw/source/core/txtnode/attrlinebreak.cxx
index 6c919a790b89..3f987f7e76cb 100644
--- a/sw/source/core/txtnode/attrlinebreak.cxx
+++ b/sw/source/core/txtnode/attrlinebreak.cxx
@@ -24,7 +24,6 @@
 #include 
 
 #include 
-#include 
 #include 
 #include 
 #include 
diff --git a/vcl/qa/cppunit/filter/ipdf/ipdf.cxx 
b/vcl/qa/cppunit/filter/ipdf/ipdf.cxx
index ca5460e63b48..30fbccc7d2d9 100644
--- a/vcl/qa/cppunit/filter/ipdf/ipdf.cxx
+++ b/vcl/qa/cppunit/filter/ipdf/ipdf.cxx
@@ -13,7 +13,6 @@
 #include 
 #include 
 #include 
-#include 
 #include 
 #include 
 
diff --git a/writerfilter/source/rtftok/rtfcharsets.cxx 
b/writerfilter/source/rtftok/rtfcharsets.cxx
index 14d27b5f2deb..1b71bbb9951c 100644
--- a/writerfilter/source/rtftok/rtfcharsets.cxx
+++ b/writerfilter/source/rtftok/rtfcharsets.cxx
@@ -8,7 +8,9 @@
  */
 
 #include "rtfcharsets.hxx"
-#include 
+
+#include 
+
 #include 
 
 namespace writerfilter::rtftok
diff --git a/xmloff/qa/unit/draw.cxx b/xmloff/qa/unit/draw.cxx
index 3c6d7c707be9..fdfc6e98aa02 100644
--- a/xmloff/qa/unit/draw.cxx
+++ b/xmloff/qa/unit/draw.cxx
@@ -25,8 +25,6 @@
 #include 
 #include 
 
-#include 
-#include 
 #include 
 #include 
 #include 
diff --git a/xmloff/source/text/xmllinebreakcontext.cxx 
b/xmloff/source/text/xmllinebreakcontext.cxx
index 52bf7920e4b9..67b56c2d32c8 100644
--- a/xmloff/source/text/xmllinebreakcontext.cxx
+++ b/xmloff/source/text/xmllinebreakcontext.cxx
@@ -38,7 +38,8 @@ SvXMLLineBreakContext::SvXMLLineBreakContext(SvXMLImport& 
rImport, XMLTextImport
 void SvXMLLineBreakContext::startFastElement(
 sal_Int32 /*nElement*/, const 
uno::Reference& xAttrList)
 {
-uno::Reference 
xFactory(GetImport().GetModel(), uno::UNO_QUERY);
+const uno::Reference& xModel = GetImport().GetModel();
+uno::Reference xFactory(xModel, 
uno::UNO_QUERY);
 if (!xFactory.is())
 return;
 


[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa

2022-03-01 Thread Jens Carl (via logerrit)
 framework/qa/complex/api_internal/api.lst  |1 
 qadevOOo/Jar_OOoRunner.mk  |1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldObj.csv |3 
 qadevOOo/tests/java/mod/_sc/ScCellFieldObj.java|  158 
--
 sc/qa/extras/sceditfieldobj-cell.cxx   |8 
 sc/qa/extras/sceditfieldobj-header.cxx |8 
 sc/qa/unoapi/sc_2.sce  |1 
 7 files changed, 16 insertions(+), 164 deletions(-)

New commits:
commit 26cbb045a06c4027bd7b446d692c3b38297d0283
Author: Jens Carl 
AuthorDate: Mon Feb 28 23:54:54 2022 -0800
Commit: Jens Carl 
CommitDate: Tue Mar 1 17:40:52 2022 +0100

tdf#45904 Move XComponent Java test to C++

Move XComponent Jave tests to C++ for ScCellFieldObj_Cell and
ScCellFieldObj_Header (formerly ScCellFieldObj).

Change-Id: Ibf293a72801720fee49acdda5a3a463e9202bb58
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130742
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index b588cfd18b4b..6854643155be 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -72,7 +72,6 @@ job72=sc.ScAccessiblePageHeader
 job73=sc.ScAccessiblePreviewTable
 job74=sc.ScAccessibleSpreadsheet
 job78=sc.ScAutoFormatFieldObj
-job81=sc.ScCellFieldObj
 job88=sc.ScDatabaseRangeObj
 job98=sc.ScHeaderFieldObj
 job126=sc.ScSheetLinkObj
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 4b91eee49fd4..38a0b628ed4d 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -944,7 +944,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScAnnotationTextCursor \
 qadevOOo/tests/java/mod/_sc/ScAutoFormatFieldObj \
 qadevOOo/tests/java/mod/_sc/ScCellCursorObj \
-qadevOOo/tests/java/mod/_sc/ScCellFieldObj \
 qadevOOo/tests/java/mod/_sc/ScCellObj \
 qadevOOo/tests/java/mod/_sc/ScCellRangeObj \
 qadevOOo/tests/java/mod/_sc/ScCellRangesObj \
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldObj.csv
deleted file mode 100644
index 35be57d9423c..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldObj.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-"ScCellFieldObj";"com::sun::star::lang::XComponent";"dispose()"
-"ScCellFieldObj";"com::sun::star::lang::XComponent";"addEventListener()"
-"ScCellFieldObj";"com::sun::star::lang::XComponent";"removeEventListener()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScCellFieldObj.java 
b/qadevOOo/tests/java/mod/_sc/ScCellFieldObj.java
deleted file mode 100644
index 0194491218ff..
--- a/qadevOOo/tests/java/mod/_sc/ScCellFieldObj.java
+++ /dev/null
@@ -1,158 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.container.XIndexAccess;
-import com.sun.star.lang.XComponent;
-import com.sun.star.lang.XMultiServiceFactory;
-import com.sun.star.sheet.XSpreadsheet;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.sheet.XSpreadsheets;
-import com.sun.star.table.XCell;
-import com.sun.star.text.XText;
-import com.sun.star.text.XTextContent;
-import com.sun.star.uno.AnyConverter;
-import com.sun.star.uno.Type;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-/**
-* Test for object that represents a text field (implements
-* com.sun.star.text.TextField) which inserted in a cell of
-* the spreadsheet. 
-* Object implements the following interfaces :
-* 
-*   com::sun::star::lang::XComponent
-*   com::sun::star::beans::XPropertySet
-*   com::sun::star::text::XTextField
-*   com::sun::star::text::XTextContent
-*   com::sun::star::text::TextContent
-* 
-* @see com.sun.star.text.TextField
-* @see com.sun.star.lang.XComponent
-* @see com.sun.star.beans.XPropertySet

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa

2022-02-27 Thread Jens Carl (via logerrit)
 framework/qa/complex/api_internal/api.lst |1 
 qadevOOo/Jar_OOoRunner.mk |1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScHeaderFieldsObj.csv |2 
 qadevOOo/tests/java/mod/_sc/ScHeaderFieldsObj.java|  158 
--
 sc/qa/extras/scheaderfieldsobj.cxx|   22 +
 sc/qa/unoapi/sc_4.sce |1 
 6 files changed, 19 insertions(+), 166 deletions(-)

New commits:
commit a1877ab81b396c742c58a13d3830b4637db924c0
Author: Jens Carl 
AuthorDate: Sun Feb 27 00:00:17 2022 -0800
Commit: Jens Carl 
CommitDate: Mon Feb 28 06:27:21 2022 +0100

tdf#45904 Move XElementAccess Java test to C++

Move XElementAccess Java test to C++ for ScHeaderFieldsObj.

Change-Id: I1bc29be9f17d117edecfd889b4f9784ffbd74d71
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130660
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index f19edba01394..b588cfd18b4b 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -75,7 +75,6 @@ job78=sc.ScAutoFormatFieldObj
 job81=sc.ScCellFieldObj
 job88=sc.ScDatabaseRangeObj
 job98=sc.ScHeaderFieldObj
-job99=sc.ScHeaderFieldsObj
 job126=sc.ScSheetLinkObj
 job132=sc.ScStyleObj
 job140=sc.XMLContentExporter
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index a526ad0ca163..4b91eee49fd4 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -953,7 +953,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj \
 qadevOOo/tests/java/mod/_sc/ScDocumentConfiguration \
 qadevOOo/tests/java/mod/_sc/ScHeaderFieldObj \
-qadevOOo/tests/java/mod/_sc/ScHeaderFieldsObj \
 qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextCursor \
 qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextObj \
 qadevOOo/tests/java/mod/_sc/ScModelObj \
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScHeaderFieldsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScHeaderFieldsObj.csv
deleted file mode 100644
index 1d68820a8b35..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScHeaderFieldsObj.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScHeaderFieldsObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScHeaderFieldsObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScHeaderFieldsObj.java 
b/qadevOOo/tests/java/mod/_sc/ScHeaderFieldsObj.java
deleted file mode 100644
index 945b607cde79..
--- a/qadevOOo/tests/java/mod/_sc/ScHeaderFieldsObj.java
+++ /dev/null
@@ -1,158 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.beans.XPropertySet;
-import com.sun.star.container.XNameAccess;
-import com.sun.star.lang.XComponent;
-import com.sun.star.lang.XMultiServiceFactory;
-import com.sun.star.sheet.XHeaderFooterContent;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.style.XStyle;
-import com.sun.star.style.XStyleFamiliesSupplier;
-import com.sun.star.text.XText;
-import com.sun.star.text.XTextContent;
-import com.sun.star.text.XTextCursor;
-import com.sun.star.text.XTextFieldsSupplier;
-import com.sun.star.uno.AnyConverter;
-import com.sun.star.uno.Type;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-/**
- * Test for object which is represented by collection of
- * text fields contained in the text of a page header. 
- *
- * Object implements the following interfaces :
- * 
- *   com::sun::star::container::XEnumerationAccess
- *   com::sun::star::util::XRefreshable
- *   com::sun::star::container::XElementAccess
- *  
- *
- * @see com.sun.star.container.XEnumerationAccess
- * @see com.sun.star.util.XRefreshable
- * @see com.sun.star.container.XElementAccess
- * @see 

[Libreoffice-commits] core.git: framework/qa

2022-02-23 Thread Xisco Fauli (via logerrit)
 framework/qa/cppunit/dispatchtest.cxx |   20 
 1 file changed, 20 deletions(-)

New commits:
commit 280c5053734ad349dcc774909e56189f11fceb9e
Author: Xisco Fauli 
AuthorDate: Wed Feb 23 00:41:08 2022 +0100
Commit: Xisco Fauli 
CommitDate: Wed Feb 23 09:06:59 2022 +0100

CppunitTest_framework_dispatch: remove duplicated dispatchCommand

it's already defined in unotest::MacrosTest

Change-Id: I2abc4bea61f55242b9cf3c7f030f5c74f8a51efe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130402
Tested-by: Jenkins
Reviewed-by: Xisco Fauli 

diff --git a/framework/qa/cppunit/dispatchtest.cxx 
b/framework/qa/cppunit/dispatchtest.cxx
index 4a22ab028ea5..16a4ecb517f1 100644
--- a/framework/qa/cppunit/dispatchtest.cxx
+++ b/framework/qa/cppunit/dispatchtest.cxx
@@ -139,9 +139,6 @@ class DispatchTest : public test::BootstrapFixture, public 
unotest::MacrosTest
 {
 protected:
 uno::Reference mxComponent;
-void dispatchCommand(const uno::Reference& xComponent,
- const OUString& rCommand,
- const uno::Sequence& 
rPropertyValues);
 
 public:
 virtual void setUp() override;
@@ -163,23 +160,6 @@ void DispatchTest::tearDown()
 test::BootstrapFixture::tearDown();
 }
 
-void DispatchTest::dispatchCommand(const uno::Reference& 
xComponent,
-   const OUString& rCommand,
-   const uno::Sequence& 
rPropertyValues)
-{
-uno::Reference xController
-= uno::Reference(xComponent, 
uno::UNO_QUERY_THROW)->getCurrentController();
-CPPUNIT_ASSERT(xController.is());
-uno::Reference xFrame(xController->getFrame(), 
uno::UNO_QUERY);
-CPPUNIT_ASSERT(xFrame.is());
-
-uno::Reference xContext = 
::comphelper::getProcessComponentContext();
-uno::Reference 
xDispatchHelper(frame::DispatchHelper::create(xContext));
-CPPUNIT_ASSERT(xDispatchHelper.is());
-
-xDispatchHelper->executeDispatch(xFrame, rCommand, OUString(), 0, 
rPropertyValues);
-}
-
 CPPUNIT_TEST_FIXTURE(DispatchTest, testInterception)
 {
 mxComponent = loadFromDesktop("private:factory/swriter", 
"com.sun.star.text.TextDocument");


[Libreoffice-commits] core.git: framework/qa framework/source

2021-10-30 Thread Mike Kaganski (via logerrit)
 framework/qa/cppunit/dispatchtest.cxx |5 
 framework/source/accelerators/acceleratorconfiguration.cxx|6 
 framework/source/accelerators/presethandler.cxx   |   12 
 framework/source/classes/taskcreator.cxx  |   13 
 framework/source/dispatch/closedispatcher.cxx |   12 
 framework/source/dispatch/dispatchdisabler.cxx|6 
 framework/source/dispatch/dispatchinformationprovider.cxx |7 
 framework/source/dispatch/dispatchprovider.cxx|7 
 framework/source/dispatch/interceptionhelper.cxx  |5 
 framework/source/dispatch/mailtodispatcher.cxx|3 
 framework/source/dispatch/oxt_handler.cxx |3 
 framework/source/dispatch/popupmenudispatcher.cxx |3 
 framework/source/dispatch/servicehandler.cxx  |3 
 framework/source/dispatch/systemexec.cxx  |3 
 framework/source/fwe/classes/actiontriggercontainer.cxx   |8 
 framework/source/fwe/classes/addonsoptions.cxx|  394 
+-
 framework/source/fwe/classes/rootactiontriggercontainer.cxx   |9 
 framework/source/fwe/helper/undomanagerhelper.cxx |3 
 framework/source/fwe/xml/menudocumenthandler.cxx  |   38 
 framework/source/fwe/xml/statusbardocumenthandler.cxx |   23 
 framework/source/fwe/xml/toolboxdocumenthandler.cxx   |   31 
 framework/source/fwi/classes/converter.cxx|5 
 framework/source/fwi/classes/protocolhandlercache.cxx |4 
 framework/source/fwi/jobs/configaccess.cxx|3 
 framework/source/fwi/uielement/constitemcontainer.cxx |4 
 framework/source/fwi/uielement/itemcontainer.cxx  |4 
 framework/source/fwi/uielement/rootitemcontainer.cxx  |2 
 framework/source/helper/oframes.cxx   |8 
 framework/source/jobs/job.cxx |   56 -
 framework/source/jobs/jobdata.cxx |   23 
 framework/source/jobs/jobdispatch.cxx |4 
 framework/source/layoutmanager/helpers.cxx|6 
 framework/source/layoutmanager/layoutmanager.cxx  |   50 -
 framework/source/layoutmanager/toolbarlayoutmanager.cxx   |   63 -
 framework/source/loadenv/loadenv.cxx  |6 
 framework/source/services/dispatchhelper.cxx  |5 
 framework/source/services/frame.cxx   |4 
 framework/source/services/mediatypedetectionhelper.cxx|3 
 framework/source/services/pathsettings.cxx|   53 -
 framework/source/services/sessionlistener.cxx |8 
 framework/source/services/taskcreatorsrv.cxx  |9 
 framework/source/uiconfiguration/imagemanagerimpl.cxx |3 
 framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx |   11 
 framework/source/uiconfiguration/uiconfigurationmanager.cxx   |   11 
 framework/source/uielement/FixedTextToolbarController.cxx |8 
 framework/source/uielement/buttontoolbarcontroller.cxx|6 
 framework/source/uielement/comboboxtoolbarcontroller.cxx  |8 
 framework/source/uielement/complextoolbarcontroller.cxx   |   11 
 framework/source/uielement/dropdownboxtoolbarcontroller.cxx   |8 
 framework/source/uielement/edittoolbarcontroller.cxx  |9 
 framework/source/uielement/generictoolbarcontroller.cxx   |5 
 framework/source/uielement/menubarmanager.cxx |8 
 framework/source/uielement/newmenucontroller.cxx  |   11 
 framework/source/uielement/popuptoolbarcontroller.cxx |7 
 framework/source/uielement/recentfilesmenucontroller.cxx  |   18 
 framework/source/uielement/spinfieldtoolbarcontroller.cxx |   14 
 framework/source/uielement/togglebuttontoolbarcontroller.cxx  |   11 
 framework/source/uielement/toolbarmanager.cxx |   12 
 framework/source/uielement/toolbarsmenucontroller.cxx |   16 
 framework/source/uielement/uicommanddescription.cxx   |   31 
 framework/source/uifactory/addonstoolbarfactory.cxx   |   16 
 framework/source/uifactory/menubarfactory.cxx |3 
 framework/source/uifactory/uicontrollerfactory.cxx|5 
 framework/source/uifactory/uielementfactorymanager.cxx|   18 
 64 files changed, 568 insertions(+), 596 deletions(-)

New commits:
commit f662ba95361ba6b8eb49e0acd98bf28bc5f21100
Author: Mike Kaganski 
AuthorDate: Fri Oct 29 09:44:28 2021 

[Libreoffice-commits] core.git: framework/qa sfx2/inc sfx2/source

2021-06-30 Thread Michael Stahl (via logerrit)
 framework/qa/cppunit/data/empty.fodp  |2 ++
 framework/qa/cppunit/dispatchtest.cxx |   32 
 sfx2/inc/unoctitm.hxx |7 ++-
 sfx2/source/control/unoctitm.cxx  |   21 +
 4 files changed, 61 insertions(+), 1 deletion(-)

New commits:
commit 7cbd6d768d282077053c354254315f3dc89bf254
Author: Michael Stahl 
AuthorDate: Wed Jun 30 13:26:59 2021 +0200
Commit: Michael Stahl 
CommitDate: Wed Jun 30 18:40:27 2021 +0200

sfx2: try to fix lifecycle of SfxOfficeDispatch

This can be created either from the global SfxApplication, or from a
SfxViewFrame.

Particularly in the latter case, the SfxDispatcher and SfxBindings
members are owned by SfxViewFrame, so in case that is destroyed, the
SfxOfficeDispatch must clear its pointers.

It looks like the member pointers are checked before access already
everywhere, so just listen at the SfxViewFrame.

Change-Id: If08825734e94dd54e32cb77546684fd583c336ec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118162
Tested-by: Michael Stahl 
Reviewed-by: Michael Stahl 

diff --git a/framework/qa/cppunit/data/empty.fodp 
b/framework/qa/cppunit/data/empty.fodp
new file mode 100644
index ..3c2a4cf2cda5
--- /dev/null
+++ b/framework/qa/cppunit/data/empty.fodp
@@ -0,0 +1,2 @@
+
+
diff --git a/framework/qa/cppunit/dispatchtest.cxx 
b/framework/qa/cppunit/dispatchtest.cxx
index 586c4af3b9b0..2f21a71b005e 100644
--- a/framework/qa/cppunit/dispatchtest.cxx
+++ b/framework/qa/cppunit/dispatchtest.cxx
@@ -15,6 +15,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #include 
 #include 
@@ -199,6 +200,37 @@ CPPUNIT_TEST_FIXTURE(DispatchTest, testInterception)
 // This was 1: MyInterceptor::queryDispatch() was called for .uno:Italic.
 CPPUNIT_ASSERT_EQUAL(0, pInterceptor->getUnexpected());
 }
+
+constexpr OUStringLiteral DATA_DIRECTORY = u"/framework/qa/cppunit/data/";
+
+CPPUNIT_TEST_FIXTURE(DispatchTest, testSfxOfficeDispatchDispose)
+{
+// this test doesn't work with a new document because of aURL.Main check 
in SfxBaseController::dispatch()
+mxComponent = loadFromDesktop(m_directories.getURLFromSrc(DATA_DIRECTORY) 
+ "empty.fodp",
+  
"com.sun.star.presentation.PresentationDocument");
+uno::Reference xModel(mxComponent, uno::UNO_QUERY);
+CPPUNIT_ASSERT(xModel.is());
+uno::Reference 
xController(xModel->getCurrentController());
+CPPUNIT_ASSERT(xController.is());
+uno::Reference xFrame(xController->getFrame(), 
uno::UNO_QUERY);
+CPPUNIT_ASSERT(xFrame.is());
+
+uno::Reference 
xParser(util::URLTransformer::create(mxComponentContext));
+util::URL url;
+url.Complete = xModel->getURL() + "#dummy";
+xParser->parseStrict(url);
+
+uno::Reference xDisp(xFrame->queryDispatch(url, "", 0));
+CPPUNIT_ASSERT(xDisp.is());
+
+mxComponent->dispose();
+
+util::URL urlSlot;
+urlSlot.Complete = "slot:5598";
+xParser->parseStrict(urlSlot);
+// crashed with UAF
+xDisp->dispatch(urlSlot, {});
+}
 }
 
 CPPUNIT_PLUGIN_IMPLEMENT();
diff --git a/sfx2/inc/unoctitm.hxx b/sfx2/inc/unoctitm.hxx
index 805ff22b3124..9e6bc19da488 100644
--- a/sfx2/inc/unoctitm.hxx
+++ b/sfx2/inc/unoctitm.hxx
@@ -25,6 +25,7 @@
 #include 
 #include 
 
+#include 
 #include 
 #include 
 
@@ -101,7 +102,9 @@ public:
 SfxDispatcher*  GetDispatcher_Impl();
 };
 
-class SfxDispatchController_Impl final : public SfxControllerItem
+class SfxDispatchController_Impl final
+: public SfxControllerItem
+, public SfxListener
 {
 css::util::URL  aDispatchURL;
 SfxDispatcher*  pDispatcher;
@@ -126,6 +129,8 @@ public:
 const css::util::URL& rURL 
);
 virtual ~SfxDispatchController_Impl() override;
 
+virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) override;
+
 static OUString getSlaveCommand( const css::util::URL& rURL );
 
 voidStateChanged( sal_uInt16 nSID, SfxItemState eState, 
const SfxPoolItem* pState, SfxSlotServer const * pServ );
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 50034333bcd5..58bdc6179008 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -323,6 +323,27 @@ SfxDispatchController_Impl::SfxDispatchController_Impl(
 BindInternal_Impl( nSlot, pBindings );
 pBindings->LEAVEREGISTRATIONS();
 }
+assert(pDispatcher);
+assert(SfxApplication::Get()->GetAppDispatcher_Impl() == pDispatcher
+|| pDispatcher->GetFrame() != nullptr);
+if (pDispatcher->GetFrame())
+{
+StartListening(*pDispatcher->GetFrame());
+}
+else
+{
+StartListening(*SfxApplication::Get());
+}
+}
+
+void SfxDispatchController_Impl::Notify(SfxBroadcaster& rBC, SfxHint const& 
rHint)
+{

[Libreoffice-commits] core.git: framework/qa

2021-06-01 Thread Noel Grandin (via logerrit)
 framework/qa/cppunit/services.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 25a648541a423b794b5827552e03fba1084b3792
Author: Noel Grandin 
AuthorDate: Tue Jun 1 11:12:19 2021 +0200
Commit: Noel Grandin 
CommitDate: Tue Jun 1 12:57:37 2021 +0200

fix leak in CppunitTest_framework_services

Change-Id: I522e3e9b57668d7a8d1df10f4520045a3a3553dc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116524
Tested-by: Jenkins
Reviewed-by: Noel Grandin 

diff --git a/framework/qa/cppunit/services.cxx 
b/framework/qa/cppunit/services.cxx
index 93d05ff65ca5..c75ce9f65633 100644
--- a/framework/qa/cppunit/services.cxx
+++ b/framework/qa/cppunit/services.cxx
@@ -94,7 +94,7 @@ CPPUNIT_TEST_FIXTURE(Test, testLoadComponentFromURL)
 
 // Create a default window, so by the time the thread would post a user 
event, it doesn't need
 // the solar mutex to process a SendMessageW() call on Windows.
-VclPtrInstance xWindow(nullptr, WB_APP | WB_STDWORK);
+ScopedVclPtrInstance xWindow(nullptr, WB_APP | WB_STDWORK);
 // Variable is not used, it holds the default window.
 (void)xWindow;
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: framework/qa

2020-07-24 Thread Caolán McNamara (via logerrit)
 framework/qa/complex/loadAllDocuments/CheckXComponentLoader.java |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c766178af6f4ddde52a148836ce23d46d7566530
Author: Caolán McNamara 
AuthorDate: Fri Jul 24 16:53:42 2020 +0100
Commit: Caolán McNamara 
CommitDate: Fri Jul 24 20:08:34 2020 +0200

TODo -> TODO

Change-Id: Ie62909f7cffb8fdf178b0588e4f7dd3fc4b8ced3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99385
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/framework/qa/complex/loadAllDocuments/CheckXComponentLoader.java 
b/framework/qa/complex/loadAllDocuments/CheckXComponentLoader.java
index 95fade57ece4..451ba1292c48 100644
--- a/framework/qa/complex/loadAllDocuments/CheckXComponentLoader.java
+++ b/framework/qa/complex/loadAllDocuments/CheckXComponentLoader.java
@@ -389,7 +389,7 @@ public class CheckXComponentLoader
 }
 }
 
-/** TODo document me
+/** TODO document me
  */
 @Test public void checkStreamLoading() throws Exception
 {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: framework/qa include/svtools

2019-12-28 Thread Andrea Gelmini (via logerrit)
 framework/qa/complex/loadAllDocuments/CheckXComponentLoader.java |2 +-
 include/svtools/acceleratorexecute.hxx   |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 84eb872beb5f68a985dfe65c16c756cb4c45a84b
Author: Andrea Gelmini 
AuthorDate: Sat Dec 28 10:47:46 2019 +0100
Commit: Julien Nabet 
CommitDate: Sat Dec 28 11:58:16 2019 +0100

Fix typo

Change-Id: Iebf4da702da03d9888bad314eb401cff6a26bd2b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85903
Reviewed-by: Julien Nabet 
Tested-by: Julien Nabet 

diff --git a/framework/qa/complex/loadAllDocuments/CheckXComponentLoader.java 
b/framework/qa/complex/loadAllDocuments/CheckXComponentLoader.java
index c6bd94afa8bb..95fade57ece4 100644
--- a/framework/qa/complex/loadAllDocuments/CheckXComponentLoader.java
+++ b/framework/qa/complex/loadAllDocuments/CheckXComponentLoader.java
@@ -213,7 +213,7 @@ public class CheckXComponentLoader
 
 loadURL(m_xLoader, RESULT_VALID_DOC, sURL, "_blank", 0, lProps);
 // It's not needed to reset this using states!
-// Its done internally ...
+// It's done internally...
 if (!xIndicator.wasUsed())
 {
 System.out.println("External progress was not used for 
loading.");
diff --git a/include/svtools/acceleratorexecute.hxx 
b/include/svtools/acceleratorexecute.hxx
index d2b5969e6b9f..6c846bc5287e 100644
--- a/include/svtools/acceleratorexecute.hxx
+++ b/include/svtools/acceleratorexecute.hxx
@@ -160,7 +160,7 @@ class SVT_DLLPUBLIC AcceleratorExecute final : private 
TMutexInit
 @return [bool]
 true if this key is configured and match to a command.
 Attention: This state does not mean the success state
-of the corresponding execute. Because its done 
asynchronous!
+of the corresponding execute. Because it's done 
asynchronously!
  */
 bool execute(const vcl::KeyCode&   aKey);
 bool execute(const css::awt::KeyEvent& aKey);
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: framework/qa

2019-11-10 Thread Julien Nabet (via logerrit)
 framework/qa/complex/framework/autosave/Protocol.java |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cd8eb77fa5e258f09b2e2950111b1473ffde6408
Author: Julien Nabet 
AuthorDate: Sun Nov 10 17:27:37 2019 +0100
Commit: Julien Nabet 
CommitDate: Sun Nov 10 17:33:30 2019 +0100

Typo meesages->messages (framework)

Change-Id: I9e43e516482292ce8f0506e260152b7e678c716e
Reviewed-on: https://gerrit.libreoffice.org/82392
Reviewed-by: Julien Nabet 
Tested-by: Julien Nabet 

diff --git a/framework/qa/complex/framework/autosave/Protocol.java 
b/framework/qa/complex/framework/autosave/Protocol.java
index ee015e28a09f..d5cc42b67412 100644
--- a/framework/qa/complex/framework/autosave/Protocol.java
+++ b/framework/qa/complex/framework/autosave/Protocol.java
@@ -29,7 +29,7 @@ import java.sql.*;
 
 /**
  * Implements a log mechanism to create a protocol of all steps of e.g. an api 
test
- * It provides the possibility to write the logged meesages to a file and/or
+ * It provides the possibility to write the logged messages to a file and/or
  * to stdout/stderr (if necessary at the same time!).
  *
  *  TODO
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: framework/qa odk/examples package/qa qadevOOo/tests

2019-09-10 Thread Andrea Gelmini (via logerrit)
 framework/qa/complex/framework/recovery/RecoveryTest.java |2 -
 odk/examples/java/Storage/Test06.java |   24 +++---
 package/qa/ofopxmlstorages/Test06.java|   24 +++---
 package/qa/storages/Test06.java   |   24 +++---
 qadevOOo/tests/java/ifc/awt/_XUnoControlContainer.java|2 -
 qadevOOo/tests/java/ifc/chart/_ChartAxis.java |4 +-
 qadevOOo/tests/java/ifc/container/_XIndexAccess.java  |2 -
 7 files changed, 41 insertions(+), 41 deletions(-)

New commits:
commit fce010450534e6992345f5df7b9d9665befb7c6e
Author: Andrea Gelmini 
AuthorDate: Tue Sep 10 10:36:47 2019 +0200
Commit: Julien Nabet 
CommitDate: Tue Sep 10 11:56:52 2019 +0200

Fix typos

Change-Id: Ibc1b7393a8e65bf23c78fdb9da78c6b73b544cf3
Reviewed-on: https://gerrit.libreoffice.org/78793
Tested-by: Jenkins
Reviewed-by: Julien Nabet 

diff --git a/framework/qa/complex/framework/recovery/RecoveryTest.java 
b/framework/qa/complex/framework/recovery/RecoveryTest.java
index 5c95e3bdc659..2f5882899bfa 100644
--- a/framework/qa/complex/framework/recovery/RecoveryTest.java
+++ b/framework/qa/complex/framework/recovery/RecoveryTest.java
@@ -530,7 +530,7 @@ public class RecoveryTest extends ComplexTestCase {
 int height = rand.nextInt(maxHeight + 1);
 int width = rand.nextInt((windowMaxSize.Width-posSize.Y) + 1);
 
-// be sure that the new size his greater then the half of windowMaxSize
+// be sure that the new size his greater than the half of windowMaxSize
 posSize.Height = (height < (maxHeight / 2)) ? height + (maxHeight / 2) 
: height;
 posSize.Width =  (width < (maxWidth / 2)) ? width + (maxWidth / 2) : 
width;
 
diff --git a/odk/examples/java/Storage/Test06.java 
b/odk/examples/java/Storage/Test06.java
index 22ff96a72221..027a4a2c1521 100644
--- a/odk/examples/java/Storage/Test06.java
+++ b/odk/examples/java/Storage/Test06.java
@@ -62,7 +62,7 @@ public class Test06 implements StorageTest {
 {}
 catch( Exception e )
 {
-m_aTestHelper.Error( "Unexpected excepion because of illegal 
parameter : " + e );
+m_aTestHelper.Error( "Unexpected exception because of illegal 
parameter : " + e );
 return false;
 }
 
@@ -90,7 +90,7 @@ public class Test06 implements StorageTest {
 {}
 catch( Exception e )
 {
-m_aTestHelper.Error( "Unexpected excepion in case of try to 
open nonexistent stream for reading : " + e );
+m_aTestHelper.Error( "Unexpected exception in case of try to 
open nonexistent stream for reading : " + e );
 return false;
 }
 
@@ -105,7 +105,7 @@ public class Test06 implements StorageTest {
 {}
 catch( Exception e )
 {
-m_aTestHelper.Error( "Unexpected excepion in case of try to 
open nonexistent storage for reading : " + e );
+m_aTestHelper.Error( "Unexpected exception in case of try to 
open nonexistent storage for reading : " + e );
 return false;
 }
 
@@ -120,7 +120,7 @@ public class Test06 implements StorageTest {
 {}
 catch( Exception e )
 {
-m_aTestHelper.Error( "Unexpected excepion in case of try to 
remove nonexistent element : " + e );
+m_aTestHelper.Error( "Unexpected exception in case of try to 
remove nonexistent element : " + e );
 return false;
 }
 
@@ -135,7 +135,7 @@ public class Test06 implements StorageTest {
 {}
 catch( Exception e )
 {
-m_aTestHelper.Error( "Unexpected excepion in case of try to 
rename nonexistent element : " + e );
+m_aTestHelper.Error( "Unexpected exception in case of try to 
rename nonexistent element : " + e );
 return false;
 }
 
@@ -150,7 +150,7 @@ public class Test06 implements StorageTest {
 {}
 catch( Exception e )
 {
-m_aTestHelper.Error( "Unexpected excepion in case of try to 
rename to the name of existent element : " + e );
+m_aTestHelper.Error( "Unexpected exception in case of try to 
rename to the name of existent element : " + e );
 return false;
 }
 
@@ -167,7 +167,7 @@ public class Test06 implements StorageTest {
 {}
 catch( Exception e )
 {
-m_aTestHelper.Error( "Unexpected excepion in case empty 
reference is provieded as target for copying : " + e );
+m_aTestHelper.Error( "Unexpected exception in case empty 
reference is provided as target for copying : " + e );
 return false;
 }
 
@@ -184,7 +184,7 @@ public class Test06 implements 

[Libreoffice-commits] core.git: framework/qa

2019-06-13 Thread Andrea Gelmini (via logerrit)
 framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java |2 
+-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3a6b10e0bc8dde60fde8e643930fa2e8d89f5ee4
Author: Andrea Gelmini 
AuthorDate: Mon Jun 10 16:56:29 2019 +
Commit: Julien Nabet 
CommitDate: Fri Jun 14 07:09:55 2019 +0200

Fix typo

Change-Id: I6933975c919f32cfda38624fc65b59b1b0ef821e
Reviewed-on: https://gerrit.libreoffice.org/74003
Tested-by: Jenkins
Reviewed-by: Julien Nabet 

diff --git 
a/framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java 
b/framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java
index fdf2259c2f88..7496b58e080b 100644
--- a/framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java
+++ b/framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java
@@ -111,7 +111,7 @@ public class ContextMenuInterceptor implements 
XContextMenuInterceptor
 catch (com.sun.star.beans.UnknownPropertyException ex)
 {
 // do something useful
-// we used a unknown property
+// we used an unknown property
 }
 catch (com.sun.star.lang.IndexOutOfBoundsException ex)
 {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: framework/qa

2019-06-12 Thread Andrea Gelmini (via logerrit)
 framework/qa/complex/framework/recovery/RecoveryTest.java |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 31944b14c3e998a37a0bb3dff300f4460c322183
Author: Andrea Gelmini 
AuthorDate: Mon Jun 10 16:56:27 2019 +
Commit: Julien Nabet 
CommitDate: Wed Jun 12 08:54:29 2019 +0200

Fix typo

Change-Id: Ic079b52586850d3742a9db6755b2faa2862fd60b
Reviewed-on: https://gerrit.libreoffice.org/73851
Reviewed-by: Julien Nabet 
Tested-by: Jenkins

diff --git a/framework/qa/complex/framework/recovery/RecoveryTest.java 
b/framework/qa/complex/framework/recovery/RecoveryTest.java
index 67bda08879cf..5c95e3bdc659 100644
--- a/framework/qa/complex/framework/recovery/RecoveryTest.java
+++ b/framework/qa/complex/framework/recovery/RecoveryTest.java
@@ -162,7 +162,7 @@ public class RecoveryTest extends ComplexTestCase {
 catch ( com.sun.star.container.NoSuchElementException e){}
 catch ( com.sun.star.lang.WrappedTargetException e){}
 
-String msg ="The amount of documents to recover is different form the 
expected amount:\n";
+String msg ="The amount of documents to recover is different from the 
expected amount:\n";
 msg += "\texpected:\t" + expectedDocumentCount + "\n";
 msg += "\tto recover:\t" + documentCount;
 
@@ -243,7 +243,7 @@ public class RecoveryTest extends ComplexTestCase {
 String[] documents = oUITools.getListBoxItems("The following files 
will be recovered");
 log.println("there are " + documents.length + " documents to 
save");
 
-String msg ="The amount of documents to recover is different form 
the expected amount:\n";
+String msg ="The amount of documents to recover is different from 
the expected amount:\n";
 msg += "\texpected:\t" + expectedDocumentCount + "\n";
 msg += "\tto recover:\t" + documents.length;
 
@@ -338,7 +338,7 @@ public class RecoveryTest extends ComplexTestCase {
 log.println(documents[i]);
 }
 
-String msg ="The amount of documents to recover is different form 
the expected amount:\n";
+String msg ="The amount of documents to recover is different from 
the expected amount:\n";
 msg += "\texpected:\t" + expectedDocumentCount + "\n";
 msg += "\tto recover:\t" + documents.length;
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: framework/qa

2019-06-11 Thread Andrea Gelmini (via logerrit)
 framework/qa/complex/framework/autosave/Protocol.java |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit fb0e62afef161faa18a93169c657984e4f877fd8
Author: Andrea Gelmini 
AuthorDate: Mon Jun 10 16:56:28 2019 +
Commit: Julien Nabet 
CommitDate: Wed Jun 12 07:09:33 2019 +0200

Fix typo

Change-Id: I8fec8ce31cd74c3322bc55bdbb2692e9f9941d45
Reviewed-on: https://gerrit.libreoffice.org/73850
Tested-by: Jenkins
Reviewed-by: Julien Nabet 

diff --git a/framework/qa/complex/framework/autosave/Protocol.java 
b/framework/qa/complex/framework/autosave/Protocol.java
index 1095ef9a035f..ee015e28a09f 100644
--- a/framework/qa/complex/framework/autosave/Protocol.java
+++ b/framework/qa/complex/framework/autosave/Protocol.java
@@ -49,7 +49,7 @@ public class Protocol extends JComponent
  * @const   TYPE_SCOPE_OPEN open, mark or count a new scope for 
following log statements
  * @const   TYPE_SCOPE_CLOSEclose, mark or count the current scope
  * @const   TYPE_TESTMARK   it marks the beginning of a (sub)test, 
can be used for statistic purposes
- * @const   TYPE_OK this protocol line is marked as a OK 
message
+ * @const   TYPE_OK this protocol line is marked as an OK 
message
  * @const   TYPE_ERROR  this protocol line is marked as an 
error
  * @const   TYPE_WARNINGthis protocol line is marked as a 
warning
  * @const   TYPE_INFO   this protocol line represent some 
debug data for analyzing
@@ -478,7 +478,7 @@ public class Protocol extends JComponent
 /**
  * log an unspecified message.
  *
- * Sometimes it's not necessary to set a special type for an message.
+ * Sometimes it's not necessary to set a special type for a message.
  * The pure message seems to be enough. The type of such "pure messages"
  * will be set to INFO.
  *
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: framework/qa

2019-06-09 Thread Andrea Gelmini (via logerrit)
 framework/qa/complex/loadAllDocuments/InteractionHandler.java |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c70c9d787e824871fd7c57633fac409058f27a65
Author: Andrea Gelmini 
AuthorDate: Tue May 14 21:22:51 2019 +
Commit: Julien Nabet 
CommitDate: Sun Jun 9 10:13:56 2019 +0200

Fix typo

Change-Id: I4c35be2f4261bca19ebd1f100846f650e2af905e
Reviewed-on: https://gerrit.libreoffice.org/73730
Tested-by: Jenkins
Reviewed-by: Julien Nabet 

diff --git a/framework/qa/complex/loadAllDocuments/InteractionHandler.java 
b/framework/qa/complex/loadAllDocuments/InteractionHandler.java
index fa2ddba9226f..24cf6a151f7b 100644
--- a/framework/qa/complex/loadAllDocuments/InteractionHandler.java
+++ b/framework/qa/complex/loadAllDocuments/InteractionHandler.java
@@ -95,7 +95,7 @@ public class InteractionHandler implements XInteractionHandler
 catch(com.sun.star.lang.IllegalArgumentException exArg) {}
 }
 
-// try it again, but only if it wasn't tried to much before.
+// try it again, but only if it wasn't tried too much before.
 if (xRetry != null)
 {
 synchronized(this)
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: framework/qa include/test qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa test/Library_subsequenttest.mk test/source

2019-05-01 Thread Jens Carl (via logerrit)
 framework/qa/complex/api_internal/api.lst   |1 
 include/test/util/xreplacedescriptor.hxx|   33 ++
 qadevOOo/Jar_OOoRunner.mk   |1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellSearchObj.csv |2 
 qadevOOo/tests/java/mod/_sc/ScCellSearchObj.java|  122 
--
 sc/qa/extras/sccellsearchobj.cxx|5 
 sc/qa/unoapi/sc_3.sce   |1 
 test/Library_subsequenttest.mk  |1 
 test/source/util/xreplacedescriptor.cxx |   37 +++
 9 files changed, 76 insertions(+), 127 deletions(-)

New commits:
commit f07e91ac739edf846ae9dda9b2305bae6dde489e
Author: Jens Carl 
AuthorDate: Wed May 1 23:08:14 2019 +
Commit: Jens Carl 
CommitDate: Thu May 2 02:53:26 2019 +0200

tdf#45904 Move XReplaceDescriptor Java tests to C++

Move XReplaceDescriptor Java tests to C++ for ScCellSearchObj.

Change-Id: Ica5042ce8b5eac3663a0fb5f66ae0a2830c89d93
Reviewed-on: https://gerrit.libreoffice.org/71645
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index f64d961474b4..f19edba01394 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -73,7 +73,6 @@ job73=sc.ScAccessiblePreviewTable
 job74=sc.ScAccessibleSpreadsheet
 job78=sc.ScAutoFormatFieldObj
 job81=sc.ScCellFieldObj
-job85=sc.ScCellSearchObj
 job88=sc.ScDatabaseRangeObj
 job98=sc.ScHeaderFieldObj
 job99=sc.ScHeaderFieldsObj
diff --git a/include/test/util/xreplacedescriptor.hxx 
b/include/test/util/xreplacedescriptor.hxx
new file mode 100644
index ..878ee7126f52
--- /dev/null
+++ b/include/test/util/xreplacedescriptor.hxx
@@ -0,0 +1,33 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#pragma once
+
+#include 
+
+#include 
+
+#include 
+
+namespace apitest
+{
+class OOO_DLLPUBLIC_TEST XReplaceDescriptor
+{
+public:
+virtual css::uno::Reference init() = 0;
+
+void testGetSetReplaceString();
+
+protected:
+~XReplaceDescriptor() {}
+};
+
+} // namespace apitest
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 4c12f9aa9994..36a156f0cdcc 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -953,7 +953,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScCellObj \
 qadevOOo/tests/java/mod/_sc/ScCellRangeObj \
 qadevOOo/tests/java/mod/_sc/ScCellRangesObj \
-qadevOOo/tests/java/mod/_sc/ScCellSearchObj \
 qadevOOo/tests/java/mod/_sc/ScCellTextCursor \
 qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj \
 qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj \
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellSearchObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellSearchObj.csv
deleted file mode 100644
index 0ba1e44ec269..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellSearchObj.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScCellSearchObj";"com::sun::star::util::XReplaceDescriptor";"getReplaceString()"
-"ScCellSearchObj";"com::sun::star::util::XReplaceDescriptor";"setReplaceString()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScCellSearchObj.java 
b/qadevOOo/tests/java/mod/_sc/ScCellSearchObj.java
deleted file mode 100644
index 349eed1da44d..
--- a/qadevOOo/tests/java/mod/_sc/ScCellSearchObj.java
+++ /dev/null
@@ -1,122 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import 

[Libreoffice-commits] core.git: framework/qa include/test qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa test/Library_subsequenttest.mk test/source

2019-04-24 Thread Jens Carl (via logerrit)
 framework/qa/complex/api_internal/api.lst|1 
 include/test/table/tablecolumn.hxx   |   41 +++
 qadevOOo/Jar_OOoRunner.mk|2 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnObj.csv |4 
 qadevOOo/tests/java/ifc/table/_TableColumn.java  |   64 
 qadevOOo/tests/java/mod/_sc/ScTableColumnObj.java|  135 
--
 sc/qa/extras/sctablecolumnobj.cxx|6 
 sc/qa/unoapi/sc_7.sce|1 
 test/Library_subsequenttest.mk   |1 
 test/source/table/tablecolumn.cxx|   55 
 10 files changed, 103 insertions(+), 207 deletions(-)

New commits:
commit 7c88700b74346d58084b48656f1c7e28f891cf09
Author: Jens Carl 
AuthorDate: Wed Apr 24 21:04:10 2019 +
Commit: Jens Carl 
CommitDate: Thu Apr 25 01:21:49 2019 +0200

tdf#45904 Move TableColumn Java tests to C++

Move TableColumn Java tests to C++ for ScTableColumnObj.

Change-Id: I3f17fa1f25c2676124b56c384364e36736fac849
Reviewed-on: https://gerrit.libreoffice.org/71261
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 4e4166ee9835..f64d961474b4 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -79,7 +79,6 @@ job98=sc.ScHeaderFieldObj
 job99=sc.ScHeaderFieldsObj
 job126=sc.ScSheetLinkObj
 job132=sc.ScStyleObj
-job134=sc.ScTableColumnObj
 job140=sc.XMLContentExporter
 job141=sc.XMLContentImporter
 job142=sc.XMLImporter
diff --git a/include/test/table/tablecolumn.hxx 
b/include/test/table/tablecolumn.hxx
new file mode 100644
index ..a6ea3a01b4fb
--- /dev/null
+++ b/include/test/table/tablecolumn.hxx
@@ -0,0 +1,41 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#pragma once
+
+#include 
+#include 
+
+#include 
+
+#include 
+
+namespace apitest
+{
+class OOO_DLLPUBLIC_TEST TableColumn
+{
+public:
+virtual css::uno::Reference init() = 0;
+void setSpreadsheet(const css::uno::Reference& 
r_xSheet)
+{
+m_xSheet = r_xSheet;
+}
+
+void testTableColumnProperties();
+
+protected:
+~TableColumn() {}
+
+private:
+css::uno::Reference m_xSheet;
+};
+
+} // namespace apitest
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index d235320fd5d7..4c12f9aa9994 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -582,7 +582,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/ifc/system/_XSimpleMailClientSupplier \
 qadevOOo/tests/java/ifc/system/_XSystemShellExecute \
 qadevOOo/tests/java/ifc/table/_CellProperties \
-qadevOOo/tests/java/ifc/table/_TableColumn \
 qadevOOo/tests/java/ifc/table/_XAutoFormattable \
 qadevOOo/tests/java/ifc/table/_XCellRange \
 qadevOOo/tests/java/ifc/table/_XTableChart \
@@ -967,7 +966,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScShapeObj \
 qadevOOo/tests/java/mod/_sc/ScSheetLinkObj \
 qadevOOo/tests/java/mod/_sc/ScStyleObj \
-qadevOOo/tests/java/mod/_sc/ScTableColumnObj \
 qadevOOo/tests/java/mod/_sc/ScTableSheetObj \
 qadevOOo/tests/java/mod/_sc/ScTableSheetsObj \
 qadevOOo/tests/java/mod/_sc/ScTabViewObj \
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnObj.csv
deleted file mode 100644
index 5a12a914c4c4..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnObj.csv
+++ /dev/null
@@ -1,4 +0,0 @@
-"ScTableColumnObj";"com::sun::star::table::TableColumn";"Width"
-"ScTableColumnObj";"com::sun::star::table::TableColumn";"OptimalWidth"
-"ScTableColumnObj";"com::sun::star::table::TableColumn";"IsVisible"
-"ScTableColumnObj";"com::sun::star::table::TableColumn";"IsStartOfNewPage"
diff --git a/qadevOOo/tests/java/ifc/table/_TableColumn.java 
b/qadevOOo/tests/java/ifc/table/_TableColumn.java
deleted file mode 100644
index b94a29017a22..
--- a/qadevOOo/tests/java/ifc/table/_TableColumn.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at 

[Libreoffice-commits] core.git: framework/qa include/test qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa test/Library_subsequenttest.mk test/source

2019-04-02 Thread Jens Carl (via logerrit)
 framework/qa/complex/api_internal/api.lst |1 
 include/test/table/xcellrange.hxx |   50 
 qadevOOo/Jar_OOoRunner.mk |1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableRowObj.csv |3 
 qadevOOo/tests/java/mod/_sc/ScTableRowObj.java|  124 --
 sc/qa/extras/sctablerowobj.cxx|   12 
 sc/qa/unoapi/sc_7.sce |1 
 test/Library_subsequenttest.mk|1 
 test/source/table/xcellrange.cxx  |   56 
 9 files changed, 118 insertions(+), 131 deletions(-)

New commits:
commit 6a7350f856e50ce3d091bda9f4f00219b5521333
Author: Jens Carl 
AuthorDate: Tue Apr 2 21:42:28 2019 +
Commit: Jens Carl 
CommitDate: Wed Apr 3 03:47:56 2019 +0200

tdf#45904 Move XCellRange Java tests to C++

Move XCellRange Java tests to C++ for ScTableRowObj.

Change-Id: I2735779cae777c5af4e622bc1b538df2d8bf70df
Reviewed-on: https://gerrit.libreoffice.org/70163
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index a159f3a33114..4e4166ee9835 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -80,7 +80,6 @@ job99=sc.ScHeaderFieldsObj
 job126=sc.ScSheetLinkObj
 job132=sc.ScStyleObj
 job134=sc.ScTableColumnObj
-job138=sc.ScTableRowObj
 job140=sc.XMLContentExporter
 job141=sc.XMLContentImporter
 job142=sc.XMLImporter
diff --git a/include/test/table/xcellrange.hxx 
b/include/test/table/xcellrange.hxx
new file mode 100644
index ..eec00c88abd5
--- /dev/null
+++ b/include/test/table/xcellrange.hxx
@@ -0,0 +1,50 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_TEST_TABLE_XCELLRANGE_HXX
+#define INCLUDED_TEST_TABLE_XCELLRANGE_HXX
+
+#include 
+#include 
+
+#include 
+
+#include 
+
+namespace apitest
+{
+class OOO_DLLPUBLIC_TEST XCellRange
+{
+public:
+XCellRange()
+: m_aRangeName("A1:A1")
+{
+}
+XCellRange(const OUString& aRangeName)
+: m_aRangeName(aRangeName)
+{
+}
+
+virtual css::uno::Reference init() = 0;
+
+void testGetCellByPosition();
+void testGetCellRangeByName();
+void testGetCellRangeByPosition();
+
+protected:
+~XCellRange() {}
+
+private:
+OUString const m_aRangeName;
+};
+} // namespace apitest
+
+#endif // INCLUDED_TEST_TABLE_XCELLRANGE_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 3815a067b2e8..c9e63df3ac7f 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -969,7 +969,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScSheetLinkObj \
 qadevOOo/tests/java/mod/_sc/ScStyleObj \
 qadevOOo/tests/java/mod/_sc/ScTableColumnObj \
-qadevOOo/tests/java/mod/_sc/ScTableRowObj \
 qadevOOo/tests/java/mod/_sc/ScTableSheetObj \
 qadevOOo/tests/java/mod/_sc/ScTableSheetsObj \
 qadevOOo/tests/java/mod/_sc/ScTabViewObj \
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableRowObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableRowObj.csv
deleted file mode 100644
index 3b6fe9714ae4..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableRowObj.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-"ScTableRowObj";"com::sun::star::table::XCellRange";"getCellByPosition()"
-"ScTableRowObj";"com::sun::star::table::XCellRange";"getCellRangeByPosition()"
-"ScTableRowObj";"com::sun::star::table::XCellRange";"getCellRangeByName()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScTableRowObj.java 
b/qadevOOo/tests/java/mod/_sc/ScTableRowObj.java
deleted file mode 100644
index 6a1434ed74fe..
--- a/qadevOOo/tests/java/mod/_sc/ScTableRowObj.java
+++ /dev/null
@@ -1,124 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache

[Libreoffice-commits] core.git: framework/qa include/test qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa test/Library_subsequenttest.mk test/source

2019-03-15 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst |1 
 include/test/table/xtablecolumns.hxx  |   59 +++
 qadevOOo/Jar_OOoRunner.mk |1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv |2 
 qadevOOo/tests/java/mod/_sc/ScTableColumnsObj.java|  123 
---
 sc/qa/extras/sctablecolumnsobj.cxx|   33 +
 sc/qa/unoapi/sc_7.sce |1 
 test/Library_subsequenttest.mk|1 
 test/source/table/xtablecolumns.cxx   |  174 
++
 9 files changed, 265 insertions(+), 130 deletions(-)

New commits:
commit 4eff4061814020b319fb3ec5a7ce56fcfa7cf7bf
Author: Jens Carl 
AuthorDate: Thu Mar 14 22:55:04 2019 +
Commit: Jens Carl 
CommitDate: Fri Mar 15 23:54:26 2019 +0100

tdf#45904 Move XTableColumns Java tests to C++

Move XTableColumns Java tests to C++ for ScTableColumnsObj.

Change-Id: Iead7ca3d7c07820086f75d86833b7bfc97978751
Reviewed-on: https://gerrit.libreoffice.org/69286
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 406fbb8bebdc..21a248e9e2ec 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -82,7 +82,6 @@ job99=sc.ScHeaderFieldsObj
 job126=sc.ScSheetLinkObj
 job132=sc.ScStyleObj
 job134=sc.ScTableColumnObj
-job135=sc.ScTableColumnsObj
 job138=sc.ScTableRowObj
 job140=sc.XMLContentExporter
 job141=sc.XMLContentImporter
diff --git a/include/test/table/xtablecolumns.hxx 
b/include/test/table/xtablecolumns.hxx
new file mode 100644
index ..b4cc23faa465
--- /dev/null
+++ b/include/test/table/xtablecolumns.hxx
@@ -0,0 +1,59 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_TEST_TABLE_XTABLECOLUMNS_HXX
+#define INCLUDED_TEST_TABLE_XTABLECOLUMNS_HXX
+
+#include 
+
+#include 
+#include 
+#include 
+
+#include 
+
+#include 
+
+namespace apitest
+{
+class OOO_DLLPUBLIC_TEST XTableColumns
+{
+public:
+virtual css::uno::Reference init() = 0;
+
+void setXSpreadsheet(css::uno::Reference& 
r_xSheet)
+{
+m_xSheet = r_xSheet;
+}
+
+void testInsertByIndex();
+void testInsertByIndexWithNegativeIndex();
+// only use with ScTableColumnsObj
+void testInsertByIndexWithNoColumn();
+void testInsertByIndexWithOutOfBoundIndex();
+void testRemoveByIndex();
+void testRemoveByIndexWithNegativeIndex();
+// only use with ScTableColumnsObj
+void testRemoveByIndexWithNoColumn();
+void testRemoveByIndexWithOutOfBoundIndex();
+
+protected:
+~XTableColumns() {}
+
+private:
+css::uno::Reference m_xSheet;
+
+static const OUString getCellText(const 
css::uno::Reference& r_xCell);
+};
+
+} // namespace apitest
+
+#endif // INCLUDED_TEST_TABLE_XTABLECOLUMNS_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 805ddeca0e38..d839184c72c1 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -973,7 +973,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScStyleObj \
 qadevOOo/tests/java/mod/_sc/ScSubTotalDescriptorBase \
 qadevOOo/tests/java/mod/_sc/ScTableColumnObj \
-qadevOOo/tests/java/mod/_sc/ScTableColumnsObj \
 qadevOOo/tests/java/mod/_sc/ScTableRowObj \
 qadevOOo/tests/java/mod/_sc/ScTableSheetObj \
 qadevOOo/tests/java/mod/_sc/ScTableSheetsObj \
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv
deleted file mode 100644
index 43c4b321bc7d..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScTableColumnsObj";"com::sun::star::table::XTableColumns";"insertByIndex()"
-"ScTableColumnsObj";"com::sun::star::table::XTableColumns";"removeByIndex()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScTableColumnsObj.java 
b/qadevOOo/tests/java/mod/_sc/ScTableColumnsObj.java
deleted file mode 100644
index 97fab4bbbea3..
--- a/qadevOOo/tests/java/mod/_sc/ScTableColumnsObj.java
+++ /dev/null
@@ -1,123 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, 

[Libreoffice-commits] core.git: framework/qa include/test qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa test/source

2019-03-12 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst|1 
 include/test/container/xnamereplace.hxx  |   36 +-
 qadevOOo/Jar_OOoRunner.mk|1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamilyObj.csv |1 
 qadevOOo/tests/java/mod/_sc/ScStyleFamilyObj.java|  171 
--
 sc/qa/extras/scstylefamilyobj.cxx|   10 
 sc/qa/unoapi/sc_6.sce|1 
 test/source/container/xnamereplace.cxx   |   28 +
 8 files changed, 50 insertions(+), 199 deletions(-)

New commits:
commit 4ad3b5cdf416a8541a7188f67c7ab7fc0a93b94e
Author: Jens Carl 
AuthorDate: Tue Mar 12 22:55:34 2019 +
Commit: Jens Carl 
CommitDate: Wed Mar 13 06:38:53 2019 +0100

tdf#45904 Move XNameReplace Java tests to C++

Move XNameReplace Java tests to C++ for ScStyleFamilyObj.
Fixes i#23594 by creating a new "com.sun.star.style.CellStyle"
rather then using an existing one.

Change-Id: Ie42e627020aff475173af5bc014bc28d7a11ec56
Reviewed-on: https://gerrit.libreoffice.org/69140
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 2340ff4fc6bb..406fbb8bebdc 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -80,7 +80,6 @@ job88=sc.ScDatabaseRangeObj
 job98=sc.ScHeaderFieldObj
 job99=sc.ScHeaderFieldsObj
 job126=sc.ScSheetLinkObj
-job131=sc.ScStyleFamilyObj
 job132=sc.ScStyleObj
 job134=sc.ScTableColumnObj
 job135=sc.ScTableColumnsObj
diff --git a/include/test/container/xnamereplace.hxx 
b/include/test/container/xnamereplace.hxx
index 2d52fc2037eb..e10d198794ff 100644
--- a/include/test/container/xnamereplace.hxx
+++ b/include/test/container/xnamereplace.hxx
@@ -1,4 +1,4 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
 /*
  * This file is part of the LibreOffice project.
  *
@@ -11,32 +11,42 @@
 #define INCLUDED_TEST_CONTAINER_XNAMEREPLACE_HXX
 
 #include 
-#include 
 #include 
-#include 
 
-namespace apitest {
+#include 
+
+#include 
+#include 
 
+namespace apitest
+{
 class OOO_DLLPUBLIC_TEST XNameReplace
 {
 public:
-XNameReplace(const OUString& rName): maTestReplacementName(rName) {}
-
-virtual css::uno::Reference< css::uno::XInterface > init() = 0;
+XNameReplace(const OUString& rName)
+: m_aReplacementName(rName)
+{
+}
 
+virtual css::uno::Reference init() = 0;
 void testReplaceByName();
 
-virtual css::uno::Any getAnyElementForNameReplace() = 0;
+void setReplacmentElement(const css::uno::Any& rElement)
+{
+m_aReplacementElement = rElement;
+}
 
-virtual ~XNameReplace() {}
 
-private:
-OUString const maTestReplacementName;
+protected:
+~XNameReplace() {}
 
+private:
+OUString const m_aReplacementName;
+css::uno::Any m_aReplacementElement;
 };
 
-}
+} // namespace apitest
 
 #endif // INCLUDED_TEST_CONTAINER_XNAMEREPLACE_HXX
 
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 9e5265f3e632..805ddeca0e38 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -970,7 +970,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScModelObj \
 qadevOOo/tests/java/mod/_sc/ScShapeObj \
 qadevOOo/tests/java/mod/_sc/ScSheetLinkObj \
-qadevOOo/tests/java/mod/_sc/ScStyleFamilyObj \
 qadevOOo/tests/java/mod/_sc/ScStyleObj \
 qadevOOo/tests/java/mod/_sc/ScSubTotalDescriptorBase \
 qadevOOo/tests/java/mod/_sc/ScTableColumnObj \
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamilyObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamilyObj.csv
deleted file mode 100644
index 10e3d65acd85..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamilyObj.csv
+++ /dev/null
@@ -1 +0,0 @@
-"ScStyleFamilyObj";"com::sun::star::container::XNameReplace#optional";"replaceByName()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScStyleFamilyObj.java 
b/qadevOOo/tests/java/mod/_sc/ScStyleFamilyObj.java
deleted file mode 100644
index ea8b06aabc3a..
--- a/qadevOOo/tests/java/mod/_sc/ScStyleFamilyObj.java
+++ /dev/null
@@ -1,171 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa

2019-03-05 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst   |1 
 qadevOOo/Jar_OOoRunner.mk   |1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldObj.csv |7 
 qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj.java|  314 
--
 sc/qa/extras/scdatapilotfieldobj.cxx|   13 
 sc/qa/unoapi/sc_1.sce   |1 
 6 files changed, 12 insertions(+), 325 deletions(-)

New commits:
commit da474e2985e8672c63e9282576bac6750ae6648c
Author: Jens Carl 
AuthorDate: Tue Mar 5 21:44:25 2019 +
Commit: Jens Carl 
CommitDate: Wed Mar 6 03:04:51 2019 +0100

tdf#45904 Move XPropertySet Java tests to C++

Move XPropertySet Java tests to C++ for ScDataPilotFieldObj.

Change-Id: I9fa5d153cced1aae8892d2422025dfcdcda73c69
Reviewed-on: https://gerrit.libreoffice.org/68782
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index d31c465d5559..2340ff4fc6bb 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -77,7 +77,6 @@ job80=sc.ScAutoFormatsObj
 job81=sc.ScCellFieldObj
 job85=sc.ScCellSearchObj
 job88=sc.ScDatabaseRangeObj
-job90=sc.ScDataPilotFieldObj
 job98=sc.ScHeaderFieldObj
 job99=sc.ScHeaderFieldsObj
 job126=sc.ScSheetLinkObj
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 9a2f09514ed5..2e025ea03057 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -964,7 +964,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScChartsObj \
 qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj \
 qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupObj \
-qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj \
 qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj \
 qadevOOo/tests/java/mod/_sc/ScDocumentConfiguration \
 qadevOOo/tests/java/mod/_sc/ScDrawPageObj \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldObj.csv
deleted file mode 100644
index 17d800db4639..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldObj.csv
+++ /dev/null
@@ -1,7 +0,0 @@
-"ScDataPilotFieldObj";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()"
-"ScDataPilotFieldObj";"com::sun::star::beans::XPropertySet";"setPropertyValue()"
-"ScDataPilotFieldObj";"com::sun::star::beans::XPropertySet";"getPropertyValue()"
-"ScDataPilotFieldObj";"com::sun::star::beans::XPropertySet";"addPropertyChangeListener()"
-"ScDataPilotFieldObj";"com::sun::star::beans::XPropertySet";"removePropertyChangeListener()"
-"ScDataPilotFieldObj";"com::sun::star::beans::XPropertySet";"addVetoableChangeListener()"
-"ScDataPilotFieldObj";"com::sun::star::beans::XPropertySet";"removeVetoableChangeListener()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj.java 
b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj.java
deleted file mode 100644
index 043e8798ac69..
--- a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj.java
+++ /dev/null
@@ -1,314 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-package mod._sc;
-
-import com.sun.star.beans.XPropertySet;
-import com.sun.star.container.XIndexAccess;
-import com.sun.star.container.XNamed;
-import com.sun.star.lang.XComponent;
-import com.sun.star.sheet.DataPilotFieldOrientation;
-import com.sun.star.sheet.XDataPilotDescriptor;
-import com.sun.star.sheet.XDataPilotTables;
-import com.sun.star.sheet.XDataPilotTablesSupplier;
-import com.sun.star.sheet.XSpreadsheet;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.sheet.XSpreadsheets;
-import com.sun.star.table.CellAddress;
-import com.sun.star.table.CellRangeAddress;
-import com.sun.star.uno.AnyConverter;
-import com.sun.star.uno.Type;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-

[Libreoffice-commits] core.git: framework/qa include/test qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa test/Library_subsequenttest.mk test/source

2019-03-03 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst   |1 
 include/test/text/xtextrange.hxx|   38 ++
 qadevOOo/Jar_OOoRunner.mk   |1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationObj.csv |5 
 qadevOOo/tests/java/mod/_sc/ScAnnotationObj.java|  138 
--
 sc/qa/extras/scannotationobj.cxx|   10 
 sc/qa/unoapi/sc_2.sce   |1 
 test/Library_subsequenttest.mk  |1 
 test/source/text/xtextrange.cxx |   62 
 9 files changed, 110 insertions(+), 147 deletions(-)

New commits:
commit 167c5f9affd16ae5ece851de9e53f197d3036d93
Author: Jens Carl 
AuthorDate: Sun Mar 3 04:37:07 2019 +
Commit: Jens Carl 
CommitDate: Sun Mar 3 19:46:33 2019 +0100

tdf#45904 Move XTextRange Java tests to C++

Move XTextRange Java tests to C++ for ScAnnotationObj
(also fixes i109517).

Change-Id: Id7e45d9f1159b45fb267cb28dc875b62eae12e24
Reviewed-on: https://gerrit.libreoffice.org/68634
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 18192bd23b86..d31c465d5559 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -71,7 +71,6 @@ job71=sc.ScAccessibleCell
 job72=sc.ScAccessiblePageHeader
 job73=sc.ScAccessiblePreviewTable
 job74=sc.ScAccessibleSpreadsheet
-job75=sc.ScAnnotationObj
 job78=sc.ScAutoFormatFieldObj
 job79=sc.ScAutoFormatObj
 job80=sc.ScAutoFormatsObj
diff --git a/include/test/text/xtextrange.hxx b/include/test/text/xtextrange.hxx
new file mode 100644
index ..a986e7faedb9
--- /dev/null
+++ b/include/test/text/xtextrange.hxx
@@ -0,0 +1,38 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_TEST_TEXT_XTEXTRANGE_HXX
+#define INCLUDED_TEST_TEXT_XTEXTRANGE_HXX
+
+#include 
+#include 
+
+#include 
+
+namespace apitest
+{
+class OOO_DLLPUBLIC_TEST XTextRange
+{
+public:
+virtual css::uno::Reference init() = 0;
+
+void testGetEnd();
+void testGetSetString();
+void testGetStart();
+void testGetText();
+
+protected:
+~XTextRange() {}
+};
+
+} // namespace apitest
+
+#endif // INCLUDED_TEST_TEXT_XTEXTRANGE_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index d74a31d909db..9a2f09514ed5 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -948,7 +948,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell \
 qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewTable \
 qadevOOo/tests/java/mod/_sc/ScAccessibleSpreadsheet \
-qadevOOo/tests/java/mod/_sc/ScAnnotationObj \
 qadevOOo/tests/java/mod/_sc/ScAnnotationShapeObj \
 qadevOOo/tests/java/mod/_sc/ScAnnotationTextCursor \
 qadevOOo/tests/java/mod/_sc/ScAreaLinkObj \
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationObj.csv
deleted file mode 100644
index 324d74dc0ac1..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationObj.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-"ScAnnotationObj";"com::sun::star::text::XTextRange";"getText()"
-"ScAnnotationObj";"com::sun::star::text::XTextRange";"getStart()"
-"ScAnnotationObj";"com::sun::star::text::XTextRange";"getEnd()"
-"ScAnnotationObj";"com::sun::star::text::XTextRange";"getString()"
-"ScAnnotationObj";"com::sun::star::text::XTextRange";"setString()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScAnnotationObj.java 
b/qadevOOo/tests/java/mod/_sc/ScAnnotationObj.java
deleted file mode 100644
index 26306312d075..
--- a/qadevOOo/tests/java/mod/_sc/ScAnnotationObj.java
+++ /dev/null
@@ -1,138 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the 

[Libreoffice-commits] core.git: framework/qa

2019-02-27 Thread Libreoffice Gerrit user
 framework/qa/cppunit/dispatchtest.cxx |   10 ++
 1 file changed, 2 insertions(+), 8 deletions(-)

New commits:
commit 47ce4b87d8a13fc340794ffd9a10d5bd6a15e644
Author: Miklos Vajna 
AuthorDate: Wed Feb 27 13:47:33 2019 +0100
Commit: Miklos Vajna 
CommitDate: Wed Feb 27 16:33:43 2019 +0100

CppunitTest_framework_dispatch: use CPPUNIT_TEST_FIXTURE()

Change-Id: I2de32f700125fc8306c16fe4963ef76f87b0034c
Reviewed-on: https://gerrit.libreoffice.org/68435
Reviewed-by: Miklos Vajna 
Tested-by: Jenkins

diff --git a/framework/qa/cppunit/dispatchtest.cxx 
b/framework/qa/cppunit/dispatchtest.cxx
index b4b7851a3c56..66a0123f6e5c 100644
--- a/framework/qa/cppunit/dispatchtest.cxx
+++ b/framework/qa/cppunit/dispatchtest.cxx
@@ -130,6 +130,7 @@ uno::Reference 
MyInterceptor::queryDispatch(const util::URL& r
 /// Tests how InterceptionHelper invokes a registered interceptor.
 class DispatchTest : public test::BootstrapFixture, public unotest::MacrosTest
 {
+protected:
 uno::Reference mxComponentContext;
 uno::Reference mxComponent;
 void dispatchCommand(const uno::Reference& xComponent, 
const OUString& rCommand, const uno::Sequence& 
rPropertyValues);
@@ -137,11 +138,6 @@ class DispatchTest : public test::BootstrapFixture, public 
unotest::MacrosTest
 public:
 virtual void setUp() override;
 virtual void tearDown() override;
-void testInterception();
-
-CPPUNIT_TEST_SUITE(DispatchTest);
-CPPUNIT_TEST(testInterception);
-CPPUNIT_TEST_SUITE_END();
 };
 
 void DispatchTest::setUp()
@@ -174,7 +170,7 @@ void DispatchTest::dispatchCommand(const 
uno::Reference& xComp
 xDispatchHelper->executeDispatch(xFrame, rCommand, OUString(), 0, 
rPropertyValues);
 }
 
-void DispatchTest::testInterception()
+CPPUNIT_TEST_FIXTURE(DispatchTest, testInterception)
 {
 mxComponent = loadFromDesktop("private:factory/swriter", 
"com.sun.star.text.TextDocument");
 CPPUNIT_ASSERT(mxComponent.is());
@@ -196,8 +192,6 @@ void DispatchTest::testInterception()
 CPPUNIT_ASSERT_EQUAL(0, pInterceptor->getUnexpected());
 }
 
-CPPUNIT_TEST_SUITE_REGISTRATION(DispatchTest);
-
 }
 
 CPPUNIT_PLUGIN_IMPLEMENT();
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa

2019-02-01 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst|1 
 qadevOOo/Jar_OOoRunner.mk|1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv |1 
 qadevOOo/tests/java/mod/_sc/ScDataPilotFieldsObj.java|  149 
--
 sc/qa/extras/scdatapilotfieldsobj.cxx|5 
 sc/qa/unoapi/sc_1.sce|1 
 6 files changed, 5 insertions(+), 153 deletions(-)

New commits:
commit 8e99c1fafb4c5b131ee5dc61102ad799d9f36a72
Author: Jens Carl 
AuthorDate: Sat Feb 2 00:08:28 2019 +
Commit: Jens Carl 
CommitDate: Sat Feb 2 02:40:16 2019 +0100

tdf#45904 Move XEnumerationAccess Java test to C++

Move XEnumerationAccess Java test to C++ for ScDataPilotFieldsObj.

Change-Id: I4b8bf204ccf4229ee5c57c03caef9fa5459e28a8
Reviewed-on: https://gerrit.libreoffice.org/67269
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 64cfe9d6c7f7..18192bd23b86 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -79,7 +79,6 @@ job81=sc.ScCellFieldObj
 job85=sc.ScCellSearchObj
 job88=sc.ScDatabaseRangeObj
 job90=sc.ScDataPilotFieldObj
-job91=sc.ScDataPilotFieldsObj
 job98=sc.ScHeaderFieldObj
 job99=sc.ScHeaderFieldsObj
 job126=sc.ScSheetLinkObj
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 61623c302bb1..91f2b3503eec 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -968,7 +968,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupObj \
 qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupsObj \
 qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj \
-qadevOOo/tests/java/mod/_sc/ScDataPilotFieldsObj \
 qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj \
 qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj \
 qadevOOo/tests/java/mod/_sc/ScDocumentConfiguration \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv
deleted file mode 100644
index 7d42ccda9aa6..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv
+++ /dev/null
@@ -1 +0,0 @@
-"ScDataPilotFieldsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldsObj.java 
b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldsObj.java
deleted file mode 100644
index 1b3d2748f047..
--- a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldsObj.java
+++ /dev/null
@@ -1,149 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.container.XIndexAccess;
-import com.sun.star.lang.XComponent;
-import com.sun.star.sheet.XDataPilotDescriptor;
-import com.sun.star.sheet.XDataPilotTables;
-import com.sun.star.sheet.XDataPilotTablesSupplier;
-import com.sun.star.sheet.XSpreadsheet;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.sheet.XSpreadsheets;
-import com.sun.star.table.CellAddress;
-import com.sun.star.table.CellRangeAddress;
-import com.sun.star.uno.AnyConverter;
-import com.sun.star.uno.Type;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-/**
-* Test for object which is represented by service
-* com.sun.star.sheet.DataPilotFields. 
-* Object implements the following interfaces :
-* 
-*   com::sun::star::container::XNameAccess
-*   com::sun::star::container::XElementAccess
-* 
-* @see com.sun.star.sheet.DataPilotFields
-* @see com.sun.star.container.XNameAccess
-* @see com.sun.star.container.XElementAccess
-* @see ifc.container._XNameAccess
-* @see ifc.container._XElementAccess
-*/
-public class ScDataPilotFieldsObj extends TestCase {
-private XSpreadsheetDocument xSheetDoc = null;
-
-/**
-* Creates 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa

2019-01-29 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst|
1 
 qadevOOo/Jar_OOoRunner.mk|
1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSpreadsheetSettingsObj.csv |
7 
 qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettingsObj.java|   
94 --
 sc/qa/extras/scspreadsheetsettingsobj.cxx|   
29 ++-
 sc/qa/unoapi/sc_6.sce|
1 
 6 files changed, 27 insertions(+), 106 deletions(-)

New commits:
commit b89dbc08b735384cdc9e469b044842fb729ced0b
Author: Jens Carl 
AuthorDate: Wed Jan 30 05:58:49 2019 +
Commit: Jens Carl 
CommitDate: Wed Jan 30 08:20:51 2019 +0100

tdf#45904 Move XPropertySet Java tests to C++

Move XPropertySet Java tests to C++ for ScSpreadsheetSettingsObj.

Change-Id: I59da149983ee3b897c1cdeaf5f40962b917c91ba
Reviewed-on: https://gerrit.libreoffice.org/67101
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 751bb7ccd89c..64cfe9d6c7f7 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -83,7 +83,6 @@ job91=sc.ScDataPilotFieldsObj
 job98=sc.ScHeaderFieldObj
 job99=sc.ScHeaderFieldsObj
 job126=sc.ScSheetLinkObj
-job129=sc.ScSpreadsheetSettingsObj
 job131=sc.ScStyleFamilyObj
 job132=sc.ScStyleObj
 job134=sc.ScTableColumnObj
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index a80f13887733..61623c302bb1 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -980,7 +980,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScModelObj \
 qadevOOo/tests/java/mod/_sc/ScShapeObj \
 qadevOOo/tests/java/mod/_sc/ScSheetLinkObj \
-qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettingsObj \
 qadevOOo/tests/java/mod/_sc/ScStyleFamilyObj \
 qadevOOo/tests/java/mod/_sc/ScStyleObj \
 qadevOOo/tests/java/mod/_sc/ScSubTotalDescriptorBase \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSpreadsheetSettingsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSpreadsheetSettingsObj.csv
deleted file mode 100644
index 7a473c2de4b9..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSpreadsheetSettingsObj.csv
+++ /dev/null
@@ -1,7 +0,0 @@
-"ScSpreadsheetSettingsObj";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()"
-"ScSpreadsheetSettingsObj";"com::sun::star::beans::XPropertySet";"setPropertyValue()"
-"ScSpreadsheetSettingsObj";"com::sun::star::beans::XPropertySet";"getPropertyValue()"
-"ScSpreadsheetSettingsObj";"com::sun::star::beans::XPropertySet";"addPropertyChangeListener()"
-"ScSpreadsheetSettingsObj";"com::sun::star::beans::XPropertySet";"removePropertyChangeListener()"
-"ScSpreadsheetSettingsObj";"com::sun::star::beans::XPropertySet";"addVetoableChangeListener()"
-"ScSpreadsheetSettingsObj";"com::sun::star::beans::XPropertySet";"removeVetoableChangeListener()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettingsObj.java 
b/qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettingsObj.java
deleted file mode 100644
index 84b6eeb895ad..
--- a/qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettingsObj.java
+++ /dev/null
@@ -1,94 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.StatusException;
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.lang.XComponent;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-/**
-* Test for object which is represented by service
-* com.sun.star.sheet.SpreadsheetDocumentSettings. 
-* Object implements the following interfaces :
-* 
-*   com::sun::star::sheet::SpreadsheetDocumentSettings
-*   com::sun::star::beans::XPropertySet
-* 
-* @see com.sun.star.sheet.SpreadsheetDocumentSettings
-* @see com.sun.star.beans.XPropertySet
-* @see ifc.sheet._SpreadsheetDocumentSettings
-* @see 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa

2019-01-28 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst  |1 
 qadevOOo/Jar_OOoRunner.mk  |1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScFilterDescriptorBase.csv |7 
 qadevOOo/tests/java/mod/_sc/ScFilterDescriptorBase.java|  123 
--
 sc/qa/extras/scfilterdescriptorbase.cxx|   10 
 sc/qa/unoapi/sc_4.sce  |1 
 6 files changed, 10 insertions(+), 133 deletions(-)

New commits:
commit a71de08d75e15fd37408901d47a7aa3918f8087a
Author: Jens Carl 
AuthorDate: Tue Jan 29 01:17:54 2019 +
Commit: Jens Carl 
CommitDate: Tue Jan 29 07:08:44 2019 +0100

tdf#45904 Move XPropertySet Java tests to C++

Move XPropertySet Java tests to C++ for ScFilterDescriptorBase.

Change-Id: I86a16f3c53a5aacea0ce88a54ec8b340d13dff4f
Reviewed-on: https://gerrit.libreoffice.org/67038
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 434ae00edc0d..751bb7ccd89c 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -80,7 +80,6 @@ job85=sc.ScCellSearchObj
 job88=sc.ScDatabaseRangeObj
 job90=sc.ScDataPilotFieldObj
 job91=sc.ScDataPilotFieldsObj
-job96=sc.ScFilterDescriptorBase
 job98=sc.ScHeaderFieldObj
 job99=sc.ScHeaderFieldsObj
 job126=sc.ScSheetLinkObj
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 4e140f06b987..a80f13887733 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -973,7 +973,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj \
 qadevOOo/tests/java/mod/_sc/ScDocumentConfiguration \
 qadevOOo/tests/java/mod/_sc/ScDrawPageObj \
-qadevOOo/tests/java/mod/_sc/ScFilterDescriptorBase \
 qadevOOo/tests/java/mod/_sc/ScHeaderFieldObj \
 qadevOOo/tests/java/mod/_sc/ScHeaderFieldsObj \
 qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextCursor \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScFilterDescriptorBase.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScFilterDescriptorBase.csv
deleted file mode 100644
index ed43efa9a2b5..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScFilterDescriptorBase.csv
+++ /dev/null
@@ -1,7 +0,0 @@
-"ScFilterDescriptorBase";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()"
-"ScFilterDescriptorBase";"com::sun::star::beans::XPropertySet";"setPropertyValue()"
-"ScFilterDescriptorBase";"com::sun::star::beans::XPropertySet";"getPropertyValue()"
-"ScFilterDescriptorBase";"com::sun::star::beans::XPropertySet";"addPropertyChangeListener()"
-"ScFilterDescriptorBase";"com::sun::star::beans::XPropertySet";"removePropertyChangeListener()"
-"ScFilterDescriptorBase";"com::sun::star::beans::XPropertySet";"addVetoableChangeListener()"
-"ScFilterDescriptorBase";"com::sun::star::beans::XPropertySet";"removeVetoableChangeListener()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScFilterDescriptorBase.java 
b/qadevOOo/tests/java/mod/_sc/ScFilterDescriptorBase.java
deleted file mode 100644
index 993254bfabe0..
--- a/qadevOOo/tests/java/mod/_sc/ScFilterDescriptorBase.java
+++ /dev/null
@@ -1,123 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.container.XIndexAccess;
-import com.sun.star.lang.XComponent;
-import com.sun.star.sheet.XSheetFilterable;
-import com.sun.star.sheet.XSpreadsheet;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.sheet.XSpreadsheets;
-import com.sun.star.uno.AnyConverter;
-import com.sun.star.uno.Type;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-/**
-* Test for object which is represented by service
-* com.sun.star.sheet.SheetFilterDescriptor. 
-* Object implements the following interfaces :
-* 
-*   com::sun::star::sheet::XSheetFilterDescriptor
-*   

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa test/source

2019-01-25 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst |1 
 qadevOOo/Jar_OOoRunner.mk |1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSpreadsheetSettings.csv |7 -
 qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettings.java|   69 
--
 sc/qa/extras/scspreadsheetsettings.cxx|   15 +-
 sc/qa/unoapi/sc_6.sce |1 
 test/source/beans/xpropertyset.cxx|   20 +-
 7 files changed, 23 insertions(+), 91 deletions(-)

New commits:
commit 7422d394812958a2014615b996df0378cc7d495f
Author: Jens Carl 
AuthorDate: Fri Jan 25 17:41:27 2019 +
Commit: Jens Carl 
CommitDate: Fri Jan 25 21:52:05 2019 +0100

tdf#45904 Move XPropertySet Java tests to C++

Move XPropertySet Java tests to C++ for ScSpreadsheetSettings.

Change-Id: Id969a566fcb4e544c26a4097e0f49a01bc967ad7
Reviewed-on: https://gerrit.libreoffice.org/66926
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 609e7d5c323d..434ae00edc0d 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -84,7 +84,6 @@ job96=sc.ScFilterDescriptorBase
 job98=sc.ScHeaderFieldObj
 job99=sc.ScHeaderFieldsObj
 job126=sc.ScSheetLinkObj
-job128=sc.ScSpreadsheetSettings
 job129=sc.ScSpreadsheetSettingsObj
 job131=sc.ScStyleFamilyObj
 job132=sc.ScStyleObj
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 71887651aa48..3f9f58ac43d9 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -982,7 +982,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScNamedRangesObj \
 qadevOOo/tests/java/mod/_sc/ScShapeObj \
 qadevOOo/tests/java/mod/_sc/ScSheetLinkObj \
-qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettings \
 qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettingsObj \
 qadevOOo/tests/java/mod/_sc/ScStyleFamilyObj \
 qadevOOo/tests/java/mod/_sc/ScStyleObj \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSpreadsheetSettings.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSpreadsheetSettings.csv
deleted file mode 100644
index 63db656f8011..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSpreadsheetSettings.csv
+++ /dev/null
@@ -1,7 +0,0 @@
-"ScSpreadsheetSettings";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()"
-"ScSpreadsheetSettings";"com::sun::star::beans::XPropertySet";"setPropertyValue()"
-"ScSpreadsheetSettings";"com::sun::star::beans::XPropertySet";"getPropertyValue()"
-"ScSpreadsheetSettings";"com::sun::star::beans::XPropertySet";"addPropertyChangeListener()"
-"ScSpreadsheetSettings";"com::sun::star::beans::XPropertySet";"removePropertyChangeListener()"
-"ScSpreadsheetSettings";"com::sun::star::beans::XPropertySet";"addVetoableChangeListener()"
-"ScSpreadsheetSettings";"com::sun::star::beans::XPropertySet";"removeVetoableChangeListener()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettings.java 
b/qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettings.java
deleted file mode 100644
index f98ad9f7f91b..
--- a/qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettings.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-
-import com.sun.star.uno.XInterface;
-
-/**
-* Test for object which is represented by service
-* com.sun.star.sheet.GlobalSheetSettings. 
-* Object implements the following interfaces :
-* 
-*   com::sun::star::sheet::GlobalSheetSettings
-*   com::sun::star::beans::XPropertySet
-* 
-* @see com.sun.star.sheet.GlobalSheetSettings
-* @see com.sun.star.beans.XPropertySet
-* @see ifc.sheet._GlobalSheetSettings
-* @see ifc.beans._XPropertySet
-*/
-public class ScSpreadsheetSettings extends TestCase {
-
-/**
-* Creating a TestEnvironment for the interfaces to be tested.
-* Creates an instance 

[Libreoffice-commits] core.git: framework/qa include/test qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa solenv/clang-format test/source

2019-01-24 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst|1 
 include/test/beans/xpropertyset.hxx  |   25 +
 qadevOOo/Jar_OOoRunner.mk|1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableValidationObj.csv |7 
 qadevOOo/tests/java/mod/_sc/ScTableValidationObj.java|  118 
-
 sc/qa/extras/sctablevalidationobj.cxx|   14 -
 sc/qa/unoapi/sc_7.sce|1 
 solenv/clang-format/blacklist|2 
 test/source/beans/xpropertyset.cxx   |  128 
--
 9 files changed, 145 insertions(+), 152 deletions(-)

New commits:
commit dd0155967e0b679b7df3907fcb12e8cbd82cdefb
Author: Jens Carl 
AuthorDate: Fri Jan 25 00:41:35 2019 +
Commit: Jens Carl 
CommitDate: Fri Jan 25 04:17:29 2019 +0100

tdf#45904 Move XPropertySet Java tests to C++

Move XPropertySet Java tests to C++ for ScTableValidationObj.

Change-Id: If058f40ff73203d2705bf9841d0496d52ff93ed8
Reviewed-on: https://gerrit.libreoffice.org/66890
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 28c133dcdf10..609e7d5c323d 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -91,7 +91,6 @@ job132=sc.ScStyleObj
 job134=sc.ScTableColumnObj
 job135=sc.ScTableColumnsObj
 job138=sc.ScTableRowObj
-job139=sc.ScTableValidationObj
 job140=sc.XMLContentExporter
 job141=sc.XMLContentImporter
 job142=sc.XMLImporter
diff --git a/include/test/beans/xpropertyset.hxx 
b/include/test/beans/xpropertyset.hxx
index 3b110a53db3c..72827aa6ee76 100644
--- a/include/test/beans/xpropertyset.hxx
+++ b/include/test/beans/xpropertyset.hxx
@@ -10,36 +10,46 @@
 #ifndef INCLUDED_TEST_BEANS_XPROPERTYSET_HXX
 #define INCLUDED_TEST_BEANS_XPROPERTYSET_HXX
 
-#include 
 #include 
 #include 
 
+#include 
+
 #include 
 
+#include 
 #include 
 
-namespace apitest {
-
+namespace apitest
+{
 class OOO_DLLPUBLIC_TEST XPropertySet
 {
 public:
-virtual ~XPropertySet();
+XPropertySet() {}
 
+XPropertySet(const std::set rIgnoreValue)
+: m_IgnoreValue(rIgnoreValue)
+{
+}
 virtual css::uno::Reference init() = 0;
 
 void testGetPropertySetInfo();
 void testSetPropertyValue();
 void testGetPropertyValue();
+void testPropertyChangeListner();
+void testVetoableChangeListner();
 
 protected:
+~XPropertySet(){};
 bool isPropertyValueChangeable(const OUString& rName);
 
 virtual bool isPropertyIgnored(const OUString& rName);
 
 private:
 void fillPropsToTest(const 
css::uno::Reference& xPropInfo);
-static bool getSinglePropertyValue(
-const css::uno::Reference& xPropSet, const 
OUString& rName);
+static bool
+getSinglePropertyValue(const 
css::uno::Reference& xPropSet,
+   const OUString& rName);
 
 struct OOO_DLLPUBLIC_TEST PropsToTest
 {
@@ -54,9 +64,10 @@ private:
 };
 
 PropsToTest maPropsToTest;
+std::set m_IgnoreValue;
 };
 
-}
+} // namespace apitest
 
 #endif
 
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 8a8374069326..71887651aa48 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -992,7 +992,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScTableRowObj \
 qadevOOo/tests/java/mod/_sc/ScTableSheetObj \
 qadevOOo/tests/java/mod/_sc/ScTableSheetsObj \
-qadevOOo/tests/java/mod/_sc/ScTableValidationObj \
 qadevOOo/tests/java/mod/_sc/ScTabViewObj \
 qadevOOo/tests/java/mod/_sc/ScViewPaneObj \
 qadevOOo/tests/java/mod/_sc/XMLContentExporter \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableValidationObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableValidationObj.csv
deleted file mode 100644
index 743fb8ef8851..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableValidationObj.csv
+++ /dev/null
@@ -1,7 +0,0 @@
-"ScTableValidationObj";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()"
-"ScTableValidationObj";"com::sun::star::beans::XPropertySet";"setPropertyValue()"
-"ScTableValidationObj";"com::sun::star::beans::XPropertySet";"getPropertyValue()"
-"ScTableValidationObj";"com::sun::star::beans::XPropertySet";"addPropertyChangeListener()"
-"ScTableValidationObj";"com::sun::star::beans::XPropertySet";"removePropertyChangeListener()"
-"ScTableValidationObj";"com::sun::star::beans::XPropertySet";"addVetoableChangeListener()"
-"ScTableValidationObj";"com::sun::star::beans::XPropertySet";"removeVetoableChangeListener()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScTableValidationObj.java 
b/qadevOOo/tests/java/mod/_sc/ScTableValidationObj.java
deleted file mode 100644

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa

2019-01-24 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst   |1 
 qadevOOo/Jar_OOoRunner.mk   |1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv |3 
 qadevOOo/tests/java/mod/_sc/ScSheetLinksObj.java|  128 
--
 sc/qa/extras/scsheetlinksobj.cxx|   10 
 sc/qa/unoapi/sc_6.sce   |1 
 6 files changed, 9 insertions(+), 135 deletions(-)

New commits:
commit 9b891b0062e550430025b440a31211cdec74f3a8
Author: Jens Carl 
AuthorDate: Wed Jan 23 19:20:04 2019 +
Commit: Jens Carl 
CommitDate: Thu Jan 24 18:40:09 2019 +0100

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScSheetLinksObj.

Change-Id: Ibe4571cf75abf96edc4361d884c63be0a972cab2
Reviewed-on: https://gerrit.libreoffice.org/66819
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 38794d90181e..28c133dcdf10 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -84,7 +84,6 @@ job96=sc.ScFilterDescriptorBase
 job98=sc.ScHeaderFieldObj
 job99=sc.ScHeaderFieldsObj
 job126=sc.ScSheetLinkObj
-job127=sc.ScSheetLinksObj
 job128=sc.ScSpreadsheetSettings
 job129=sc.ScSpreadsheetSettingsObj
 job131=sc.ScStyleFamilyObj
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 1a156fca7c19..2828744ee90e 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -983,7 +983,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScNamedRangesObj \
 qadevOOo/tests/java/mod/_sc/ScShapeObj \
 qadevOOo/tests/java/mod/_sc/ScSheetLinkObj \
-qadevOOo/tests/java/mod/_sc/ScSheetLinksObj \
 qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettings \
 qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettingsObj \
 qadevOOo/tests/java/mod/_sc/ScStyleFamilyObj \
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv
deleted file mode 100644
index 9903e39826f0..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-"ScSheetLinksObj";"com::sun::star::container::XNameAccess";"getByName()"
-"ScSheetLinksObj";"com::sun::star::container::XNameAccess";"getElementNames()"
-"ScSheetLinksObj";"com::sun::star::container::XNameAccess";"hasByName()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScSheetLinksObj.java 
b/qadevOOo/tests/java/mod/_sc/ScSheetLinksObj.java
deleted file mode 100644
index 3a996abc81b7..
--- a/qadevOOo/tests/java/mod/_sc/ScSheetLinksObj.java
+++ /dev/null
@@ -1,128 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.beans.XPropertySet;
-import com.sun.star.container.XIndexAccess;
-import com.sun.star.lang.XComponent;
-import com.sun.star.sheet.XSheetLinkable;
-import com.sun.star.sheet.XSpreadsheet;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.sheet.XSpreadsheets;
-import com.sun.star.uno.AnyConverter;
-import com.sun.star.uno.Type;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-/**
-* Test for object which is represented by service
-* com.sun.star.sheet.SheetLinks. 
-* Object implements the following interfaces :
-* 
-*   com::sun::star::container::XNameAccess
-*   com::sun::star::container::XElementAccess
-* 
-* @see com.sun.star.sheet.SheetLinks
-* @see com.sun.star.container.XNameAccess
-* @see com.sun.star.container.XElementAccess
-* @see ifc.container._XNameAccess
-* @see ifc.container._XElementAccess
-*/
-public class ScSheetLinksObj extends TestCase {
-private XSpreadsheetDocument xSheetDoc = null;
-
-/**
-* Creates Spreadsheet document.
-*/
-@Override
-protected void initialize( TestParameters tParam, PrintWriter log 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa

2019-01-22 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst |1 
 qadevOOo/Jar_OOoRunner.mk |2 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPagesObj.csv|1 
 qadevOOo/objdsc/sd/com.sun.star.comp.office.SdDrawPagesAccess.csv |1 
 qadevOOo/tests/java/ifc/drawing/_XDrawPageSummarizer.java |   65 -
 qadevOOo/tests/java/mod/_sc/ScDrawPagesObj.java   |  115 
--
 qadevOOo/tests/java/mod/_sd/SdDrawPagesAccess.java|3 
 sc/qa/unoapi/sc_4.sce |1 
 8 files changed, 189 deletions(-)

New commits:
commit 13279b94080d87dde51bc8b8c669212bf71cacca
Author: Jens Carl 
AuthorDate: Tue Jan 22 23:15:44 2019 +
Commit: Jens Carl 
CommitDate: Wed Jan 23 01:49:04 2019 +0100

tdf#45904 Clean up _XDrawPageSummarizer Java tests

The XDrawPageSummarizer interface is deprecated since commit
d081c80877dc1ae413b9d65c206485b6821d0ef8

Change-Id: I041c5d5df11d1b5208b846c76ef82427c4df4585
Reviewed-on: https://gerrit.libreoffice.org/66757
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index c52e866b14a0..38794d90181e 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -80,7 +80,6 @@ job85=sc.ScCellSearchObj
 job88=sc.ScDatabaseRangeObj
 job90=sc.ScDataPilotFieldObj
 job91=sc.ScDataPilotFieldsObj
-job95=sc.ScDrawPagesObj
 job96=sc.ScFilterDescriptorBase
 job98=sc.ScHeaderFieldObj
 job99=sc.ScHeaderFieldsObj
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index b56fd80617b6..1a156fca7c19 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -351,7 +351,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/ifc/drawing/_XDrawPageDuplicator \
 qadevOOo/tests/java/ifc/drawing/_XDrawPages \
 qadevOOo/tests/java/ifc/drawing/_XDrawPagesSupplier \
-qadevOOo/tests/java/ifc/drawing/_XDrawPageSummarizer \
 qadevOOo/tests/java/ifc/drawing/_XDrawPageSupplier \
 qadevOOo/tests/java/ifc/drawing/_XDrawView \
 qadevOOo/tests/java/ifc/drawing/_XGluePointsSupplier \
@@ -975,7 +974,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj \
 qadevOOo/tests/java/mod/_sc/ScDocumentConfiguration \
 qadevOOo/tests/java/mod/_sc/ScDrawPageObj \
-qadevOOo/tests/java/mod/_sc/ScDrawPagesObj \
 qadevOOo/tests/java/mod/_sc/ScFilterDescriptorBase \
 qadevOOo/tests/java/mod/_sc/ScHeaderFieldObj \
 qadevOOo/tests/java/mod/_sc/ScHeaderFieldsObj \
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPagesObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPagesObj.csv
deleted file mode 100644
index 7b3c5b2ae7bf..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPagesObj.csv
+++ /dev/null
@@ -1 +0,0 @@
-"ScDrawPagesObj";"com::sun::star::drawing::XDrawPageSummarizer#optional";"summarize()"
diff --git a/qadevOOo/objdsc/sd/com.sun.star.comp.office.SdDrawPagesAccess.csv 
b/qadevOOo/objdsc/sd/com.sun.star.comp.office.SdDrawPagesAccess.csv
index afd975830c02..c54e175f77c9 100644
--- a/qadevOOo/objdsc/sd/com.sun.star.comp.office.SdDrawPagesAccess.csv
+++ b/qadevOOo/objdsc/sd/com.sun.star.comp.office.SdDrawPagesAccess.csv
@@ -4,4 +4,3 @@
 "SdDrawPagesAccess";"com::sun::star::drawing::XDrawPages";"remove()"
 
"SdDrawPagesAccess";"com::sun::star::container::XElementAccess";"getElementType()"
 "SdDrawPagesAccess";"com::sun::star::container::XElementAccess";"hasElements()"
-"SdDrawPagesAccess";"com::sun::star::drawing::XDrawPageSummarizer#optional";"summarize()"
diff --git a/qadevOOo/tests/java/ifc/drawing/_XDrawPageSummarizer.java 
b/qadevOOo/tests/java/ifc/drawing/_XDrawPageSummarizer.java
deleted file mode 100644
index b346f933365d..
--- a/qadevOOo/tests/java/ifc/drawing/_XDrawPageSummarizer.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package ifc.drawing;
-
-import lib.MultiMethodTest;
-import 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa

2019-01-17 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst |1 
 qadevOOo/Jar_OOoRunner.mk |1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinksObj.csv |1 
 qadevOOo/tests/java/mod/_sc/ScDDELinksObj.java|  149 --
 sc/qa/extras/scddelinksobj.cxx|5 
 sc/qa/unoapi/sc_3.sce |1 
 6 files changed, 5 insertions(+), 153 deletions(-)

New commits:
commit cda562cedef53a6e54be2d9512a1347776046dfe
Author: Jens Carl 
AuthorDate: Thu Jan 17 22:58:32 2019 +
Commit: Jens Carl 
CommitDate: Fri Jan 18 00:52:37 2019 +0100

tdf#45904 Move XEnumerationAccess Java test to C++

Move XEnumerationAccess Java test to C++ for ScDDELinksObj.

Change-Id: I91d8ea1b51cde36996847371a03406b899e23d79
Reviewed-on: https://gerrit.libreoffice.org/66559
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 28698eb8fa4e..c52e866b14a0 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -80,7 +80,6 @@ job85=sc.ScCellSearchObj
 job88=sc.ScDatabaseRangeObj
 job90=sc.ScDataPilotFieldObj
 job91=sc.ScDataPilotFieldsObj
-job94=sc.ScDDELinksObj
 job95=sc.ScDrawPagesObj
 job96=sc.ScFilterDescriptorBase
 job98=sc.ScHeaderFieldObj
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index e657d66f882e..6af59eb7f706 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -974,7 +974,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScDataPilotFieldsObj \
 qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj \
 qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj \
-qadevOOo/tests/java/mod/_sc/ScDDELinksObj \
 qadevOOo/tests/java/mod/_sc/ScDocumentConfiguration \
 qadevOOo/tests/java/mod/_sc/ScDrawPageObj \
 qadevOOo/tests/java/mod/_sc/ScDrawPagesObj \
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinksObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinksObj.csv
deleted file mode 100644
index ce5281f4c2ea..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinksObj.csv
+++ /dev/null
@@ -1 +0,0 @@
-"ScDDELinksObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScDDELinksObj.java 
b/qadevOOo/tests/java/mod/_sc/ScDDELinksObj.java
deleted file mode 100644
index 9fb7f59614e9..
--- a/qadevOOo/tests/java/mod/_sc/ScDDELinksObj.java
+++ /dev/null
@@ -1,149 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-import util.utils;
-
-import com.sun.star.beans.XPropertySet;
-import com.sun.star.container.XIndexAccess;
-import com.sun.star.lang.XComponent;
-import com.sun.star.lang.XMultiServiceFactory;
-import com.sun.star.sheet.XSpreadsheet;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.sheet.XSpreadsheets;
-import com.sun.star.uno.AnyConverter;
-import com.sun.star.uno.Type;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-/**
-* Test for object which is represented by service
-* com.sun.star.sheet.DDELinks. 
-* Object implements the following interfaces :
-* 
-*   com::sun::star::container::XNameAccess
-*   com::sun::star::container::XElementAccess
-* 
-* The following files used by this test :
-* 
-*   ScDDELinksObj.ods  : the predefined testdocument 
-*  
-* @see com.sun.star.sheet.DDELinks
-* @see com.sun.star.container.XNameAccess
-* @see com.sun.star.container.XElementAccess
-* @see ifc.container._XNameAccess
-* @see ifc.container._XElementAccess
-*/
-public class ScDDELinksObj extends TestCase {
-private XSpreadsheetDocument xSheetDoc = null;
-static XComponent oDoc = null;
-
-/**
-* Creates Spreadsheet document.
-*/
-@Override
-protected void initialize( TestParameters tParam, PrintWriter log ) throws 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa

2019-01-16 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst|
1 
 qadevOOo/Jar_OOoRunner.mk|
1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableConditionalFormat.csv |
2 
 qadevOOo/tests/java/mod/_sc/ScTableConditionalFormat.java|  
167 --
 sc/qa/extras/sctableconditionalformat.cxx|
9 
 sc/qa/unoapi/sc_7.sce|
1 
 6 files changed, 9 insertions(+), 172 deletions(-)

New commits:
commit 4edf62ebc95ec00a3a04907213d1a5fbb57b390d
Author: Jens Carl 
AuthorDate: Wed Jan 16 21:21:13 2019 +
Commit: Jens Carl 
CommitDate: Thu Jan 17 01:43:11 2019 +0100

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScTableConditionalFormat.

Change-Id: Ib2575920e05d56feed68c6f4c15b485ab7993600
Reviewed-on: https://gerrit.libreoffice.org/66488
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 63e1236b4656..28698eb8fa4e 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -93,7 +93,6 @@ job131=sc.ScStyleFamilyObj
 job132=sc.ScStyleObj
 job134=sc.ScTableColumnObj
 job135=sc.ScTableColumnsObj
-job137=sc.ScTableConditionalFormat
 job138=sc.ScTableRowObj
 job139=sc.ScTableValidationObj
 job140=sc.XMLContentExporter
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 30d993211f78..e657d66f882e 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -995,7 +995,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScSubTotalDescriptorBase \
 qadevOOo/tests/java/mod/_sc/ScTableColumnObj \
 qadevOOo/tests/java/mod/_sc/ScTableColumnsObj \
-qadevOOo/tests/java/mod/_sc/ScTableConditionalFormat \
 qadevOOo/tests/java/mod/_sc/ScTableRowObj \
 qadevOOo/tests/java/mod/_sc/ScTableSheetObj \
 qadevOOo/tests/java/mod/_sc/ScTableSheetsObj \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableConditionalFormat.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableConditionalFormat.csv
deleted file mode 100644
index 3c950b80fa3c..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableConditionalFormat.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScTableConditionalFormat";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScTableConditionalFormat";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScTableConditionalFormat.java 
b/qadevOOo/tests/java/mod/_sc/ScTableConditionalFormat.java
deleted file mode 100644
index 0e579afca64d..
--- a/qadevOOo/tests/java/mod/_sc/ScTableConditionalFormat.java
+++ /dev/null
@@ -1,167 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.beans.PropertyValue;
-import com.sun.star.beans.XPropertySet;
-import com.sun.star.container.XIndexAccess;
-import com.sun.star.lang.XComponent;
-import com.sun.star.sheet.ConditionOperator;
-import com.sun.star.sheet.XSheetConditionalEntries;
-import com.sun.star.sheet.XSpreadsheet;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.sheet.XSpreadsheets;
-import com.sun.star.table.CellAddress;
-import com.sun.star.uno.AnyConverter;
-import com.sun.star.uno.Type;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-/**
-* Test for object which is represented by service
-* com.sun.star.sheet.TableConditionalFormat. 
-* Object implements the following interfaces :
-* 
-*   com::sun::star::container::XNameAccess
-*   com::sun::star::container::XIndexAccess
-*   com::sun::star::sheet::XSheetConditionalEntries
-*   com::sun::star::container::XElementAccess
-* 
-* @see com.sun.star.sheet.TableConditionalFormat
-* @see com.sun.star.container.XNameAccess
-* @see 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa

2019-01-15 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst  |1 
 qadevOOo/Jar_OOoRunner.mk  |1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamiliesObj.csv |2 
 qadevOOo/tests/java/mod/_sc/ScStyleFamiliesObj.java|  105 
--
 sc/qa/extras/scstylefamiliesobj.cxx|   10 
 sc/qa/unoapi/sc_6.sce  |1 
 6 files changed, 10 insertions(+), 110 deletions(-)

New commits:
commit 6740443311268b7d918bf4f43134d64fb78a0109
Author: Jens Carl 
AuthorDate: Tue Jan 15 07:37:37 2019 +
Commit: Jens Carl 
CommitDate: Wed Jan 16 00:30:32 2019 +0100

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScStyleFamiliesObj.

Change-Id: I0c21e35f1c303bb430010b51795285c0a2e7e283
Reviewed-on: https://gerrit.libreoffice.org/66347
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 6b9a152fbeb9..63e1236b4656 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -89,7 +89,6 @@ job126=sc.ScSheetLinkObj
 job127=sc.ScSheetLinksObj
 job128=sc.ScSpreadsheetSettings
 job129=sc.ScSpreadsheetSettingsObj
-job130=sc.ScStyleFamiliesObj
 job131=sc.ScStyleFamilyObj
 job132=sc.ScStyleObj
 job134=sc.ScTableColumnObj
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index a4c227a8f463..30d993211f78 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -990,7 +990,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScSheetLinksObj \
 qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettings \
 qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettingsObj \
-qadevOOo/tests/java/mod/_sc/ScStyleFamiliesObj \
 qadevOOo/tests/java/mod/_sc/ScStyleFamilyObj \
 qadevOOo/tests/java/mod/_sc/ScStyleObj \
 qadevOOo/tests/java/mod/_sc/ScSubTotalDescriptorBase \
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamiliesObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamiliesObj.csv
deleted file mode 100644
index e6d6f86459c6..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamiliesObj.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScStyleFamiliesObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScStyleFamiliesObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScStyleFamiliesObj.java 
b/qadevOOo/tests/java/mod/_sc/ScStyleFamiliesObj.java
deleted file mode 100644
index 127b73226222..
--- a/qadevOOo/tests/java/mod/_sc/ScStyleFamiliesObj.java
+++ /dev/null
@@ -1,105 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.StatusException;
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.container.XNameAccess;
-import com.sun.star.lang.XComponent;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.style.XStyleFamiliesSupplier;
-import com.sun.star.uno.UnoRuntime;
-
-/**
-* Test for object which is represented by service
-* com.sun.star.style.StyleFamilies. 
-* Object implements the following interfaces :
-* 
-*   com::sun::star::container::XNameAccess
-*   com::sun::star::container::XElementAccess
-*   com::sun::star::container::XIndexAccess
-* 
-* @see com.sun.star.style.StyleFamilies
-* @see com.sun.star.container.XNameAccess
-* @see com.sun.star.container.XElementAccess
-* @see com.sun.star.container.XIndexAccess
-* @see ifc.container._XNameAccess
-* @see ifc.container._XElementAccess
-* @see ifc.container._XIndexAccess
-*/
-public class ScStyleFamiliesObj extends TestCase {
-private XSpreadsheetDocument xSpreadsheetDoc = null;
-
-/**
-* Creates Spreadsheet document.
-*/
-@Override
-protected void initialize( TestParameters tParam, PrintWriter log ) throws 
Exception {
-SOfficeFactory SOF = 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa

2019-01-13 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst|1 
 qadevOOo/Jar_OOoRunner.mk|1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotTablesObj.csv |3 
 qadevOOo/tests/java/mod/_sc/ScDataPilotTablesObj.java|  157 
--
 sc/qa/extras/scdatapilottablesobj.cxx|   10 
 sc/qa/unoapi/sc_4.sce|1 
 6 files changed, 9 insertions(+), 164 deletions(-)

New commits:
commit c73cc08f0a4af4578e1d061d042f2c11ce0b51ae
Author: Jens Carl 
AuthorDate: Sun Jan 13 19:25:12 2019 +
Commit: Jens Carl 
CommitDate: Mon Jan 14 05:19:50 2019 +0100

tdf#45904 Move XNameAccess Java tests to C++

Move XNameAccess Java tests to C++ for ScDataPilotTablesObj.

Change-Id: I43bd4ca0688e38792080710c288ca746f95460d9
Reviewed-on: https://gerrit.libreoffice.org/66273
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 113755a44ddb..6b9a152fbeb9 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -80,7 +80,6 @@ job85=sc.ScCellSearchObj
 job88=sc.ScDatabaseRangeObj
 job90=sc.ScDataPilotFieldObj
 job91=sc.ScDataPilotFieldsObj
-job92=sc.ScDataPilotTablesObj
 job94=sc.ScDDELinksObj
 job95=sc.ScDrawPagesObj
 job96=sc.ScFilterDescriptorBase
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 12bd022d00f0..a4c227a8f463 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -974,7 +974,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScDataPilotFieldsObj \
 qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj \
 qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj \
-qadevOOo/tests/java/mod/_sc/ScDataPilotTablesObj \
 qadevOOo/tests/java/mod/_sc/ScDDELinksObj \
 qadevOOo/tests/java/mod/_sc/ScDocumentConfiguration \
 qadevOOo/tests/java/mod/_sc/ScDrawPageObj \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotTablesObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotTablesObj.csv
deleted file mode 100644
index bf88fcd3661a..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotTablesObj.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-"ScDataPilotTablesObj";"com::sun::star::container::XNameAccess";"getByName()"
-"ScDataPilotTablesObj";"com::sun::star::container::XNameAccess";"getElementNames()"
-"ScDataPilotTablesObj";"com::sun::star::container::XNameAccess";"hasByName()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotTablesObj.java 
b/qadevOOo/tests/java/mod/_sc/ScDataPilotTablesObj.java
deleted file mode 100644
index 7bcd96b85391..
--- a/qadevOOo/tests/java/mod/_sc/ScDataPilotTablesObj.java
+++ /dev/null
@@ -1,157 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.container.XIndexAccess;
-import com.sun.star.lang.XComponent;
-import com.sun.star.sheet.XDataPilotDescriptor;
-import com.sun.star.sheet.XDataPilotTables;
-import com.sun.star.sheet.XDataPilotTablesSupplier;
-import com.sun.star.sheet.XSpreadsheet;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.sheet.XSpreadsheets;
-import com.sun.star.table.CellAddress;
-import com.sun.star.table.CellRangeAddress;
-import com.sun.star.uno.AnyConverter;
-import com.sun.star.uno.Type;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-/**
-* Test for object which is represented by service
-* com.sun.star.sheet.DataPilotTables. 
-* Object implements the following interfaces :
-* 
-*   com::sun::star::sheet::XDataPilotTables
-*   com::sun::star::container::XNameAccess
-*   com::sun::star::container::XElementAccess
-* 
-* @see com.sun.star.sheet.DataPilotTables
-* @see com.sun.star.sheet.XDataPilotTables
-* @see com.sun.star.container.XNameAccess
-* @see 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa

2019-01-13 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst   |1 
 qadevOOo/Jar_OOoRunner.mk   |1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDatabaseRangesObj.csv |3 
 qadevOOo/tests/java/mod/_sc/ScDatabaseRangesObj.java|  122 
--
 sc/qa/extras/scdatabaserangesobj.cxx|   10 
 sc/qa/unoapi/sc_4.sce   |1 
 6 files changed, 9 insertions(+), 129 deletions(-)

New commits:
commit 5c30493e95e54f082bd4b43d735a38c2339e1f92
Author: Jens Carl 
AuthorDate: Sun Jan 13 05:13:07 2019 +
Commit: Jens Carl 
CommitDate: Sun Jan 13 19:32:27 2019 +0100

tdf#45904 Move XNameAccess Java tests to C++

Move XNameAccess Java tests to C++ for ScDatabaseRangesObj.

Change-Id: Id54f9bc1a9215a4524be4a1f52800049ce438c8a
Reviewed-on: https://gerrit.libreoffice.org/66250
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index c56c6f51cca8..113755a44ddb 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -78,7 +78,6 @@ job80=sc.ScAutoFormatsObj
 job81=sc.ScCellFieldObj
 job85=sc.ScCellSearchObj
 job88=sc.ScDatabaseRangeObj
-job89=sc.ScDatabaseRangesObj
 job90=sc.ScDataPilotFieldObj
 job91=sc.ScDataPilotFieldsObj
 job92=sc.ScDataPilotTablesObj
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index e170d9e6dd59..12bd022d00f0 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -967,7 +967,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScChartObj \
 qadevOOo/tests/java/mod/_sc/ScChartsObj \
 qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj \
-qadevOOo/tests/java/mod/_sc/ScDatabaseRangesObj \
 qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupItemObj \
 qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupObj \
 qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupsObj \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDatabaseRangesObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDatabaseRangesObj.csv
deleted file mode 100644
index 704ef56f4819..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDatabaseRangesObj.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-"ScDatabaseRangesObj";"com::sun::star::container::XNameAccess";"getByName()"
-"ScDatabaseRangesObj";"com::sun::star::container::XNameAccess";"getElementNames()"
-"ScDatabaseRangesObj";"com::sun::star::container::XNameAccess";"hasByName()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScDatabaseRangesObj.java 
b/qadevOOo/tests/java/mod/_sc/ScDatabaseRangesObj.java
deleted file mode 100644
index fd8900babcc1..
--- a/qadevOOo/tests/java/mod/_sc/ScDatabaseRangesObj.java
+++ /dev/null
@@ -1,122 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.beans.XPropertySet;
-import com.sun.star.lang.XComponent;
-import com.sun.star.sheet.XDatabaseRanges;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.table.CellRangeAddress;
-import com.sun.star.uno.AnyConverter;
-import com.sun.star.uno.Type;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-/**
-* Test for object which is represented by service
-* com.sun.star.sheet.DatabaseRanges. 
-* Object implements the following interfaces :
-* 
-*   com::sun::star::sheet::XDatabaseRanges
-*   com::sun::star::container::XNameAccess
-*   com::sun::star::container::XElementAccess
-* 
-* @see com.sun.star.sheet.DatabaseRanges
-* @see com.sun.star.sheet.XDatabaseRanges
-* @see com.sun.star.container.XNameAccess
-* @see com.sun.star.container.XElementAccess
-* @see ifc.sheet._XDatabaseRanges
-* @see ifc.container._XNameAccess
-* @see ifc.container._XElementAccess
-*/
-public class ScDatabaseRangesObj extends TestCase {
-private XSpreadsheetDocument xSheetDoc = null;
-
-/**
-* 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa

2019-01-12 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst |1 
 qadevOOo/Jar_OOoRunner.mk |1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScFunctionListObj.csv |2 
 qadevOOo/tests/java/mod/_sc/ScFunctionListObj.java|  108 
--
 sc/qa/extras/scfunctionlistobj.cxx|   11 +
 sc/qa/unoapi/sc_4.sce |1 
 6 files changed, 11 insertions(+), 113 deletions(-)

New commits:
commit 3e5075237aa44a9f8bf71f3fb378bdba9b696a5d
Author: Jens Carl 
AuthorDate: Sat Jan 12 19:05:51 2019 +
Commit: Jens Carl 
CommitDate: Sun Jan 13 05:17:51 2019 +0100

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScFunctionListObj.

Change-Id: I2db954ed8801937271b946e814bb1773c089d9ab
Reviewed-on: https://gerrit.libreoffice.org/66244
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 99b6a69eb497..c56c6f51cca8 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -85,7 +85,6 @@ job92=sc.ScDataPilotTablesObj
 job94=sc.ScDDELinksObj
 job95=sc.ScDrawPagesObj
 job96=sc.ScFilterDescriptorBase
-job97=sc.ScFunctionListObj
 job98=sc.ScHeaderFieldObj
 job99=sc.ScHeaderFieldsObj
 job126=sc.ScSheetLinkObj
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index ba9f30fd6e6c..e170d9e6dd59 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -981,7 +981,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScDrawPageObj \
 qadevOOo/tests/java/mod/_sc/ScDrawPagesObj \
 qadevOOo/tests/java/mod/_sc/ScFilterDescriptorBase \
-qadevOOo/tests/java/mod/_sc/ScFunctionListObj \
 qadevOOo/tests/java/mod/_sc/ScHeaderFieldObj \
 qadevOOo/tests/java/mod/_sc/ScHeaderFieldsObj \
 qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextCursor \
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScFunctionListObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScFunctionListObj.csv
deleted file mode 100644
index dfb50e547ea8..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScFunctionListObj.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScFunctionListObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScFunctionListObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScFunctionListObj.java 
b/qadevOOo/tests/java/mod/_sc/ScFunctionListObj.java
deleted file mode 100644
index e7c90e6a8aea..
--- a/qadevOOo/tests/java/mod/_sc/ScFunctionListObj.java
+++ /dev/null
@@ -1,108 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.lang.XComponent;
-import com.sun.star.lang.XMultiServiceFactory;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-/**
-* Test for object which is represented by service
-* com.sun.star.sheet.FunctionDescriptions. 
-* Object implements the following interfaces :
-* 
-*   com::sun::star::container::XNameAccess
-*   com::sun::star::container::XIndexAccess
-*   com::sun::star::sheet::XFunctionDescriptions
-*   com::sun::star::container::XElementAccess
-* 
-* @see com.sun.star.sheet.FunctionDescriptions
-* @see com.sun.star.container.XNameAccess
-* @see com.sun.star.container.XIndexAccess
-* @see com.sun.star.sheet.XFunctionDescriptions
-* @see com.sun.star.container.XElementAccess
-* @see ifc.container._XNameAccess
-* @see ifc.container._XIndexAccess
-* @see ifc.sheet._XFunctionDescriptions
-* @see ifc.container._XElementAccess
-*/
-public class ScFunctionListObj extends TestCase {
-private XSpreadsheetDocument xSheetDoc = null;
-
-/**
-* Creates Spreadsheet document.
-*/
-@Override
-protected void initialize( TestParameters tParam, 

[Libreoffice-commits] core.git: framework/qa include/test qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa test/Library_subsequenttest.mk test/source

2018-12-18 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst  |1 
 include/test/container/xnameaccess.hxx |   46 +++
 qadevOOo/Jar_OOoRunner.mk  |1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScScenariosObj.csv |3 
 qadevOOo/tests/java/mod/_sc/ScScenariosObj.java|  139 
--
 sc/qa/extras/scscenariosobj.cxx|8 
 sc/qa/unoapi/sc_6.sce  |1 
 test/Library_subsequenttest.mk |1 
 test/source/container/xnameaccess.cxx  |   56 
 9 files changed, 111 insertions(+), 145 deletions(-)

New commits:
commit 5658da22f77a48599bb20cf6c7c37abf0388186e
Author: Jens Carl 
AuthorDate: Tue Dec 18 08:23:28 2018 +
Commit: Jens Carl 
CommitDate: Tue Dec 18 18:39:41 2018 +0100

tdf#45904 Move XNameAccess Java tests to C++

Move XNameAccess Java tests to C++ for ScScenariosObj.

Change-Id: I73dd65e672e1e98a6839cea03c30cfafb7da4ff4
Reviewed-on: https://gerrit.libreoffice.org/65313
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 9a0f6d95e35c..99b6a69eb497 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -88,7 +88,6 @@ job96=sc.ScFilterDescriptorBase
 job97=sc.ScFunctionListObj
 job98=sc.ScHeaderFieldObj
 job99=sc.ScHeaderFieldsObj
-job125=sc.ScScenariosObj
 job126=sc.ScSheetLinkObj
 job127=sc.ScSheetLinksObj
 job128=sc.ScSpreadsheetSettings
diff --git a/include/test/container/xnameaccess.hxx 
b/include/test/container/xnameaccess.hxx
new file mode 100644
index ..960cf67822b9
--- /dev/null
+++ b/include/test/container/xnameaccess.hxx
@@ -0,0 +1,46 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_TEST_CONTAINER_XNAMEACCESS_HXX
+#define INCLUDED_TEST_CONTAINER_XNAMEACCESS_HXX
+
+#include 
+
+#include 
+
+#include 
+
+namespace apitest
+{
+class OOO_DLLPUBLIC_TEST XNameAccess
+{
+public:
+XNameAccess(const OUString& rName)
+: m_aName(rName)
+{
+}
+
+virtual css::uno::Reference init() = 0;
+
+void testGetByName();
+void testGetElementNames();
+void testHasByName();
+
+protected:
+~XNameAccess() {}
+
+private:
+OUString const m_aName;
+};
+
+} // namespace apitest
+
+#endif // INCLUDED_TEST_CONTAINER_XNAMEACCESS_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index ba1cd3c87402..204d556676bd 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -988,7 +988,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextObj \
 qadevOOo/tests/java/mod/_sc/ScModelObj \
 qadevOOo/tests/java/mod/_sc/ScNamedRangesObj \
-qadevOOo/tests/java/mod/_sc/ScScenariosObj \
 qadevOOo/tests/java/mod/_sc/ScShapeObj \
 qadevOOo/tests/java/mod/_sc/ScSheetLinkObj \
 qadevOOo/tests/java/mod/_sc/ScSheetLinksObj \
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScScenariosObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScScenariosObj.csv
deleted file mode 100644
index 668c1cc6d36d..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScScenariosObj.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-"ScScenariosObj";"com::sun::star::container::XNameAccess";"getByName()"
-"ScScenariosObj";"com::sun::star::container::XNameAccess";"getElementNames()"
-"ScScenariosObj";"com::sun::star::container::XNameAccess";"hasByName()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScScenariosObj.java 
b/qadevOOo/tests/java/mod/_sc/ScScenariosObj.java
deleted file mode 100644
index 7df0671c2f42..
--- a/qadevOOo/tests/java/mod/_sc/ScScenariosObj.java
+++ /dev/null
@@ -1,139 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa

2018-12-07 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst   |1 
 framework/qa/complex/api_internal/worksforme.sce|1 
 qadevOOo/Jar_OOoRunner.mk   |1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldsObj.csv |1 
 qadevOOo/tests/java/mod/_sc/ScCellFieldsObj.java|  129 
--
 sc/qa/extras/sccellfieldsobj.cxx|5 
 sc/qa/unoapi/sc_2.sce   |1 
 7 files changed, 5 insertions(+), 134 deletions(-)

New commits:
commit 8a4d80bc001483e14945d87118e53f1518a434e8
Author: Jens Carl 
AuthorDate: Fri Dec 7 21:02:29 2018 +
Commit: Jens Carl 
CommitDate: Sat Dec 8 04:05:41 2018 +0100

tdf#45904 Move XEnumerationAccess Java test to C++

Move XEnumerationAccess Java test to C++ for ScCellFieldsObj.

Change-Id: I09e7c6be401bb54e1314da95d6797790aedefbe1
Reviewed-on: https://gerrit.libreoffice.org/64795
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 167c2308c54f..9a0f6d95e35c 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -76,7 +76,6 @@ job78=sc.ScAutoFormatFieldObj
 job79=sc.ScAutoFormatObj
 job80=sc.ScAutoFormatsObj
 job81=sc.ScCellFieldObj
-job82=sc.ScCellFieldsObj
 job85=sc.ScCellSearchObj
 job88=sc.ScDatabaseRangeObj
 job89=sc.ScDatabaseRangesObj
diff --git a/framework/qa/complex/api_internal/worksforme.sce 
b/framework/qa/complex/api_internal/worksforme.sce
index c411bb337e0e..e764cbd9373b 100644
--- a/framework/qa/complex/api_internal/worksforme.sce
+++ b/framework/qa/complex/api_internal/worksforme.sce
@@ -18,7 +18,6 @@
 job=cmdmail.SimpleCommandMail
 job=fileacc.SimpleFileAccess
 job=sc.ScCellFieldObj
-job=sc.ScCellFieldsObj
 job=sc.XMLImporter
 job=sc.XMLMetaExporter
 job=sd.SdDocLinkTargets
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index be961b469267..ba1cd3c87402 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -959,7 +959,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScAutoFormatsObj \
 qadevOOo/tests/java/mod/_sc/ScCellCursorObj \
 qadevOOo/tests/java/mod/_sc/ScCellFieldObj \
-qadevOOo/tests/java/mod/_sc/ScCellFieldsObj \
 qadevOOo/tests/java/mod/_sc/ScCellObj \
 qadevOOo/tests/java/mod/_sc/ScCellRangeObj \
 qadevOOo/tests/java/mod/_sc/ScCellRangesObj \
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldsObj.csv
deleted file mode 100644
index ea3a0c75040a..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldsObj.csv
+++ /dev/null
@@ -1 +0,0 @@
-"ScCellFieldsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScCellFieldsObj.java 
b/qadevOOo/tests/java/mod/_sc/ScCellFieldsObj.java
deleted file mode 100644
index 3445d088a888..
--- a/qadevOOo/tests/java/mod/_sc/ScCellFieldsObj.java
+++ /dev/null
@@ -1,129 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.container.XIndexAccess;
-import com.sun.star.lang.XComponent;
-import com.sun.star.lang.XMultiServiceFactory;
-import com.sun.star.sheet.XSpreadsheet;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.sheet.XSpreadsheets;
-import com.sun.star.table.XCell;
-import com.sun.star.text.XText;
-import com.sun.star.text.XTextContent;
-import com.sun.star.text.XTextFieldsSupplier;
-import com.sun.star.uno.AnyConverter;
-import com.sun.star.uno.Type;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-/**
- * Test for object that represents a collection of text fields
- * in a cell of a spreadsheet. 
- *
- * Object implements the following interfaces :
- * 
- *   

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa

2018-12-05 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst|1 
 qadevOOo/Jar_OOoRunner.mk|1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFormatsObj.csv |2 
 qadevOOo/tests/java/mod/_sc/ScCellFormatsObj.java|  112 
--
 sc/qa/extras/sccellformatsobj.cxx|9 
 sc/qa/unoapi/sc_2.sce|1 
 6 files changed, 8 insertions(+), 118 deletions(-)

New commits:
commit a91782b92d9509619da2598904c644a19aead70b
Author: Jens Carl 
AuthorDate: Wed Dec 5 19:49:21 2018 +
Commit: Jens Carl 
CommitDate: Wed Dec 5 23:14:51 2018 +0100

tdf#45904 Move XIndexAccess Java tests to C++

Move XIndexAccess Java tests to C++ for ScCellFormatsObj.

Change-Id: I5ef1e789a535af55705c3a39f07a939adbed
Reviewed-on: https://gerrit.libreoffice.org/64648
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 4f1cc7cb2540..167c2308c54f 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -77,7 +77,6 @@ job79=sc.ScAutoFormatObj
 job80=sc.ScAutoFormatsObj
 job81=sc.ScCellFieldObj
 job82=sc.ScCellFieldsObj
-job84=sc.ScCellFormatsObj
 job85=sc.ScCellSearchObj
 job88=sc.ScDatabaseRangeObj
 job89=sc.ScDatabaseRangesObj
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 80b62f084af6..86bda8985a6b 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -960,7 +960,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScCellCursorObj \
 qadevOOo/tests/java/mod/_sc/ScCellFieldObj \
 qadevOOo/tests/java/mod/_sc/ScCellFieldsObj \
-qadevOOo/tests/java/mod/_sc/ScCellFormatsObj \
 qadevOOo/tests/java/mod/_sc/ScCellObj \
 qadevOOo/tests/java/mod/_sc/ScCellRangeObj \
 qadevOOo/tests/java/mod/_sc/ScCellRangesObj \
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFormatsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFormatsObj.csv
deleted file mode 100644
index d9fa9324ba53..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFormatsObj.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScCellFormatsObj";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScCellFormatsObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScCellFormatsObj.java 
b/qadevOOo/tests/java/mod/_sc/ScCellFormatsObj.java
deleted file mode 100644
index e67bcf105a4a..
--- a/qadevOOo/tests/java/mod/_sc/ScCellFormatsObj.java
+++ /dev/null
@@ -1,112 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.container.XIndexAccess;
-import com.sun.star.lang.XComponent;
-import com.sun.star.sheet.XCellFormatRangesSupplier;
-import com.sun.star.sheet.XSpreadsheet;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.sheet.XSpreadsheets;
-import com.sun.star.uno.AnyConverter;
-import com.sun.star.uno.Type;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-/**
-* Test for object which is represented by service
-* com.sun.star.sheet.CellFormatRanges. 
-* Object implements the following interfaces :
-* 
-*   com::sun::star::container::XEnumerationAccess
-*   com::sun::star::container::XElementAccess
-* 
-* @see com.sun.star.sheet.CellFormatRanges
-* @see com.sun.star.container.XEnumerationAccess
-* @see com.sun.star.container.XElementAccess
-* @see ifc.container._XEnumerationAccess
-* @see ifc.container._XElementAccess
-*/
-public class ScCellFormatsObj extends TestCase {
-private XSpreadsheetDocument xSheetDoc = null;
-
-/**
-* Creates Spreadsheet document.
-*/
-@Override
-protected void initialize( TestParameters tParam, PrintWriter log ) throws 
Exception {
-// get a soffice factory object
-SOfficeFactory SOF = 

[Libreoffice-commits] core.git: framework/qa include/test qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa test/Library_subsequenttest.mk test/source

2018-12-04 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst|1 
 include/test/util/xrefreshable.hxx   |   38 ++
 qadevOOo/Jar_OOoRunner.mk|1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinkObj.csv |3 
 qadevOOo/tests/java/mod/_sc/ScDDELinkObj.java|  181 ---
 sc/qa/extras/scddelinkobj.cxx|   11 
 sc/qa/unoapi/sc_3.sce|1 
 test/Library_subsequenttest.mk   |1 
 test/source/util/xrefreshable.cxx|   81 
 9 files changed, 130 insertions(+), 188 deletions(-)

New commits:
commit 63ff8602c16b0c26927dc3413b12a5368fe367b0
Author: Jens Carl 
AuthorDate: Tue Dec 4 09:29:11 2018 +
Commit: Jens Carl 
CommitDate: Wed Dec 5 04:45:59 2018 +0100

tdf#45904 Move XRefreshable Java tests to C++

Move XRefreshable Java tests to C++ for ScDDELinkObj.

Change-Id: I121d9fe6a66c549e402b0cf6fd54fea1201e443f
Reviewed-on: https://gerrit.libreoffice.org/64511
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index a4b45dfd2053..4f1cc7cb2540 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -84,7 +84,6 @@ job89=sc.ScDatabaseRangesObj
 job90=sc.ScDataPilotFieldObj
 job91=sc.ScDataPilotFieldsObj
 job92=sc.ScDataPilotTablesObj
-job93=sc.ScDDELinkObj
 job94=sc.ScDDELinksObj
 job95=sc.ScDrawPagesObj
 job96=sc.ScFilterDescriptorBase
diff --git a/include/test/util/xrefreshable.hxx 
b/include/test/util/xrefreshable.hxx
new file mode 100644
index ..2ffab9946e4a
--- /dev/null
+++ b/include/test/util/xrefreshable.hxx
@@ -0,0 +1,38 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_TEST_UTIL_XREFRESHABLE_HXX
+#define INCLUDED_TEST_UTIL_XREFRESHABLE_HXX
+
+#include 
+
+#include 
+
+#include 
+
+namespace apitest
+{
+class OOO_DLLPUBLIC_TEST XRefreshable
+{
+public:
+virtual css::uno::Reference init() = 0;
+
+void testAddRefreshListener();
+void testRefresh();
+void testRemoveRefreshListener();
+
+protected:
+~XRefreshable() {}
+};
+
+} // namespace apitest
+
+#endif // INCLUDED_TEST_UTIL_XREFRESHABLE_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 9de56bbe02dd..80b62f084af6 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -978,7 +978,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj \
 qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj \
 qadevOOo/tests/java/mod/_sc/ScDataPilotTablesObj \
-qadevOOo/tests/java/mod/_sc/ScDDELinkObj \
 qadevOOo/tests/java/mod/_sc/ScDDELinksObj \
 qadevOOo/tests/java/mod/_sc/ScDocumentConfiguration \
 qadevOOo/tests/java/mod/_sc/ScDrawPageObj \
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinkObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinkObj.csv
deleted file mode 100644
index 651b7c6ffebd..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinkObj.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-"ScDDELinkObj";"com::sun::star::util::XRefreshable";"refresh()"
-"ScDDELinkObj";"com::sun::star::util::XRefreshable";"addRefreshListener()"
-"ScDDELinkObj";"com::sun::star::util::XRefreshable";"removeRefreshListener()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScDDELinkObj.java 
b/qadevOOo/tests/java/mod/_sc/ScDDELinkObj.java
deleted file mode 100644
index 04e9beebb8c5..
--- a/qadevOOo/tests/java/mod/_sc/ScDDELinkObj.java
+++ /dev/null
@@ -1,181 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa

2018-12-02 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst|1 
 qadevOOo/Jar_OOoRunner.mk|1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScLabelRangesObj.csv |2 
 qadevOOo/tests/java/mod/_sc/ScLabelRangesObj.java|  119 
--
 sc/qa/extras/sclabelrangesobj.cxx|   10 
 sc/qa/unoapi/sc_6.sce|1 
 6 files changed, 10 insertions(+), 124 deletions(-)

New commits:
commit cee3278a3d5924e01d92ff8a39d7b9751996d7e3
Author: Jens Carl 
AuthorDate: Sun Dec 2 18:23:41 2018 +
Commit: Jens Carl 
CommitDate: Mon Dec 3 07:20:39 2018 +0100

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScLabelRangesObj.

Change-Id: Icf49fb7e8c24b169e4fe33ffed8cc1412d21f9e8
Reviewed-on: https://gerrit.libreoffice.org/64432
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index b47dad57003c..a4b45dfd2053 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -91,7 +91,6 @@ job96=sc.ScFilterDescriptorBase
 job97=sc.ScFunctionListObj
 job98=sc.ScHeaderFieldObj
 job99=sc.ScHeaderFieldsObj
-job122=sc.ScLabelRangesObj
 job125=sc.ScScenariosObj
 job126=sc.ScSheetLinkObj
 job127=sc.ScSheetLinksObj
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 2c5673c4e86a..9de56bbe02dd 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -989,7 +989,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScHeaderFieldsObj \
 qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextCursor \
 qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextObj \
-qadevOOo/tests/java/mod/_sc/ScLabelRangesObj \
 qadevOOo/tests/java/mod/_sc/ScModelObj \
 qadevOOo/tests/java/mod/_sc/ScNamedRangesObj \
 qadevOOo/tests/java/mod/_sc/ScScenariosObj \
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScLabelRangesObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScLabelRangesObj.csv
deleted file mode 100644
index c814454c7897..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScLabelRangesObj.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScLabelRangesObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScLabelRangesObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScLabelRangesObj.java 
b/qadevOOo/tests/java/mod/_sc/ScLabelRangesObj.java
deleted file mode 100644
index 2806fd4cfb55..
--- a/qadevOOo/tests/java/mod/_sc/ScLabelRangesObj.java
+++ /dev/null
@@ -1,119 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.beans.XPropertySet;
-import com.sun.star.lang.XComponent;
-import com.sun.star.sheet.XLabelRanges;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.table.CellRangeAddress;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-/**
-* Test for object which is represented by service
-* com.sun.star.sheet.LabelRanges. 
-* Object implements the following interfaces :
-* 
-*   com::sun::star::sheet::XLabelRanges
-*   com::sun::star::container::XIndexAccess
-*   com::sun::star::container::XElementAccess
-* 
-* @see com.sun.star.sheet.LabelRanges
-* @see com.sun.star.sheet.XLabelRanges
-* @see com.sun.star.container.XIndexAccess
-* @see com.sun.star.container.XElementAccess
-* @see ifc.sheet._XLabelRanges
-* @see ifc.container._XIndexAccess
-* @see ifc.container._XElementAccess
-*/
-public class ScLabelRangesObj extends TestCase {
-private XSpreadsheetDocument xSheetDoc = null;
-
-/**
-* Creates Spreadsheet document.
-*/
-@Override
-protected void initialize( TestParameters tParam, PrintWriter log ) throws 
Exception {
-// get a soffice factory object
-SOfficeFactory SOF = 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa

2018-12-01 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst|1 
 qadevOOo/Jar_OOoRunner.mk|1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationsObj.csv |2 
 qadevOOo/tests/java/mod/_sc/ScAnnotationsObj.java|  132 
--
 sc/qa/extras/scannotationsobj.cxx|   17 +
 sc/qa/unoapi/sc_2.sce|1 
 6 files changed, 14 insertions(+), 140 deletions(-)

New commits:
commit a9b13f2b7f0d2ab8bcf25a3110a06ababb4573f6
Author: Jens Carl 
AuthorDate: Sat Dec 1 19:35:01 2018 +
Commit: Jens Carl 
CommitDate: Sun Dec 2 00:28:27 2018 +0100

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScAnnotationsObj.

Change-Id: Ife8c2d51a3aae409fa008c5ad2515a8976481771
Reviewed-on: https://gerrit.libreoffice.org/64407
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index fd5f7f2dd491..b47dad57003c 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -72,7 +72,6 @@ job72=sc.ScAccessiblePageHeader
 job73=sc.ScAccessiblePreviewTable
 job74=sc.ScAccessibleSpreadsheet
 job75=sc.ScAnnotationObj
-job76=sc.ScAnnotationsObj
 job78=sc.ScAutoFormatFieldObj
 job79=sc.ScAutoFormatObj
 job80=sc.ScAutoFormatsObj
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 575f7fa0c301..2c5673c4e86a 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -952,7 +952,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScAccessibleSpreadsheet \
 qadevOOo/tests/java/mod/_sc/ScAnnotationObj \
 qadevOOo/tests/java/mod/_sc/ScAnnotationShapeObj \
-qadevOOo/tests/java/mod/_sc/ScAnnotationsObj \
 qadevOOo/tests/java/mod/_sc/ScAnnotationTextCursor \
 qadevOOo/tests/java/mod/_sc/ScAreaLinkObj \
 qadevOOo/tests/java/mod/_sc/ScAutoFormatFieldObj \
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationsObj.csv
deleted file mode 100644
index a6e62ec29e06..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationsObj.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScAnnotationsObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScAnnotationsObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScAnnotationsObj.java 
b/qadevOOo/tests/java/mod/_sc/ScAnnotationsObj.java
deleted file mode 100644
index 24d9756528d7..
--- a/qadevOOo/tests/java/mod/_sc/ScAnnotationsObj.java
+++ /dev/null
@@ -1,132 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.container.XNameAccess;
-import com.sun.star.lang.XComponent;
-import com.sun.star.sheet.XSheetAnnotation;
-import com.sun.star.sheet.XSheetAnnotationAnchor;
-import com.sun.star.sheet.XSheetAnnotationsSupplier;
-import com.sun.star.sheet.XSpreadsheet;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.sheet.XSpreadsheets;
-import com.sun.star.table.XCell;
-import com.sun.star.table.XCellRange;
-import com.sun.star.text.XSimpleText;
-import com.sun.star.uno.AnyConverter;
-import com.sun.star.uno.Type;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-/**
-* Test for object which represents a collection of annotations
-* for a spreadsheet document (implements
-* com.sun.star.sheet.CellAnnotations). 
-* Object implements the following interfaces :
-* 
-*   com::sun::star::container::XIndexAccess
-*   com::sun::star::container::XElementAccess
-*   com::sun::star::sheet::XSheetAnnotations
-*  
-* This object test  is NOT  designed to be run in several
-* threads concurrently.
-* @see com.sun.star.sheet.CellAnnotations
-* @see com.sun.star.container.XIndexAccess
-* @see 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa

2018-12-01 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst  |1 
 qadevOOo/Jar_OOoRunner.mk  |1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAreaLinksObj.csv |2 
 qadevOOo/tests/java/mod/_sc/ScAreaLinksObj.java|  118 
--
 sc/qa/extras/scarealinksobj.cxx|9 
 sc/qa/unoapi/sc_2.sce  |1 
 6 files changed, 8 insertions(+), 124 deletions(-)

New commits:
commit e268016887aba18af67ad5060c8dfbf936f688d8
Author: Jens Carl 
AuthorDate: Sat Dec 1 07:48:35 2018 +
Commit: Jens Carl 
CommitDate: Sat Dec 1 19:13:46 2018 +0100

tdf#45904 Move XIndexAccess Java tests to C++

Move XIndexAccess Java test to C++ for ScAreaLinksObj.

Change-Id: I374b7301caf67c900b7a64920d2ac5b642a8c6fd
Reviewed-on: https://gerrit.libreoffice.org/64376
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 89361f5b9349..fd5f7f2dd491 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -73,7 +73,6 @@ job73=sc.ScAccessiblePreviewTable
 job74=sc.ScAccessibleSpreadsheet
 job75=sc.ScAnnotationObj
 job76=sc.ScAnnotationsObj
-job77=sc.ScAreaLinksObj
 job78=sc.ScAutoFormatFieldObj
 job79=sc.ScAutoFormatObj
 job80=sc.ScAutoFormatsObj
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index a2e9b82e89f8..575f7fa0c301 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -955,7 +955,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScAnnotationsObj \
 qadevOOo/tests/java/mod/_sc/ScAnnotationTextCursor \
 qadevOOo/tests/java/mod/_sc/ScAreaLinkObj \
-qadevOOo/tests/java/mod/_sc/ScAreaLinksObj \
 qadevOOo/tests/java/mod/_sc/ScAutoFormatFieldObj \
 qadevOOo/tests/java/mod/_sc/ScAutoFormatObj \
 qadevOOo/tests/java/mod/_sc/ScAutoFormatsObj \
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAreaLinksObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAreaLinksObj.csv
deleted file mode 100644
index d21c646b1eee..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAreaLinksObj.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScAreaLinksObj";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScAreaLinksObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScAreaLinksObj.java 
b/qadevOOo/tests/java/mod/_sc/ScAreaLinksObj.java
deleted file mode 100644
index 8b324a723502..
--- a/qadevOOo/tests/java/mod/_sc/ScAreaLinksObj.java
+++ /dev/null
@@ -1,118 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.beans.XPropertySet;
-import com.sun.star.lang.XComponent;
-import com.sun.star.sheet.XAreaLinks;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.table.CellAddress;
-import com.sun.star.uno.AnyConverter;
-import com.sun.star.uno.Type;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-
-/**
-* Test for object which is represented by service
-* com.sun.star.sheet.CellAreaLinks.
-* This is a collection aff all links present
-* in a Spreadsheet document.
-* Object implements the following interfaces :
-* 
-*   com::sun::star::container::XIndexAccess
-*   com::sun::star::container::XElementAccess
-*   com::sun::star::sheet::XAreaLinks
-* 
-* This object test  is NOT  designed to be run in several
-* threads concurrently.
-* @see com.sun.star.container.XIndexAccess
-* @see com.sun.star.container.XElementAccess
-* @see com.sun.star.sheet.XAreaLinks
-* @see ifc.container._XIndexAccess
-* @see ifc.container._XElementAccess
-* @see ifc.sheet._XAreaLinks
-* @see com.sun.star.sheet.CellAreaLinks
-*/
-public class ScAreaLinksObj extends TestCase {
-private XSpreadsheetDocument xSheetDoc = null;
-
-/**
-* Creates Spreadsheet document.
-*/
-   

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa

2018-11-30 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst  |1 
 qadevOOo/Jar_OOoRunner.mk  |1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellsObj.csv |2 
 qadevOOo/tests/java/mod/_sc/ScCellsObj.java|  132 -
 sc/qa/extras/sccellsobj.cxx|   12 +
 sc/qa/unoapi/sc_3.sce  |1 
 6 files changed, 11 insertions(+), 138 deletions(-)

New commits:
commit 9be1f37fa2954191e06d570e98671868b47d4c76
Author: Jens Carl 
AuthorDate: Fri Nov 30 21:57:59 2018 +
Commit: Jens Carl 
CommitDate: Sat Dec 1 05:49:44 2018 +0100

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++
for ScCellsObj.

Change-Id: If721582a36ef5a82fba20d4ec7e0806d1d0524d9
Reviewed-on: https://gerrit.libreoffice.org/64365
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 5c25127f8660..89361f5b9349 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -81,7 +81,6 @@ job81=sc.ScCellFieldObj
 job82=sc.ScCellFieldsObj
 job84=sc.ScCellFormatsObj
 job85=sc.ScCellSearchObj
-job87=sc.ScCellsObj
 job88=sc.ScDatabaseRangeObj
 job89=sc.ScDatabaseRangesObj
 job90=sc.ScDataPilotFieldObj
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 63ebd62f3844..a2e9b82e89f8 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -967,7 +967,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScCellRangeObj \
 qadevOOo/tests/java/mod/_sc/ScCellRangesObj \
 qadevOOo/tests/java/mod/_sc/ScCellSearchObj \
-qadevOOo/tests/java/mod/_sc/ScCellsObj \
 qadevOOo/tests/java/mod/_sc/ScCellTextCursor \
 qadevOOo/tests/java/mod/_sc/ScChartObj \
 qadevOOo/tests/java/mod/_sc/ScChartsObj \
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellsObj.csv
deleted file mode 100644
index c8c8a23d9be7..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellsObj.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScCellsObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScCellsObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScCellsObj.java 
b/qadevOOo/tests/java/mod/_sc/ScCellsObj.java
deleted file mode 100644
index 2fb813995c24..
--- a/qadevOOo/tests/java/mod/_sc/ScCellsObj.java
+++ /dev/null
@@ -1,132 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.container.XIndexAccess;
-import com.sun.star.lang.XComponent;
-import com.sun.star.sheet.XCellRangesQuery;
-import com.sun.star.sheet.XSheetCellRanges;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.sheet.XSpreadsheets;
-import com.sun.star.table.XCell;
-import com.sun.star.table.XCellRange;
-import com.sun.star.text.XTextRange;
-import com.sun.star.uno.AnyConverter;
-import com.sun.star.uno.Type;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-/**
-* Test for object which is represented by service
-* com.sun.star.sheet.Cells. 
-* Object implements the following interfaces :
-* 
-*   com::sun::star::container::XEnumerationAccess
-*   com::sun::star::container::XElementAccess
-* 
-* @see com.sun.star.sheet.Cells
-* @see com.sun.star.container.XEnumerationAccess
-* @see com.sun.star.container.XElementAccess
-* @see ifc.container._XEnumerationAccess
-* @see ifc.container._XElementAccess
-*/
-public class ScCellsObj extends TestCase {
-private XSpreadsheetDocument xSheetDoc = null;
-
-/**
-* Creates Spreadsheet document.
-*/
-@Override
-protected void initialize( TestParameters tParam, PrintWriter log ) throws 
Exception {
-// get a soffice factory object
-SOfficeFactory SOF = 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/CppunitTest_sc_indexenumeration_tablechartsenumeration.mk sc/Module_sc.mk sc/qa

2018-11-20 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst  
   |1 
 qadevOOo/Jar_OOoRunner.mk  
   |1 
 
qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_TableChartsEnumeration.csv
 |2 
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableChartsEnumeration.java 
   |  192 --
 sc/CppunitTest_sc_indexenumeration_tablechartsenumeration.mk   
   |   45 ++
 sc/Module_sc.mk
   |3 
 sc/qa/extras/scindexenumeration_tablechartsenumeration.cxx 
   |  167 
 sc/qa/unoapi/sc_5.sce  
   |1 
 8 files changed, 214 insertions(+), 198 deletions(-)

New commits:
commit a0d1f5eca204e4de84e6e83f0c0765323a23833f
Author: Jens Carl 
AuthorDate: Tue Nov 20 20:50:41 2018 +
Commit: Jens Carl 
CommitDate: Tue Nov 20 23:19:46 2018 +0100

tdf#45904 Move XEnumeration Java tests to C++

Move XEnumeration Java tests to C++
for ScIndexEnumeration_TableChartsEnumeration.

Change-Id: Ibbfcf9ec92c3bae4d6add044d2e62472f32d801e
Reviewed-on: https://gerrit.libreoffice.org/63678
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 2d0c3608180f..5c25127f8660 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -94,7 +94,6 @@ job96=sc.ScFilterDescriptorBase
 job97=sc.ScFunctionListObj
 job98=sc.ScHeaderFieldObj
 job99=sc.ScHeaderFieldsObj
-job117=sc.ScIndexEnumeration_TableChartsEnumeration
 job122=sc.ScLabelRangesObj
 job125=sc.ScScenariosObj
 job126=sc.ScSheetLinkObj
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 58ede4e8b815..73982bf98210 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -993,7 +993,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextCursor \
 qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextObj \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration \
-qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableChartsEnumeration \
 qadevOOo/tests/java/mod/_sc/ScLabelRangesObj \
 qadevOOo/tests/java/mod/_sc/ScModelObj \
 qadevOOo/tests/java/mod/_sc/ScNamedRangesObj \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_TableChartsEnumeration.csv
 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_TableChartsEnumeration.csv
deleted file mode 100644
index f4128d6ee2f6..
--- 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_TableChartsEnumeration.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScIndexEnumeration_TableChartsEnumeration";"com::sun::star::container::XEnumeration";"hasMoreElements()"
-"ScIndexEnumeration_TableChartsEnumeration";"com::sun::star::container::XEnumeration";"nextElement()"
diff --git 
a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableChartsEnumeration.java 
b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableChartsEnumeration.java
deleted file mode 100644
index a29836e3f88d..
--- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableChartsEnumeration.java
+++ /dev/null
@@ -1,192 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.awt.Rectangle;
-import com.sun.star.container.XEnumerationAccess;
-import com.sun.star.container.XIndexAccess;
-import com.sun.star.lang.XComponent;
-import com.sun.star.sheet.XCellRangeAddressable;
-import com.sun.star.sheet.XSpreadsheet;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.sheet.XSpreadsheets;
-import com.sun.star.table.CellRangeAddress;
-import com.sun.star.table.XCell;
-import com.sun.star.table.XCellRange;
-import com.sun.star.table.XTableCharts;
-import 

[Libreoffice-commits] core.git: framework/qa

2018-11-20 Thread Libreoffice Gerrit user
 framework/qa/complex/XTitle/CheckXTitle.java |   32 +++
 1 file changed, 28 insertions(+), 4 deletions(-)

New commits:
commit 9b3387f57d4a762f681ab5276aff8764426c6aa4
Author: Samuel Mehrbrodt 
AuthorDate: Tue Nov 20 13:12:13 2018 +0100
Commit: Samuel Mehrbrodt 
CommitDate: Tue Nov 20 14:56:12 2018 +0100

tdf#121537 Add test

Change-Id: Ifdf46dc79f9b3e2b5ab4c9635619a9d7f598affc
Reviewed-on: https://gerrit.libreoffice.org/63654
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt 

diff --git a/framework/qa/complex/XTitle/CheckXTitle.java 
b/framework/qa/complex/XTitle/CheckXTitle.java
index c264c893552a..2e982fab586f 100644
--- a/framework/qa/complex/XTitle/CheckXTitle.java
+++ b/framework/qa/complex/XTitle/CheckXTitle.java
@@ -18,10 +18,7 @@
 
 package complex.XTitle;
 
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.fail;
+import static org.junit.Assert.*;
 import util.utils;
 
 import org.junit.After;
@@ -201,6 +198,33 @@ public class CheckXTitle
 xDisProv = null;
 }
 
+/** checks the if SuggestedSaveAsName is displayed in the title */
+@Test
+public void checkTitleSuggestedFileName() throws Exception
+{
+PropertyValue[] lArgs = new PropertyValue[2];
+
+lArgs[0] = new PropertyValue();
+lArgs[0].Name= "Hidden";
+lArgs[0].Value   = Boolean.FALSE;
+lArgs[1] = new PropertyValue();
+lArgs[1].Name= "SuggestedSaveAsName";
+lArgs[1].Value   = "suggestme.odt";
+
+// load doc
+XComponent xDoc = 
m_xLoader.loadComponentFromURL("private:factory/swriter", "_blank", 0, lArgs);
+assertNotNull("Could not load temporary document", xDoc);
+
+XModel xModel = UnoRuntime.queryInterface( XModel.class, xDoc );
+XTitle xTitle = UnoRuntime.queryInterface( XTitle.class, 
xModel.getCurrentController().getFrame() );
+
+String title = xTitle.getTitle();
+assertTrue(title.startsWith("suggestme.odt"));
+
+XDispatchProvider xDisProv = UnoRuntime.queryInterface( 
XDispatchProvider.class, xModel.getCurrentController() );
+prepareQueryAndDispatch( xDisProv, UNO_URL_FOR_CLOSING_DOC );
+}
+
 /** @short sets frame title and checks for infinite recursion
 
 @descr sets frame title. then cycles through default and
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: framework/qa

2018-11-20 Thread Libreoffice Gerrit user
 framework/qa/complex/XTitle/CheckXTitle.java |2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 210fbfbbf88ce6957b816e68bc442402b0668e69
Author: Samuel Mehrbrodt 
AuthorDate: Tue Nov 20 12:37:06 2018 +0100
Commit: Samuel Mehrbrodt 
CommitDate: Tue Nov 20 14:53:21 2018 +0100

Actually run CheckXTitle tests

@Test annotation was missing

Change-Id: I9e58026e5e131b18e35ab81d7927905316b58f11
Reviewed-on: https://gerrit.libreoffice.org/63653
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt 

diff --git a/framework/qa/complex/XTitle/CheckXTitle.java 
b/framework/qa/complex/XTitle/CheckXTitle.java
index 875ccd90a93a..c264c893552a 100644
--- a/framework/qa/complex/XTitle/CheckXTitle.java
+++ b/framework/qa/complex/XTitle/CheckXTitle.java
@@ -155,6 +155,7 @@ public class CheckXTitle
 
 disabled until the waitUntilDispatcherAvailable can be replaced
 */
+@Test
 public void checkTitleNumbers() throws Exception
 {
 PropertyValue[] lArgs = new PropertyValue[1];
@@ -208,6 +209,7 @@ public class CheckXTitle
 
 disabled until the waitUntilDispatcherAvailable can be replaced
 */
+@Test
 public void setTitleAndCheck() throws Exception
 {
 PropertyValue[] lArgs = new PropertyValue[1];
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/CppunitTest_sc_indexenumeration_subtotalfieldsenumeration.mk sc/Module_sc.mk sc/qa

2018-11-20 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst  
  |1 
 qadevOOo/Jar_OOoRunner.mk  
  |1 
 
qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_SubTotalFieldsEnumeration.csv
 |2 
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SubTotalFieldsEnumeration.java  
  |  107 --
 sc/CppunitTest_sc_indexenumeration_subtotalfieldsenumeration.mk
  |   43 
 sc/Module_sc.mk
  |1 
 sc/qa/extras/scindexenumeration_subtotalfieldsenumeration.cxx  
  |  103 +
 sc/qa/unoapi/sc_5.sce  
  |1 
 8 files changed, 147 insertions(+), 112 deletions(-)

New commits:
commit dc0616cda97c5039ae6b46ded001b51c6f9de498
Author: Jens Carl 
AuthorDate: Tue Nov 20 07:22:27 2018 +
Commit: Jens Carl 
CommitDate: Tue Nov 20 10:18:46 2018 +0100

tdf#45904 Move XEnumeration Java tests to C++

Move XEnumeration Java test to C++
for ScIndexEnumeration_SubTotalFieldsEnumeration.

Change-Id: Ibe2b283e99230c5e517eb80858ff31459f2c9844
Reviewed-on: https://gerrit.libreoffice.org/63627
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index d4a6db38b1eb..2d0c3608180f 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -94,7 +94,6 @@ job96=sc.ScFilterDescriptorBase
 job97=sc.ScFunctionListObj
 job98=sc.ScHeaderFieldObj
 job99=sc.ScHeaderFieldsObj
-job115=sc.ScIndexEnumeration_SubTotalFieldsEnumeration
 job117=sc.ScIndexEnumeration_TableChartsEnumeration
 job122=sc.ScLabelRangesObj
 job125=sc.ScScenariosObj
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index b443935bd60e..58ede4e8b815 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -993,7 +993,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextCursor \
 qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextObj \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration \
-qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SubTotalFieldsEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableChartsEnumeration \
 qadevOOo/tests/java/mod/_sc/ScLabelRangesObj \
 qadevOOo/tests/java/mod/_sc/ScModelObj \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_SubTotalFieldsEnumeration.csv
 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_SubTotalFieldsEnumeration.csv
deleted file mode 100644
index 1cba00a04945..
--- 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_SubTotalFieldsEnumeration.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScIndexEnumeration_SubTotalFieldsEnumeration";"com::sun::star::container::XEnumeration";"hasMoreElements()"
-"ScIndexEnumeration_SubTotalFieldsEnumeration";"com::sun::star::container::XEnumeration";"nextElement()"
diff --git 
a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SubTotalFieldsEnumeration.java 
b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SubTotalFieldsEnumeration.java
deleted file mode 100644
index 0854b11989f7..
--- 
a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SubTotalFieldsEnumeration.java
+++ /dev/null
@@ -1,107 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.container.XEnumerationAccess;
-import com.sun.star.container.XIndexAccess;
-import com.sun.star.lang.XComponent;
-import com.sun.star.sheet.GeneralFunction;
-import com.sun.star.sheet.SubTotalColumn;
-import com.sun.star.sheet.XSpreadsheet;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.sheet.XSpreadsheets;
-import com.sun.star.sheet.XSubTotalCalculatable;

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/CppunitTest_sc_indexenumeration_spreadsheetviewpanesenumeration.mk sc/Module_sc.mk sc/qa

2018-11-20 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst  
|1 
 qadevOOo/Jar_OOoRunner.mk  
|1 
 
qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_SpreadsheetViewPanesEnumeration.csv
 |2 
 
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetViewPanesEnumeration.java
|   88 -
 sc/CppunitTest_sc_indexenumeration_spreadsheetviewpanesenumeration.mk  
|   43 
 sc/Module_sc.mk
|1 
 sc/qa/extras/scindexenumeration_spreadsheetviewpanesenumeration.cxx
|   91 ++
 sc/qa/unoapi/sc_5.sce  
|1 
 8 files changed, 135 insertions(+), 93 deletions(-)

New commits:
commit 0c627e494052f8717856712358763eb670b5a5fb
Author: Jens Carl 
AuthorDate: Tue Nov 20 06:56:51 2018 +
Commit: Jens Carl 
CommitDate: Tue Nov 20 08:59:37 2018 +0100

tdf#45904 Move XEnumeration Java tests to C++

Move XEnumeration Java tests to C++
for ScIndexEnumeration_SpreadsheetViewPanesEnumeration.

Change-Id: I03c05cd894bf84816618ac28deb01ecb2fd8779e
Reviewed-on: https://gerrit.libreoffice.org/63622
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index fdf7f3030838..d4a6db38b1eb 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -94,7 +94,6 @@ job96=sc.ScFilterDescriptorBase
 job97=sc.ScFunctionListObj
 job98=sc.ScHeaderFieldObj
 job99=sc.ScHeaderFieldsObj
-job114=sc.ScIndexEnumeration_SpreadsheetViewPanesEnumeration
 job115=sc.ScIndexEnumeration_SubTotalFieldsEnumeration
 job117=sc.ScIndexEnumeration_TableChartsEnumeration
 job122=sc.ScLabelRangesObj
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 4cf8ba0bfdab..b443935bd60e 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -993,7 +993,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextCursor \
 qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextObj \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration \
-
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetViewPanesEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SubTotalFieldsEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableChartsEnumeration \
 qadevOOo/tests/java/mod/_sc/ScLabelRangesObj \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_SpreadsheetViewPanesEnumeration.csv
 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_SpreadsheetViewPanesEnumeration.csv
deleted file mode 100644
index 03d0ea5a3fb6..
--- 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_SpreadsheetViewPanesEnumeration.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScIndexEnumeration_SpreadsheetViewPanesEnumeration";"com::sun::star::container::XEnumeration";"hasMoreElements()"
-"ScIndexEnumeration_SpreadsheetViewPanesEnumeration";"com::sun::star::container::XEnumeration";"nextElement()"
diff --git 
a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetViewPanesEnumeration.java
 
b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetViewPanesEnumeration.java
deleted file mode 100644
index 11050dd12994..
--- 
a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetViewPanesEnumeration.java
+++ /dev/null
@@ -1,88 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.container.XEnumerationAccess;
-import com.sun.star.container.XIndexAccess;
-import com.sun.star.frame.XController;
-import com.sun.star.frame.XModel;
-import com.sun.star.lang.XComponent;
-import 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/CppunitTest_sc_indexenumeration_spreadsheetsenumeration.mk sc/Module_sc.mk sc/qa

2018-11-19 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst  
|1 
 qadevOOo/Jar_OOoRunner.mk  
|1 
 
qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_SpreadsheetsEnumeration.csv
 |2 
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetsEnumeration.java
|   81 -
 sc/CppunitTest_sc_indexenumeration_spreadsheetsenumeration.mk  
|   43 +
 sc/Module_sc.mk
|1 
 sc/qa/extras/scindexenumeration_spreadsheetsenumeration.cxx
|   83 ++
 sc/qa/unoapi/sc_5.sce  
|1 
 8 files changed, 127 insertions(+), 86 deletions(-)

New commits:
commit 20a7d7af616899f39824d546a325c7673506b0b2
Author: Jens Carl 
AuthorDate: Tue Nov 20 06:41:34 2018 +
Commit: Jens Carl 
CommitDate: Tue Nov 20 08:45:17 2018 +0100

tdf#45904 Move XEnumeration Java tests to C++

Move XEnumeration Java tests to C++
for ScIndexEnumeration_SpreadsheetsEnumeration.

Change-Id: Id6fbc4dab54e2b50be42df7ade912a5aaf1cb97c
Reviewed-on: https://gerrit.libreoffice.org/63621
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 41034a2bb257..fdf7f3030838 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -94,7 +94,6 @@ job96=sc.ScFilterDescriptorBase
 job97=sc.ScFunctionListObj
 job98=sc.ScHeaderFieldObj
 job99=sc.ScHeaderFieldsObj
-job113=sc.ScIndexEnumeration_SpreadsheetsEnumeration
 job114=sc.ScIndexEnumeration_SpreadsheetViewPanesEnumeration
 job115=sc.ScIndexEnumeration_SubTotalFieldsEnumeration
 job117=sc.ScIndexEnumeration_TableChartsEnumeration
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 391d216258ca..4cf8ba0bfdab 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -993,7 +993,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextCursor \
 qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextObj \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration \
-qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetsEnumeration \
 
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetViewPanesEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SubTotalFieldsEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableChartsEnumeration \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_SpreadsheetsEnumeration.csv
 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_SpreadsheetsEnumeration.csv
deleted file mode 100644
index d398ac47c6b5..
--- 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_SpreadsheetsEnumeration.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScIndexEnumeration_SpreadsheetsEnumeration";"com::sun::star::container::XEnumeration";"hasMoreElements()"
-"ScIndexEnumeration_SpreadsheetsEnumeration";"com::sun::star::container::XEnumeration";"nextElement()"
diff --git 
a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetsEnumeration.java 
b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetsEnumeration.java
deleted file mode 100644
index 72617bb55e74..
--- 
a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetsEnumeration.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.container.XEnumerationAccess;
-import com.sun.star.lang.XComponent;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.sheet.XSpreadsheets;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-public class ScIndexEnumeration_SpreadsheetsEnumeration 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/CppunitTest_sc_indexenumeration_functiondescriptionenumeration.mk sc/Module_sc.mk sc/qa

2018-11-19 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst  
   |1 
 qadevOOo/Jar_OOoRunner.mk  
   |1 
 
qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_FunctionDescriptionEnumeration.csv
 |2 
 
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_FunctionDescriptionEnumeration.java
|   90 --
 sc/CppunitTest_sc_indexenumeration_functiondescriptionenumeration.mk   
   |   43 
 sc/Module_sc.mk
   |1 
 sc/qa/extras/scindexenumeration_functiondescriptionenumeration.cxx 
   |   85 +
 sc/qa/unoapi/sc_5.sce  
   |1 
 8 files changed, 129 insertions(+), 95 deletions(-)

New commits:
commit 242ea8eea8cf1d0634617aebfb2fffce45c888c4
Author: Jens Carl 
AuthorDate: Mon Nov 19 19:01:32 2018 +
Commit: Jens Carl 
CommitDate: Tue Nov 20 06:53:15 2018 +0100

tdf#45904 Move XEnumeration Java tests to C++

Move XEnumeration Java tests to C++
for ScIndexEnumeration_FunctionDescriptionEnumeration.

Change-Id: I6c15abff293996a6bac8e4a6c0004853fae13990
Reviewed-on: https://gerrit.libreoffice.org/63604
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 4086d1be67e5..3e7a3e935387 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -94,7 +94,6 @@ job96=sc.ScFilterDescriptorBase
 job97=sc.ScFunctionListObj
 job98=sc.ScHeaderFieldObj
 job99=sc.ScHeaderFieldsObj
-job107=sc.ScIndexEnumeration_FunctionDescriptionEnumeration
 job111=sc.ScIndexEnumeration_SheetCellRangesEnumeration
 job113=sc.ScIndexEnumeration_SpreadsheetsEnumeration
 job114=sc.ScIndexEnumeration_SpreadsheetViewPanesEnumeration
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 1de4559d9134..3b4af41d75d7 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -993,7 +993,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextCursor \
 qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextObj \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration \
-
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_FunctionDescriptionEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetCellRangesEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetsEnumeration \
 
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetViewPanesEnumeration \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_FunctionDescriptionEnumeration.csv
 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_FunctionDescriptionEnumeration.csv
deleted file mode 100644
index b52ab0a709c8..
--- 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_FunctionDescriptionEnumeration.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScIndexEnumeration_FunctionDescriptionEnumeration";"com::sun::star::container::XEnumeration";"hasMoreElements()"
-"ScIndexEnumeration_FunctionDescriptionEnumeration";"com::sun::star::container::XEnumeration";"nextElement()"
diff --git 
a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_FunctionDescriptionEnumeration.java
 
b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_FunctionDescriptionEnumeration.java
deleted file mode 100644
index 0e0f75ad9e2e..
--- 
a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_FunctionDescriptionEnumeration.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.container.XEnumerationAccess;
-import com.sun.star.lang.XComponent;
-import com.sun.star.lang.XMultiServiceFactory;
-import 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/CppunitTest_sc_indexenumeration_databaserangesenumeration.mk sc/Module_sc.mk sc/qa

2018-11-19 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst  
  |1 
 qadevOOo/Jar_OOoRunner.mk  
  |1 
 
qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_DatabaseRangesEnumeration.csv
 |2 
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DatabaseRangesEnumeration.java  
  |  101 --
 sc/CppunitTest_sc_indexenumeration_databaserangesenumeration.mk
  |   43 
 sc/Module_sc.mk
  |1 
 sc/qa/extras/scindexenumeration_databaserangesenumeration.cxx  
  |   89 
 sc/qa/unoapi/sc_5.sce  
  |1 
 8 files changed, 133 insertions(+), 106 deletions(-)

New commits:
commit 4e467724fcea4bfc9cd44261c91f07d8161d3870
Author: Jens Carl 
AuthorDate: Mon Nov 19 18:41:14 2018 +
Commit: Jens Carl 
CommitDate: Mon Nov 19 21:54:41 2018 +0100

tdf#45904 Move XEnumeration Java tests to C++

Move XEnumeration Java tests to C++
for ScIndexEnumeration_DatabaseRangesEnumeration.

Change-Id: I33fac410b4b05f88dad45f859ae466fabb8303fc
Reviewed-on: https://gerrit.libreoffice.org/63592
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 9752c0df1554..4086d1be67e5 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -94,7 +94,6 @@ job96=sc.ScFilterDescriptorBase
 job97=sc.ScFunctionListObj
 job98=sc.ScHeaderFieldObj
 job99=sc.ScHeaderFieldsObj
-job103=sc.ScIndexEnumeration_DatabaseRangesEnumeration
 job107=sc.ScIndexEnumeration_FunctionDescriptionEnumeration
 job111=sc.ScIndexEnumeration_SheetCellRangesEnumeration
 job113=sc.ScIndexEnumeration_SpreadsheetsEnumeration
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index b91ea864ca7e..1de4559d9134 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -992,7 +992,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScHeaderFieldsObj \
 qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextCursor \
 qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextObj \
-qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DatabaseRangesEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration \
 
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_FunctionDescriptionEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetCellRangesEnumeration \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_DatabaseRangesEnumeration.csv
 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_DatabaseRangesEnumeration.csv
deleted file mode 100644
index 29d7fe9f2a09..
--- 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_DatabaseRangesEnumeration.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScIndexEnumeration_DatabaseRangesEnumeration";"com::sun::star::container::XEnumeration";"hasMoreElements()"
-"ScIndexEnumeration_DatabaseRangesEnumeration";"com::sun::star::container::XEnumeration";"nextElement()"
diff --git 
a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DatabaseRangesEnumeration.java 
b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DatabaseRangesEnumeration.java
deleted file mode 100644
index 8fbf7f548eec..
--- 
a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DatabaseRangesEnumeration.java
+++ /dev/null
@@ -1,101 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.beans.XPropertySet;
-import com.sun.star.container.XEnumerationAccess;
-import com.sun.star.lang.XComponent;
-import com.sun.star.sheet.XDatabaseRanges;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.table.CellRangeAddress;
-import 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/CppunitTest_sc_indexenumeration_cellarealinksenumeration.mk sc/Module_sc.mk sc/qa

2018-11-19 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst  
 |1 
 qadevOOo/Jar_OOoRunner.mk  
 |1 
 
qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_CellAreaLinksEnumeration.csv
 |2 
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAreaLinksEnumeration.java   
 |   99 --
 sc/CppunitTest_sc_indexenumeration_cellarealinksenumeration.mk 
 |   43 
 sc/Module_sc.mk
 |1 
 sc/qa/extras/scindexenumeration_cellarealinksenumeration.cxx   
 |   90 +
 sc/qa/unoapi/sc_4.sce  
 |1 
 8 files changed, 134 insertions(+), 104 deletions(-)

New commits:
commit 9cc6b8ebe366a909aa8406f26c6775554c65b439
Author: Jens Carl 
AuthorDate: Mon Nov 19 17:41:49 2018 +
Commit: Jens Carl 
CommitDate: Mon Nov 19 19:41:42 2018 +0100

tdf#45904 Move XEnumeration Java tests to C++

Move XEnumeration Java tests to C++
for ScIndexEnumeration_CellAreaLinksEnumeration.

Change-Id: I0cbb97689522d9ff5d3ba0799b6d1e3f215cf533
Reviewed-on: https://gerrit.libreoffice.org/63590
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index a5bf424eb9ed..9752c0df1554 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -94,7 +94,6 @@ job96=sc.ScFilterDescriptorBase
 job97=sc.ScFunctionListObj
 job98=sc.ScHeaderFieldObj
 job99=sc.ScHeaderFieldsObj
-job102=sc.ScIndexEnumeration_CellAreaLinksEnumeration
 job103=sc.ScIndexEnumeration_DatabaseRangesEnumeration
 job107=sc.ScIndexEnumeration_FunctionDescriptionEnumeration
 job111=sc.ScIndexEnumeration_SheetCellRangesEnumeration
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 7649da875180..b91ea864ca7e 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -992,7 +992,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScHeaderFieldsObj \
 qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextCursor \
 qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextObj \
-qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAreaLinksEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DatabaseRangesEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration \
 
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_FunctionDescriptionEnumeration \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_CellAreaLinksEnumeration.csv
 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_CellAreaLinksEnumeration.csv
deleted file mode 100644
index c39b1fe9fa07..
--- 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_CellAreaLinksEnumeration.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScIndexEnumeration_CellAreaLinksEnumeration";"com::sun::star::container::XEnumeration";"hasMoreElements()"
-"ScIndexEnumeration_CellAreaLinksEnumeration";"com::sun::star::container::XEnumeration";"nextElement()"
diff --git 
a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAreaLinksEnumeration.java 
b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAreaLinksEnumeration.java
deleted file mode 100644
index 95e6f4216a70..
--- 
a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAreaLinksEnumeration.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.beans.XPropertySet;
-import com.sun.star.container.XEnumerationAccess;
-import com.sun.star.lang.XComponent;
-import com.sun.star.sheet.XAreaLinks;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.table.CellAddress;
-import com.sun.star.uno.AnyConverter;
-import 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/CppunitTest_sc_indexenumeration_cellannotationsenumeration.mk sc/Module_sc.mk sc/qa

2018-11-19 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst  
   |1 
 framework/qa/complex/api_internal/tests.sce
   |1 
 qadevOOo/Jar_OOoRunner.mk  
   |1 
 
qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_CellAnnotationsEnumeration.csv
 |2 
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAnnotationsEnumeration.java 
   |  102 --
 sc/CppunitTest_sc_indexenumeration_cellannotationsenumeration.mk   
   |   43 
 sc/Module_sc.mk
   |1 
 sc/qa/extras/scindexenumeration_cellannotationsenumeration.cxx 
   |   97 +
 sc/qa/unoapi/sc_4.sce  
   |1 
 9 files changed, 141 insertions(+), 108 deletions(-)

New commits:
commit 37455f8f0109ac838e2dde64118d7eb736958526
Author: Jens Carl 
AuthorDate: Mon Nov 19 08:28:10 2018 +
Commit: Jens Carl 
CommitDate: Mon Nov 19 18:04:47 2018 +0100

tdf#45904 Move XEnumeration Java tests to C++

Move XEnumeration Java tests to C++
for ScIndexEnumeration_CellAnnotationsEnumeration.

Change-Id: I06ad265c09fa4c29e056527c79c0470634abaabc
Reviewed-on: https://gerrit.libreoffice.org/63549
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 0b7eb0321b04..a5bf424eb9ed 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -94,7 +94,6 @@ job96=sc.ScFilterDescriptorBase
 job97=sc.ScFunctionListObj
 job98=sc.ScHeaderFieldObj
 job99=sc.ScHeaderFieldsObj
-job101=sc.ScIndexEnumeration_CellAnnotationsEnumeration
 job102=sc.ScIndexEnumeration_CellAreaLinksEnumeration
 job103=sc.ScIndexEnumeration_DatabaseRangesEnumeration
 job107=sc.ScIndexEnumeration_FunctionDescriptionEnumeration
diff --git a/framework/qa/complex/api_internal/tests.sce 
b/framework/qa/complex/api_internal/tests.sce
index 8458f33067ad..adc5db8fb296 100644
--- a/framework/qa/complex/api_internal/tests.sce
+++ b/framework/qa/complex/api_internal/tests.sce
@@ -1,3 +1,2 @@
 job1=cfgmgr2.AdministrationProvider
-job2=sc.ScIndexEnumeration_CellAnnotationsEnumeration
 job3=sw.SwXBodyText
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 4820e4b04851..7649da875180 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -992,7 +992,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScHeaderFieldsObj \
 qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextCursor \
 qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextObj \
-qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAnnotationsEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAreaLinksEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DatabaseRangesEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_CellAnnotationsEnumeration.csv
 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_CellAnnotationsEnumeration.csv
deleted file mode 100644
index f68696975e86..
--- 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_CellAnnotationsEnumeration.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScIndexEnumeration_CellAnnotationsEnumeration";"com::sun::star::container::XEnumeration";"hasMoreElements()"
-"ScIndexEnumeration_CellAnnotationsEnumeration";"com::sun::star::container::XEnumeration";"nextElement()"
diff --git 
a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAnnotationsEnumeration.java
 
b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAnnotationsEnumeration.java
deleted file mode 100644
index e47b1a5f4389..
--- 
a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAnnotationsEnumeration.java
+++ /dev/null
@@ -1,102 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/CppunitTest_sc_indexenumeration_namedrangesenumeration.mk sc/Module_sc.mk sc/qa

2018-11-18 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst  
   |1 
 qadevOOo/Jar_OOoRunner.mk  
   |1 
 
qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_NamedRangesEnumeration.csv
 |2 
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_NamedRangesEnumeration.java 
   |  105 --
 sc/CppunitTest_sc_indexenumeration_namedrangesenumeration.mk   
   |   43 
 sc/Module_sc.mk
   |1 
 sc/qa/extras/scindexenumeration_namedrangesenumeration.cxx 
   |   97 +
 sc/qa/unoapi/sc_5.sce  
   |1 
 8 files changed, 141 insertions(+), 110 deletions(-)

New commits:
commit e1695ce5df353f2dc1f7aa2aa9f261cc70526f37
Author: Jens Carl 
AuthorDate: Sun Nov 18 07:32:52 2018 +
Commit: Jens Carl 
CommitDate: Sun Nov 18 22:03:38 2018 +0100

tdf#45904 Move XEnumeration Java tests to C++

Move XEnumeration Java tests to C++
for ScIndexEnumeration_NamedRangesEnumeration.

Change-Id: I7cbe9fbeddd4d8ecbccddfdfd14cdcae01a06684
Reviewed-on: https://gerrit.libreoffice.org/63517
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index f0f8e67a1ca7..0b7eb0321b04 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -98,7 +98,6 @@ job101=sc.ScIndexEnumeration_CellAnnotationsEnumeration
 job102=sc.ScIndexEnumeration_CellAreaLinksEnumeration
 job103=sc.ScIndexEnumeration_DatabaseRangesEnumeration
 job107=sc.ScIndexEnumeration_FunctionDescriptionEnumeration
-job109=sc.ScIndexEnumeration_NamedRangesEnumeration
 job111=sc.ScIndexEnumeration_SheetCellRangesEnumeration
 job113=sc.ScIndexEnumeration_SpreadsheetsEnumeration
 job114=sc.ScIndexEnumeration_SpreadsheetViewPanesEnumeration
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index e559a5a80e47..4820e4b04851 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -997,7 +997,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DatabaseRangesEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration \
 
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_FunctionDescriptionEnumeration \
-qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_NamedRangesEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetCellRangesEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetsEnumeration \
 
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetViewPanesEnumeration \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_NamedRangesEnumeration.csv
 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_NamedRangesEnumeration.csv
deleted file mode 100644
index a325ed597e2e..
--- 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_NamedRangesEnumeration.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScIndexEnumeration_NamedRangesEnumeration";"com::sun::star::container::XEnumeration";"hasMoreElements()"
-"ScIndexEnumeration_NamedRangesEnumeration";"com::sun::star::container::XEnumeration";"nextElement()"
diff --git 
a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_NamedRangesEnumeration.java 
b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_NamedRangesEnumeration.java
deleted file mode 100644
index cacd7e6b801c..
--- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_NamedRangesEnumeration.java
+++ /dev/null
@@ -1,105 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.beans.XPropertySet;
-import com.sun.star.container.XEnumerationAccess;
-import com.sun.star.lang.XComponent;
-import 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/CppunitTest_sc_indexenumeration_sheetlinksenumeration.mk sc/Module_sc.mk sc/qa

2018-11-17 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst  
  |1 
 qadevOOo/Jar_OOoRunner.mk  
  |1 
 
qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_SheetLinksEnumeration.csv
 |2 
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetLinksEnumeration.java  
  |  108 --
 sc/CppunitTest_sc_indexenumeration_sheetlinksenumeration.mk
  |   43 +++
 sc/Module_sc.mk
  |1 
 sc/qa/extras/scindexenumeration_sheetlinksenumeration.cxx  
  |  102 +
 sc/qa/unoapi/sc_5.sce  
  |1 
 8 files changed, 146 insertions(+), 113 deletions(-)

New commits:
commit cd52e2775773f3628177da4551d9f18e83740910
Author: Jens Carl 
AuthorDate: Sun Nov 18 03:51:29 2018 +
Commit: Jens Carl 
CommitDate: Sun Nov 18 08:05:35 2018 +0100

tdf#45904 Move XEnumeration Java tests to C++

Move XEnumeration Java tests to C++
for ScIndexEnumeration_SheetLinksEnumeration.

Change-Id: I19bd376cc7921c9dcb7b08394c9c299c336921e3
Reviewed-on: https://gerrit.libreoffice.org/63511
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index eaf424757aa0..0e842eed2d31 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -101,7 +101,6 @@ job107=sc.ScIndexEnumeration_FunctionDescriptionEnumeration
 job108=sc.ScIndexEnumeration_LabelRangesEnumeration
 job109=sc.ScIndexEnumeration_NamedRangesEnumeration
 job111=sc.ScIndexEnumeration_SheetCellRangesEnumeration
-job112=sc.ScIndexEnumeration_SheetLinksEnumeration
 job113=sc.ScIndexEnumeration_SpreadsheetsEnumeration
 job114=sc.ScIndexEnumeration_SpreadsheetViewPanesEnumeration
 job115=sc.ScIndexEnumeration_SubTotalFieldsEnumeration
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 4f33139ccedf..65743536f489 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -1000,7 +1000,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_LabelRangesEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_NamedRangesEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetCellRangesEnumeration \
-qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetLinksEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetsEnumeration \
 
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetViewPanesEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SubTotalFieldsEnumeration \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_SheetLinksEnumeration.csv
 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_SheetLinksEnumeration.csv
deleted file mode 100644
index 5fdf9c037db7..
--- 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_SheetLinksEnumeration.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScIndexEnumeration_SheetLinksEnumeration";"com::sun::star::container::XEnumeration";"hasMoreElements()"
-"ScIndexEnumeration_SheetLinksEnumeration";"com::sun::star::container::XEnumeration";"nextElement()"
diff --git 
a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetLinksEnumeration.java 
b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetLinksEnumeration.java
deleted file mode 100644
index ec1cdb149ca4..
--- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetLinksEnumeration.java
+++ /dev/null
@@ -1,108 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.beans.XPropertySet;
-import com.sun.star.container.XEnumerationAccess;
-import com.sun.star.container.XIndexAccess;
-import com.sun.star.lang.XComponent;
-import 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/CppunitTest_sc_indexenumeration_tableconditionalentryenumeration.mk sc/Module_sc.mk sc/qa

2018-11-16 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst  
 |1 
 qadevOOo/Jar_OOoRunner.mk  
 |1 
 
qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_TableConditionalEntryEnumeration.csv
 |2 
 
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableConditionalEntryEnumeration.java
|  150 --
 sc/CppunitTest_sc_indexenumeration_tableconditionalentryenumeration.mk 
 |   43 ++
 sc/Module_sc.mk
 |1 
 sc/qa/extras/scindexenumeration_tableconditionalentryenumeration.cxx   
 |  123 
 sc/qa/unoapi/sc_6.sce  
 |1 
 8 files changed, 167 insertions(+), 155 deletions(-)

New commits:
commit 3b7faa73420550d508d480ed70146468dfadb268
Author: Jens Carl 
AuthorDate: Sat Nov 17 00:50:38 2018 +
Commit: Jens Carl 
CommitDate: Sat Nov 17 06:32:01 2018 +0100

tdf#45904 Move XEnumeration Java tests to C++

Move XEnumeration Java tests to C++ for
ScIndexEnumeration_TableConditionalEntryEnumeration.

Change-Id: I205a224160af39bba611cc4af76286082dd7966f
Reviewed-on: https://gerrit.libreoffice.org/63486
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 6ecbb2757188..a675e8a1dfaf 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -109,7 +109,6 @@ job114=sc.ScIndexEnumeration_SpreadsheetViewPanesEnumeration
 job115=sc.ScIndexEnumeration_SubTotalFieldsEnumeration
 job116=sc.ScIndexEnumeration_TableAutoFormatEnumeration
 job117=sc.ScIndexEnumeration_TableChartsEnumeration
-job119=sc.ScIndexEnumeration_TableConditionalEntryEnumeration
 job122=sc.ScLabelRangesObj
 job125=sc.ScScenariosObj
 job126=sc.ScSheetLinkObj
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index b9f2d912a109..fa916a29a0ad 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -1008,7 +1008,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SubTotalFieldsEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableAutoFormatEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableChartsEnumeration \
-
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableConditionalEntryEnumeration 
\
 qadevOOo/tests/java/mod/_sc/ScLabelRangesObj \
 qadevOOo/tests/java/mod/_sc/ScModelObj \
 qadevOOo/tests/java/mod/_sc/ScNamedRangesObj \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_TableConditionalEntryEnumeration.csv
 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_TableConditionalEntryEnumeration.csv
deleted file mode 100644
index da66a948dec2..
--- 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_TableConditionalEntryEnumeration.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScIndexEnumeration_TableConditionalEntryEnumeration";"com::sun::star::container::XEnumeration";"hasMoreElements()"
-"ScIndexEnumeration_TableConditionalEntryEnumeration";"com::sun::star::container::XEnumeration";"nextElement()"
diff --git 
a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableConditionalEntryEnumeration.java
 
b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableConditionalEntryEnumeration.java
deleted file mode 100644
index bed5fa04c677..
--- 
a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableConditionalEntryEnumeration.java
+++ /dev/null
@@ -1,150 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-import util.utils;
-
-import com.sun.star.beans.PropertyValue;
-import com.sun.star.beans.XPropertySet;
-import com.sun.star.container.XEnumerationAccess;
-import 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/CppunitTest_sc_indexenumeration_tablecolumnsenumeration.mk sc/Module_sc.mk sc/qa

2018-11-16 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst  
|1 
 qadevOOo/Jar_OOoRunner.mk  
|1 
 
qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_TableColumnsEnumeration.csv
 |2 
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableColumnsEnumeration.java
|   99 --
 sc/CppunitTest_sc_indexenumeration_tablecolumnsenumeration.mk  
|   43 
 sc/Module_sc.mk
|1 
 sc/qa/extras/scindexenumeration_tablecolumnsenumeration.cxx
|   94 +
 sc/qa/unoapi/sc_6.sce  
|1 
 8 files changed, 138 insertions(+), 104 deletions(-)

New commits:
commit a9cabfed5ea019c2e69220d924d000688bb5c935
Author: Jens Carl 
AuthorDate: Fri Nov 16 22:03:39 2018 +
Commit: Jens Carl 
CommitDate: Sat Nov 17 00:40:34 2018 +0100

tdf#45904 Move XEnumeration Java tests to C++

Move XEnumeration Java tests to C++ for
ScIndexEnumeration_TableColumnsEnumeration.

Change-Id: Id4a3f78942b3bed2a09f617b961507a01374f455
Reviewed-on: https://gerrit.libreoffice.org/63485
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 3ca131acc6dd..6ecbb2757188 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -109,7 +109,6 @@ job114=sc.ScIndexEnumeration_SpreadsheetViewPanesEnumeration
 job115=sc.ScIndexEnumeration_SubTotalFieldsEnumeration
 job116=sc.ScIndexEnumeration_TableAutoFormatEnumeration
 job117=sc.ScIndexEnumeration_TableChartsEnumeration
-job118=sc.ScIndexEnumeration_TableColumnsEnumeration
 job119=sc.ScIndexEnumeration_TableConditionalEntryEnumeration
 job122=sc.ScLabelRangesObj
 job125=sc.ScScenariosObj
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 8c7409b3161b..b9f2d912a109 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -1008,7 +1008,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SubTotalFieldsEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableAutoFormatEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableChartsEnumeration \
-qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableColumnsEnumeration \
 
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableConditionalEntryEnumeration 
\
 qadevOOo/tests/java/mod/_sc/ScLabelRangesObj \
 qadevOOo/tests/java/mod/_sc/ScModelObj \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_TableColumnsEnumeration.csv
 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_TableColumnsEnumeration.csv
deleted file mode 100644
index 87790be81cb9..
--- 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_TableColumnsEnumeration.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScIndexEnumeration_TableColumnsEnumeration";"com::sun::star::container::XEnumeration";"hasMoreElements()"
-"ScIndexEnumeration_TableColumnsEnumeration";"com::sun::star::container::XEnumeration";"nextElement()"
diff --git 
a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableColumnsEnumeration.java 
b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableColumnsEnumeration.java
deleted file mode 100644
index 169f73be9fac..
--- 
a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableColumnsEnumeration.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.container.XEnumerationAccess;
-import com.sun.star.container.XNameAccess;
-import com.sun.star.lang.XComponent;
-import com.sun.star.sheet.XSpreadsheet;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.sheet.XSpreadsheets;

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/CppunitTest_sc_indexenumeration_textfieldenumeration.mk sc/Module_sc.mk sc/qa

2018-11-16 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst  
 |1 
 qadevOOo/Jar_OOoRunner.mk  
 |1 
 
qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_TextFieldEnumeration.csv
 |2 
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TextFieldEnumeration.java   
 |  128 --
 sc/CppunitTest_sc_indexenumeration_textfieldenumeration.mk 
 |   43 +++
 sc/Module_sc.mk
 |1 
 sc/qa/extras/scindexenumeration_textfieldenumeration.cxx   
 |  102 +++
 sc/qa/unoapi/sc_6.sce  
 |1 
 8 files changed, 146 insertions(+), 133 deletions(-)

New commits:
commit fb036ee652cf2284a70036b3bf2948ef966cffb0
Author: Jens Carl 
AuthorDate: Fri Nov 16 21:53:10 2018 +
Commit: Jens Carl 
CommitDate: Sat Nov 17 00:40:20 2018 +0100

tdf#45904 Move XEnumeration Java tests to C++

Move XEnumeration Java tests to C++ for
ScIndexEnumeration_TextFieldEnumeration.

Change-Id: I92e8c4779a22b6da1dabf5a24bbb76fe20ec398c
Reviewed-on: https://gerrit.libreoffice.org/63484
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 60ea1a45e2d1..3ca131acc6dd 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -111,7 +111,6 @@ job116=sc.ScIndexEnumeration_TableAutoFormatEnumeration
 job117=sc.ScIndexEnumeration_TableChartsEnumeration
 job118=sc.ScIndexEnumeration_TableColumnsEnumeration
 job119=sc.ScIndexEnumeration_TableConditionalEntryEnumeration
-job120=sc.ScIndexEnumeration_TextFieldEnumeration
 job122=sc.ScLabelRangesObj
 job125=sc.ScScenariosObj
 job126=sc.ScSheetLinkObj
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 12f0796db58a..8c7409b3161b 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -1010,7 +1010,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableChartsEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableColumnsEnumeration \
 
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableConditionalEntryEnumeration 
\
-qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TextFieldEnumeration \
 qadevOOo/tests/java/mod/_sc/ScLabelRangesObj \
 qadevOOo/tests/java/mod/_sc/ScModelObj \
 qadevOOo/tests/java/mod/_sc/ScNamedRangesObj \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_TextFieldEnumeration.csv
 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_TextFieldEnumeration.csv
deleted file mode 100644
index f01b4c52b1f7..
--- 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_TextFieldEnumeration.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScIndexEnumeration_TextFieldEnumeration";"com::sun::star::container::XEnumeration";"hasMoreElements()"
-"ScIndexEnumeration_TextFieldEnumeration";"com::sun::star::container::XEnumeration";"nextElement()"
diff --git 
a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TextFieldEnumeration.java 
b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TextFieldEnumeration.java
deleted file mode 100644
index 632a08dc433b..
--- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TextFieldEnumeration.java
+++ /dev/null
@@ -1,128 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.container.XIndexAccess;
-import com.sun.star.lang.XComponent;
-import com.sun.star.lang.XMultiServiceFactory;
-import com.sun.star.sheet.XSpreadsheet;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.sheet.XSpreadsheets;
-import com.sun.star.table.XCell;
-import com.sun.star.text.XText;
-import com.sun.star.text.XTextContent;
-import 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/CppunitTest_sc_indexenumeration_scenariosenumeration.mk sc/Module_sc.mk sc/qa

2018-11-15 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst  
 |1 
 qadevOOo/Jar_OOoRunner.mk  
 |1 
 
qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_ScenariosEnumeration.csv
 |2 
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_ScenariosEnumeration.java   
 |  116 --
 sc/CppunitTest_sc_indexenumeration_scenariosenumeration.mk 
 |   43 +++
 sc/Module_sc.mk
 |1 
 sc/qa/extras/scindexenumeration_scenariosenumeration.cxx   
 |  106 +
 sc/qa/unoapi/sc_5.sce  
 |1 
 8 files changed, 150 insertions(+), 121 deletions(-)

New commits:
commit 32a8c55c9746f27db6a825372913e639d67c3476
Author: Jens Carl 
AuthorDate: Thu Nov 15 07:53:58 2018 +
Commit: Jens Carl 
CommitDate: Thu Nov 15 17:50:49 2018 +0100

tdf#45904 Move XEnumeration Java test to C++

Move XEnumeration Java tests for
ScIndexEnumeration_ScenariosEnumeration to C++;

Change-Id: Ia778f644cbb2836e6c6bfc12ae389cda3420e5b2
Reviewed-on: https://gerrit.libreoffice.org/63399
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 5e1bce8e72ed..60ea1a45e2d1 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -102,7 +102,6 @@ job105=sc.ScIndexEnumeration_DataPilotTablesEnumeration
 job107=sc.ScIndexEnumeration_FunctionDescriptionEnumeration
 job108=sc.ScIndexEnumeration_LabelRangesEnumeration
 job109=sc.ScIndexEnumeration_NamedRangesEnumeration
-job110=sc.ScIndexEnumeration_ScenariosEnumeration
 job111=sc.ScIndexEnumeration_SheetCellRangesEnumeration
 job112=sc.ScIndexEnumeration_SheetLinksEnumeration
 job113=sc.ScIndexEnumeration_SpreadsheetsEnumeration
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index ddc54bd13ceb..ef5d60294bd8 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -1001,7 +1001,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_FunctionDescriptionEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_LabelRangesEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_NamedRangesEnumeration \
-qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_ScenariosEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetCellRangesEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetLinksEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetsEnumeration \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_ScenariosEnumeration.csv
 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_ScenariosEnumeration.csv
deleted file mode 100644
index ef8fb10de08f..
--- 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_ScenariosEnumeration.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScIndexEnumeration_ScenariosEnumeration";"com::sun::star::container::XEnumeration";"hasMoreElements()"
-"ScIndexEnumeration_ScenariosEnumeration";"com::sun::star::container::XEnumeration";"nextElement()"
diff --git 
a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_ScenariosEnumeration.java 
b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_ScenariosEnumeration.java
deleted file mode 100644
index 6c0385ea9c8b..
--- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_ScenariosEnumeration.java
+++ /dev/null
@@ -1,116 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.StatusException;
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.container.XEnumerationAccess;
-import com.sun.star.container.XIndexAccess;
-import com.sun.star.lang.XComponent;
-import com.sun.star.sheet.XCellRangeAddressable;
-import 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/CppunitTest_sc_indexenumeration_ddelinksenumeration.mk sc/Module_sc.mk sc/qa

2018-11-14 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst  
|1 
 qadevOOo/Jar_OOoRunner.mk  
|1 
 
qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_DDELinksEnumeration.csv
 |2 
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DDELinksEnumeration.java
|  127 --
 sc/CppunitTest_sc_indexenumeration_ddelinksenumeration.mk  
|   43 +++
 sc/Module_sc.mk
|1 
 sc/qa/extras/scindexenumeration_ddelinksenumeration.cxx
|  101 +++
 sc/qa/unoapi/sc_3.sce  
|1 
 8 files changed, 145 insertions(+), 132 deletions(-)

New commits:
commit f559951fcbdb09a20647eedd342d0a40467eadcd
Author: Jens Carl 
AuthorDate: Wed Nov 14 14:58:38 2018 -0800
Commit: Jens Carl 
CommitDate: Thu Nov 15 02:05:27 2018 +0100

tdf#45904 Move XEnumeration tests to C++

Move XEnumeration Java tests to C++ for
ScIndexEnumeration_DDELinksEnumeration.

Change-Id: I586fbd67f6c862f529461265536e68fea84b8c17
Reviewed-on: https://gerrit.libreoffice.org/63394
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 30f27b5ac21c..5e1bce8e72ed 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -99,7 +99,6 @@ job102=sc.ScIndexEnumeration_CellAreaLinksEnumeration
 job103=sc.ScIndexEnumeration_DatabaseRangesEnumeration
 job104=sc.ScIndexEnumeration_DataPilotFieldsEnumeration
 job105=sc.ScIndexEnumeration_DataPilotTablesEnumeration
-job106=sc.ScIndexEnumeration_DDELinksEnumeration
 job107=sc.ScIndexEnumeration_FunctionDescriptionEnumeration
 job108=sc.ScIndexEnumeration_LabelRangesEnumeration
 job109=sc.ScIndexEnumeration_NamedRangesEnumeration
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 59d57b1a2f66..80b91408cf64 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -998,7 +998,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotFieldsEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotTablesEnumeration \
-qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DDELinksEnumeration \
 
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_FunctionDescriptionEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_LabelRangesEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_NamedRangesEnumeration \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_DDELinksEnumeration.csv
 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_DDELinksEnumeration.csv
deleted file mode 100644
index 1b617c83d18e..
--- 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScIndexEnumeration_DDELinksEnumeration.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScIndexEnumeration_DDELinksEnumeration";"com::sun::star::container::XEnumeration";"hasMoreElements()"
-"ScIndexEnumeration_DDELinksEnumeration";"com::sun::star::container::XEnumeration";"nextElement()"
diff --git 
a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DDELinksEnumeration.java 
b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DDELinksEnumeration.java
deleted file mode 100644
index 16b0e5188704..
--- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DDELinksEnumeration.java
+++ /dev/null
@@ -1,127 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-import util.utils;
-
-import com.sun.star.beans.XPropertySet;
-import com.sun.star.container.XEnumerationAccess;
-import com.sun.star.container.XIndexAccess;
-import com.sun.star.lang.XComponent;
-import com.sun.star.lang.XMultiServiceFactory;
-import 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/CppunitTest_sc_cellformatsenumeration.mk sc/Module_sc.mk sc/qa

2018-11-14 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst|
1 
 qadevOOo/Jar_OOoRunner.mk|
1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFormatsEnumeration.csv |
2 
 qadevOOo/tests/java/mod/_sc/ScCellFormatsEnumeration.java|  
128 --
 sc/CppunitTest_sc_cellformatsenumeration.mk  |   
43 +++
 sc/Module_sc.mk  |
1 
 sc/qa/extras/sccellformatsenumeration.cxx|   
91 +++
 sc/qa/unoapi/sc_2.sce|
1 
 8 files changed, 135 insertions(+), 133 deletions(-)

New commits:
commit f7ae9bd132d81412dea37874e5fbc7692781222c
Author: Jens Carl 
AuthorDate: Wed Nov 14 06:36:19 2018 +
Commit: Jens Carl 
CommitDate: Wed Nov 14 17:32:04 2018 +0100

tdf#45904 Move _XEnumeration tests for ScCellFormatsEnumeration to C++

Change-Id: Icf133ae51a564d889997d3920de2816aadd105e1
Reviewed-on: https://gerrit.libreoffice.org/63353
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index d886419b28fd..30f27b5ac21c 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -79,7 +79,6 @@ job79=sc.ScAutoFormatObj
 job80=sc.ScAutoFormatsObj
 job81=sc.ScCellFieldObj
 job82=sc.ScCellFieldsObj
-job83=sc.ScCellFormatsEnumeration
 job84=sc.ScCellFormatsObj
 job85=sc.ScCellSearchObj
 job87=sc.ScCellsObj
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 811627a1b389..59d57b1a2f66 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -962,7 +962,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScCellCursorObj \
 qadevOOo/tests/java/mod/_sc/ScCellFieldObj \
 qadevOOo/tests/java/mod/_sc/ScCellFieldsObj \
-qadevOOo/tests/java/mod/_sc/ScCellFormatsEnumeration \
 qadevOOo/tests/java/mod/_sc/ScCellFormatsObj \
 qadevOOo/tests/java/mod/_sc/ScCellObj \
 qadevOOo/tests/java/mod/_sc/ScCellRangeObj \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFormatsEnumeration.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFormatsEnumeration.csv
deleted file mode 100644
index f977812f7f3e..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFormatsEnumeration.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScCellFormatsEnumeration";"com::sun::star::container::XEnumeration";"hasMoreElements()"
-"ScCellFormatsEnumeration";"com::sun::star::container::XEnumeration";"nextElement()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScCellFormatsEnumeration.java 
b/qadevOOo/tests/java/mod/_sc/ScCellFormatsEnumeration.java
deleted file mode 100644
index a605e57ce4f0..
--- a/qadevOOo/tests/java/mod/_sc/ScCellFormatsEnumeration.java
+++ /dev/null
@@ -1,128 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.container.XEnumerationAccess;
-import com.sun.star.container.XIndexAccess;
-import com.sun.star.lang.XComponent;
-import com.sun.star.sheet.XCellFormatRangesSupplier;
-import com.sun.star.sheet.XSpreadsheet;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.sheet.XSpreadsheets;
-import com.sun.star.uno.AnyConverter;
-import com.sun.star.uno.Type;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-/**
-* Test for object which is represented by service
-* com.sun.star.sheet.CellFormatRangesEnumeration. 
-* Object implements the following interfaces :
-* 
-*   com::sun::star::container::XEnumeration
-* 
-* @see com.sun.star.sheet.CellFormatRangesEnumeration
-* @see com.sun.star.container.XEnumeration
-* @see ifc.container._XEnumeration
-*/
-public class ScCellFormatsEnumeration extends TestCase {
-private XSpreadsheetDocument xSheetDoc = null;
-
-/**
-* Creates Spreadsheet 

[Libreoffice-commits] core.git: framework/qa include/test qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/CppunitTest_sc_cellsenumeration.mk sc/Module_sc.mk sc/qa test/Library_subsequentte

2018-11-13 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst  |1 
 include/test/container/xenumeration.hxx|   36 ++
 qadevOOo/Jar_OOoRunner.mk  |1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellsEnumeration.csv |2 
 qadevOOo/tests/java/mod/_sc/ScCellsEnumeration.java|  137 
--
 sc/CppunitTest_sc_cellsenumeration.mk  |   43 +++
 sc/Module_sc.mk|1 
 sc/qa/extras/sccellsenumeration.cxx|  105 
+++
 sc/qa/unoapi/sc_3.sce  |1 
 test/Library_subsequenttest.mk |1 
 test/source/container/xenumeration.cxx |   43 +++
 11 files changed, 229 insertions(+), 142 deletions(-)

New commits:
commit 13dd6c26658727ec72b6fa2f7129a0e283ff1ec6
Author: Jens Carl 
AuthorDate: Tue Nov 13 15:24:11 2018 -0800
Commit: Jens Carl 
CommitDate: Wed Nov 14 03:50:27 2018 +0100

tdf#45904 Move _XEnumeration for ScCellsEnumeration to C++

Change-Id: Ic7c8e6a9fe777d16a98da89e00f1f52128ac1b5d
Reviewed-on: https://gerrit.libreoffice.org/63351
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 16f62d91d653..d886419b28fd 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -82,7 +82,6 @@ job82=sc.ScCellFieldsObj
 job83=sc.ScCellFormatsEnumeration
 job84=sc.ScCellFormatsObj
 job85=sc.ScCellSearchObj
-job86=sc.ScCellsEnumeration
 job87=sc.ScCellsObj
 job88=sc.ScDatabaseRangeObj
 job89=sc.ScDatabaseRangesObj
diff --git a/include/test/container/xenumeration.hxx 
b/include/test/container/xenumeration.hxx
new file mode 100644
index ..889519229e63
--- /dev/null
+++ b/include/test/container/xenumeration.hxx
@@ -0,0 +1,36 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_TEST_CONTAINER_XENUMERAION_HXX
+#define INCLUDED_TEST_CONTAINER_XENUMERAION_HXX
+
+#include 
+
+#include 
+
+#include 
+
+namespace apitest
+{
+class OOO_DLLPUBLIC_TEST XEnumeration
+{
+public:
+virtual css::uno::Reference init() = 0;
+
+void testHasMoreElements();
+void testNextElement();
+
+protected:
+~XEnumeration() {}
+};
+} // namespace apitest
+
+#endif // INCLUDED_TEST_CONTAINER_XENUMERAION_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index bd528d0cc5f1..811627a1b389 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -968,7 +968,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScCellRangeObj \
 qadevOOo/tests/java/mod/_sc/ScCellRangesObj \
 qadevOOo/tests/java/mod/_sc/ScCellSearchObj \
-qadevOOo/tests/java/mod/_sc/ScCellsEnumeration \
 qadevOOo/tests/java/mod/_sc/ScCellsObj \
 qadevOOo/tests/java/mod/_sc/ScCellTextCursor \
 qadevOOo/tests/java/mod/_sc/ScChartObj \
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellsEnumeration.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellsEnumeration.csv
deleted file mode 100644
index c4b6df4c5e94..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellsEnumeration.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScCellsEnumeration";"com::sun::star::container::XEnumeration";"hasMoreElements()"
-"ScCellsEnumeration";"com::sun::star::container::XEnumeration";"nextElement()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScCellsEnumeration.java 
b/qadevOOo/tests/java/mod/_sc/ScCellsEnumeration.java
deleted file mode 100644
index 48f4adf7713f..
--- a/qadevOOo/tests/java/mod/_sc/ScCellsEnumeration.java
+++ /dev/null
@@ -1,137 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in 

[Libreoffice-commits] core.git: framework/qa qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa

2018-11-09 Thread Libreoffice Gerrit user
 framework/qa/complex/api_internal/api.lst   |1 
 qadevOOo/Jar_OOoRunner.mk   |1 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScNamedRangeObj.csv |2 
 qadevOOo/tests/java/mod/_sc/ScNamedRangeObj.java|  139 
--
 sc/qa/unoapi/sc_6.sce   |1 
 5 files changed, 144 deletions(-)

New commits:
commit bf4fc97131147d25b18d088023262c977f0b2787
Author: Jens Carl 
AuthorDate: Fri Nov 9 14:43:04 2018 -0800
Commit: Jens Carl 
CommitDate: Sat Nov 10 01:28:27 2018 +0100

tdf#45904: Remove/disable obsolete _XNamed tests

The _XNamed tests are already written in C++ since commit
bbfddc1b3b673fe2bd25c2c382ca95cd8f6f28a8 for ScNamedRangeObj.

Change-Id: Ief17cea92c8b2ee42ef44da35f7a02ca07b099b6
Reviewed-on: https://gerrit.libreoffice.org/63224
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 3f89f85de88d..16f62d91d653 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -117,7 +117,6 @@ job118=sc.ScIndexEnumeration_TableColumnsEnumeration
 job119=sc.ScIndexEnumeration_TableConditionalEntryEnumeration
 job120=sc.ScIndexEnumeration_TextFieldEnumeration
 job122=sc.ScLabelRangesObj
-job123=sc.ScNamedRangeObj
 job125=sc.ScScenariosObj
 job126=sc.ScSheetLinkObj
 job127=sc.ScSheetLinksObj
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index afa06001eeab..3991a157096f 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -1019,7 +1019,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TextFieldEnumeration \
 qadevOOo/tests/java/mod/_sc/ScLabelRangesObj \
 qadevOOo/tests/java/mod/_sc/ScModelObj \
-qadevOOo/tests/java/mod/_sc/ScNamedRangeObj \
 qadevOOo/tests/java/mod/_sc/ScNamedRangesObj \
 qadevOOo/tests/java/mod/_sc/ScScenariosObj \
 qadevOOo/tests/java/mod/_sc/ScShapeObj \
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScNamedRangeObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScNamedRangeObj.csv
deleted file mode 100644
index fbed879b91b9..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScNamedRangeObj.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScNamedRangeObj";"com::sun::star::container::XNamed";"getName()"
-"ScNamedRangeObj";"com::sun::star::container::XNamed";"setName()"
diff --git a/qadevOOo/tests/java/mod/_sc/ScNamedRangeObj.java 
b/qadevOOo/tests/java/mod/_sc/ScNamedRangeObj.java
deleted file mode 100644
index e8e2afff28d5..
--- a/qadevOOo/tests/java/mod/_sc/ScNamedRangeObj.java
+++ /dev/null
@@ -1,139 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package mod._sc;
-
-import java.io.PrintWriter;
-
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import util.SOfficeFactory;
-
-import com.sun.star.beans.XPropertySet;
-import com.sun.star.lang.XComponent;
-import com.sun.star.sheet.XNamedRanges;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.table.CellAddress;
-import com.sun.star.table.CellRangeAddress;
-import com.sun.star.uno.AnyConverter;
-import com.sun.star.uno.Type;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-/**
-* Test for object which is represented by service
-* com.sun.star.sheet.NamedRange. 
-* Object implements the following interfaces :
-* 
-*   com::sun::star::container::XNamed
-*   com::sun::star::sheet::XNamedRange
-*   com::sun::star::sheet::XCellRangeReferrer
-* 
-* @see com.sun.star.sheet.NamedRange
-* @see com.sun.star.container.XNamed
-* @see com.sun.star.sheet.XNamedRange
-* @see com.sun.star.sheet.XCellRangeReferrer
-* @see ifc.container._XNamed
-* @see ifc.sheet._XNamedRange
-* @see ifc.sheet._XCellRangeReferrer
-*/
-public class ScNamedRangeObj extends TestCase {
-private XSpreadsheetDocument xSheetDoc = null;
-
-/**
-* Creates Spreadsheet document.
-*/
-@Override
-protected void initialize( TestParameters tParam, PrintWriter 

[Libreoffice-commits] core.git: framework/qa framework/source qadevOOo/tests test/source

2018-01-03 Thread Andrea Gelmini
 framework/qa/complex/framework/recovery/RecoveryTest.java|2 +-
 framework/source/services/frame.cxx  |4 ++--
 qadevOOo/tests/java/ifc/sdb/_XSingleSelectQueryAnalyzer.java |2 +-
 test/source/sheet/tablevalidation.cxx|4 ++--
 4 files changed, 6 insertions(+), 6 deletions(-)

New commits:
commit 3a355887caacea0ec1c3688d64a2cb85a1fc4c74
Author: Andrea Gelmini 
Date:   Wed Jan 3 10:31:06 2018 +0100

Fix typos

Change-Id: I3f4ad9eff0730d3deea96b37fa7f36dfd038b214
Reviewed-on: https://gerrit.libreoffice.org/47301
Tested-by: Jenkins 
Reviewed-by: Julien Nabet 

diff --git a/framework/qa/complex/framework/recovery/RecoveryTest.java 
b/framework/qa/complex/framework/recovery/RecoveryTest.java
index 4605820e023c..67bda08879cf 100644
--- a/framework/qa/complex/framework/recovery/RecoveryTest.java
+++ b/framework/qa/complex/framework/recovery/RecoveryTest.java
@@ -78,7 +78,7 @@ public class RecoveryTest extends ComplexTestCase {
  * @todo: hidden documents
  * @todo: running presentation
  * @todo: modular dialogs like Hpyerlink-Dialog
- * @todo: sceond view of a document
+ * @todo: second view of a document
  * @todo: remove recovery data before start test
  * @todo: after a second start after the crash there should no documents 
recovered anymore
  * @todo: enable remove of recovery files
diff --git a/framework/source/services/frame.cxx 
b/framework/source/services/frame.cxx
index cb8a6b82024e..4366c26b0944 100644
--- a/framework/source/services/frame.cxx
+++ b/framework/source/services/frame.cxx
@@ -1022,11 +1022,11 @@ css::uno::Reference< css::frame::XFrame > SAL_CALL 
Frame::findFrame( const OUStr
 /* TODO
 Creation not supported yet!
 Wait for new layout manager service because we can't plug 
it
-inside already opened document of this frame ...
+inside already opened document of this frame...
 */
 }
 }
-// We arent a task => forward request to our parent or ignore it.
+// We aren't a task => forward request to our parent or ignore it.
 else if (xParent.is())
 xTarget = xParent->findFrame(SPECIALTARGET_BEAMER,0);
 }
diff --git a/qadevOOo/tests/java/ifc/sdb/_XSingleSelectQueryAnalyzer.java 
b/qadevOOo/tests/java/ifc/sdb/_XSingleSelectQueryAnalyzer.java
index 0eb16534efb7..d69523d5f973 100644
--- a/qadevOOo/tests/java/ifc/sdb/_XSingleSelectQueryAnalyzer.java
+++ b/qadevOOo/tests/java/ifc/sdb/_XSingleSelectQueryAnalyzer.java
@@ -76,7 +76,7 @@ public class _XSingleSelectQueryAnalyzer extends 
MultiMethodTest {
 }
 /**
 * call setQuery() once with valid query, once with invalid
-* query. Has ok if only on sceond call SQLException was thrown
+* query. Has ok if only on second call SQLException was thrown
 */
 public void _setQuery() {
 
diff --git a/test/source/sheet/tablevalidation.cxx 
b/test/source/sheet/tablevalidation.cxx
index e953e0f2f111..24d2ace8d644 100644
--- a/test/source/sheet/tablevalidation.cxx
+++ b/test/source/sheet/tablevalidation.cxx
@@ -142,12 +142,12 @@ void TableValidation::testTableValidationProperties()
 propName = "ShowList";
 sal_Int16 aShowList = 0;
 CPPUNIT_ASSERT(xTableValidation->getPropertyValue(propName) >>= aShowList);
-CPPUNIT_ASSERT_EQUAL_MESSAGE("Unabel to get property value ShowList", 
sal_Int16(1), aShowList);
+CPPUNIT_ASSERT_EQUAL_MESSAGE("Unable to get property value ShowList", 
sal_Int16(1), aShowList);
 
 aNewValue <<= sal_Int16(42);
 xTableValidation->setPropertyValue(propName, aNewValue);
 CPPUNIT_ASSERT(xTableValidation->getPropertyValue(propName) >>= aShowList);
-CPPUNIT_ASSERT_EQUAL_MESSAGE("Unabel to set property value ShowList", 
sal_Int16(42), aShowList);
+CPPUNIT_ASSERT_EQUAL_MESSAGE("Unable to set property value ShowList", 
sal_Int16(42), aShowList);
 }
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: framework/qa

2017-12-13 Thread Andrea Gelmini
 framework/qa/complex/dispatches/checkdispatchapi.java |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 26d2b9d616e08c481d463c0696eca7a3bab54c98
Author: Andrea Gelmini 
Date:   Fri Dec 1 22:21:45 2017 +0100

Fix typo

Change-Id: I34d41941ef0ba20bca604b7caed80a2d0b6ac129
Reviewed-on: https://gerrit.libreoffice.org/45706
Tested-by: Jenkins 
Reviewed-by: Tamás Zolnai 

diff --git a/framework/qa/complex/dispatches/checkdispatchapi.java 
b/framework/qa/complex/dispatches/checkdispatchapi.java
index 74ee152c9be8..32786e858364 100644
--- a/framework/qa/complex/dispatches/checkdispatchapi.java
+++ b/framework/qa/complex/dispatches/checkdispatchapi.java
@@ -345,7 +345,7 @@ public class checkdispatchapi
 {
 // Error
 fail("At least one DispatchInformation item does not match 
the requested group.\n\trequested group=[" + nGroup
-+ "] returned groupd=[" + aInfo.GroupId + "] 
command=\"" + aInfo.Command + "\""); // true => don't break this test
++ "] returned group=[" + aInfo.GroupId + "] 
command=\"" + aInfo.Command + "\""); // true => don't break this test
 continue;
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: framework/qa include/test qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/CppunitTest_sc_recentfunctionsobj.mk sc/Module_sc.mk sc/qa test/Library_subsequent

2017-12-04 Thread Jens Carl
 framework/qa/complex/api_internal/api.lst|1 
 include/test/sheet/xrecentfunctions.hxx  |   36 ++
 qadevOOo/Jar_OOoRunner.mk|2 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScRecentFunctionsObj.csv |3 
 qadevOOo/tests/java/ifc/sheet/_XRecentFunctions.java |  158 
--
 qadevOOo/tests/java/mod/_sc/ScRecentFunctionsObj.java|  112 
---
 sc/CppunitTest_sc_recentfunctionsobj.mk  |  105 
++
 sc/Module_sc.mk  |1 
 sc/qa/extras/screcentfunctionsobj.cxx|   97 
++
 sc/qa/unoapi/sc_6.sce|1 
 test/Library_subsequenttest.mk   |1 
 test/source/sheet/xrecentfunctions.cxx   |   76 

 12 files changed, 316 insertions(+), 277 deletions(-)

New commits:
commit 958d8d316dbda970dc31d5b060f8d317db0516ff
Author: Jens Carl 
Date:   Fri Dec 1 06:22:30 2017 +

tdf#45904 Move _XRecentFunctions Java tests to C++

Fix for #i84761.

Change-Id: I3ea608ce60ecc274bc2af9eb1d8117372b663a6f
Reviewed-on: https://gerrit.libreoffice.org/45637
Tested-by: Jenkins 
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index dae7278c29b0..3f89f85de88d 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -118,7 +118,6 @@ 
job119=sc.ScIndexEnumeration_TableConditionalEntryEnumeration
 job120=sc.ScIndexEnumeration_TextFieldEnumeration
 job122=sc.ScLabelRangesObj
 job123=sc.ScNamedRangeObj
-job124=sc.ScRecentFunctionsObj
 job125=sc.ScScenariosObj
 job126=sc.ScSheetLinkObj
 job127=sc.ScSheetLinksObj
diff --git a/include/test/sheet/xrecentfunctions.hxx 
b/include/test/sheet/xrecentfunctions.hxx
new file mode 100644
index ..8f7ac55a2521
--- /dev/null
+++ b/include/test/sheet/xrecentfunctions.hxx
@@ -0,0 +1,36 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_TEST_SHEET_XRECENTFUNCTIONS_HXX
+#define INCLUDED_TEST_SHEET_XRECENTFUNCTIONS_HXX
+
+#include 
+#include 
+
+#include 
+
+namespace apitest
+{
+class OOO_DLLPUBLIC_TEST XRecentFunctions
+{
+public:
+virtual css::uno::Reference init() = 0;
+
+void testGetRecentFunctionIds();
+void testSetRecentFunctionIds();
+void testGetMaxRecentFunctions();
+
+protected:
+~XRecentFunctions() {}
+};
+}
+
+#endif // INCLUDED_TEST_SHEET_XRECENTFUNCTIONS_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index d7476b028d5a..775cdb348625 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -605,7 +605,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/ifc/sheet/_XFormulaQuery \
 qadevOOo/tests/java/ifc/sheet/_XFunctionDescriptions \
 qadevOOo/tests/java/ifc/sheet/_XRangeSelection \
-qadevOOo/tests/java/ifc/sheet/_XRecentFunctions \
 qadevOOo/tests/java/ifc/sheet/_XScenario \
 qadevOOo/tests/java/ifc/sheet/_XSheetCellCursor \
 qadevOOo/tests/java/ifc/style/_CharacterProperties \
@@ -1070,7 +1069,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScModelObj \
 qadevOOo/tests/java/mod/_sc/ScNamedRangeObj \
 qadevOOo/tests/java/mod/_sc/ScNamedRangesObj \
-qadevOOo/tests/java/mod/_sc/ScRecentFunctionsObj \
 qadevOOo/tests/java/mod/_sc/ScScenariosObj \
 qadevOOo/tests/java/mod/_sc/ScShapeObj \
 qadevOOo/tests/java/mod/_sc/ScSheetLinkObj \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScRecentFunctionsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScRecentFunctionsObj.csv
deleted file mode 100644
index 67bf2d9a2a5c..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScRecentFunctionsObj.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-"ScRecentFunctionsObj";"com::sun::star::sheet::XRecentFunctions";"getRecentFunctionIds()"
-"ScRecentFunctionsObj";"com::sun::star::sheet::XRecentFunctions";"setRecentFunctionIds()"
-"ScRecentFunctionsObj";"com::sun::star::sheet::XRecentFunctions";"getMaxRecentFunctions()"
diff --git a/qadevOOo/tests/java/ifc/sheet/_XRecentFunctions.java 
b/qadevOOo/tests/java/ifc/sheet/_XRecentFunctions.java
deleted file mode 100644
index 3ca88e281f68..
--- 

[Libreoffice-commits] core.git: framework/qa include/test qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/CppunitTest_sc_headerfootercontentobj.mk sc/Module_sc.mk sc/qa test/Library_subseq

2017-11-26 Thread Jens Carl
 framework/qa/complex/api_internal/api.lst|
1 
 include/test/sheet/xheaderfootercontent.hxx  |   
36 ++
 qadevOOo/Jar_OOoRunner.mk|
2 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScHeaderFooterContentObj.csv |
3 
 qadevOOo/tests/java/ifc/sheet/_XHeaderFooterContent.java |   
73 -
 qadevOOo/tests/java/mod/_sc/ScHeaderFooterContentObj.java|  
135 --
 sc/CppunitTest_sc_headerfootercontentobj.mk  |  
105 +++
 sc/Module_sc.mk  |
1 
 sc/qa/extras/scheaderfootercontentobj.cxx|  
120 
 sc/qa/unoapi/sc_4.sce|
1 
 test/Library_subsequenttest.mk   |
1 
 test/source/sheet/xheaderfootercontent.cxx   |   
49 +++
 12 files changed, 312 insertions(+), 215 deletions(-)

New commits:
commit 2d609053adb2f078fa7aa3ccdf3758f2f01e478f
Author: Jens Carl 
Date:   Sat Nov 25 07:24:45 2017 +

tdf#45904 Move _XHeaderFooterContent Java tests to C++

Change-Id: I5e6ee9f44223c4b0b92ec32bb508d5b6c988689f
Reviewed-on: https://gerrit.libreoffice.org/45265
Tested-by: Jenkins 
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index fe472e824ea5..dae7278c29b0 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -96,7 +96,6 @@ job96=sc.ScFilterDescriptorBase
 job97=sc.ScFunctionListObj
 job98=sc.ScHeaderFieldObj
 job99=sc.ScHeaderFieldsObj
-job100=sc.ScHeaderFooterContentObj
 job101=sc.ScIndexEnumeration_CellAnnotationsEnumeration
 job102=sc.ScIndexEnumeration_CellAreaLinksEnumeration
 job103=sc.ScIndexEnumeration_DatabaseRangesEnumeration
diff --git a/include/test/sheet/xheaderfootercontent.hxx 
b/include/test/sheet/xheaderfootercontent.hxx
new file mode 100644
index ..64d3fea46341
--- /dev/null
+++ b/include/test/sheet/xheaderfootercontent.hxx
@@ -0,0 +1,36 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_TEST_SHEET_XHEADERFOOTERCONTENT_HXX
+#define INCLUDED_TEST_SHEET_XHEADERFOOTERCONTENT_HXX
+
+#include 
+#include 
+
+#include 
+
+namespace apitest
+{
+class OOO_DLLPUBLIC_TEST XHeaderFooterContent
+{
+public:
+virtual css::uno::Reference init() = 0;
+
+void testGetCenterText();
+void testGetLeftText();
+void testGetRightText();
+
+protected:
+~XHeaderFooterContent() {}
+};
+}
+
+#endif // INCLUDED_TEST_SHEET_XHEADERFOOTERCONTENT_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 0064c67a5dcf..ca7efb955432 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -604,7 +604,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/ifc/sheet/_XEnhancedMouseClickBroadcaster \
 qadevOOo/tests/java/ifc/sheet/_XFormulaQuery \
 qadevOOo/tests/java/ifc/sheet/_XFunctionDescriptions \
-qadevOOo/tests/java/ifc/sheet/_XHeaderFooterContent \
 qadevOOo/tests/java/ifc/sheet/_XMultipleOperation \
 qadevOOo/tests/java/ifc/sheet/_XRangeSelection \
 qadevOOo/tests/java/ifc/sheet/_XRecentFunctions \
@@ -1043,7 +1042,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScFunctionListObj \
 qadevOOo/tests/java/mod/_sc/ScHeaderFieldObj \
 qadevOOo/tests/java/mod/_sc/ScHeaderFieldsObj \
-qadevOOo/tests/java/mod/_sc/ScHeaderFooterContentObj \
 qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextCursor \
 qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextObj \
 qadevOOo/tests/java/mod/_sc/ScImportDescriptorBase \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScHeaderFooterContentObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScHeaderFooterContentObj.csv
deleted file mode 100644
index e04311b56418..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScHeaderFooterContentObj.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-"ScHeaderFooterContentObj";"com::sun::star::sheet::XHeaderFooterContent";"getLeftText()"
-"ScHeaderFooterContentObj";"com::sun::star::sheet::XHeaderFooterContent";"getCenterText()"
-"ScHeaderFooterContentObj";"com::sun::star::sheet::XHeaderFooterContent";"getRightText()"
diff --git 

[Libreoffice-commits] core.git: framework/qa framework/source sal/osl

2017-11-13 Thread Andrea Gelmini
 framework/qa/complex/framework/autosave/Protocol.java |2 +-
 framework/source/accelerators/presethandler.cxx   |2 +-
 framework/source/jobs/job.cxx |2 +-
 framework/source/services/autorecovery.cxx|6 +++---
 sal/osl/w32/module.cxx|2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)

New commits:
commit 2a2d4a57035823181aa14e05b1a7efe4843639cf
Author: Andrea Gelmini 
Date:   Mon Nov 13 21:19:30 2017 +0100

Fix typos

Change-Id: I677512213d97d01832bebe162fbf7de2998bf4d0
Reviewed-on: https://gerrit.libreoffice.org/44664
Reviewed-by: Julien Nabet 
Tested-by: Julien Nabet 

diff --git a/framework/qa/complex/framework/autosave/Protocol.java 
b/framework/qa/complex/framework/autosave/Protocol.java
index 8a5bd1a899a8..a2b16f36352e 100644
--- a/framework/qa/complex/framework/autosave/Protocol.java
+++ b/framework/qa/complex/framework/autosave/Protocol.java
@@ -592,7 +592,7 @@ public class Protocol extends JComponent
 // no else - it's a bit field of possible reactions!
 // But these both conditions must be handled together.
 // Because we can't generate different types of log contents to the 
same log file.
-// We preferr HTML if both types are set.
+// We prefer HTML if both types are set.
 if (
 ((m_nMode & MODE_HTML ) == MODE_HTML ) ||
 ((m_nMode & MODE_ASCII) == MODE_ASCII)
diff --git a/framework/source/accelerators/presethandler.cxx 
b/framework/source/accelerators/presethandler.cxx
index 3afbd6c18ad7..3d6047dadaae 100644
--- a/framework/source/accelerators/presethandler.cxx
+++ b/framework/source/accelerators/presethandler.cxx
@@ -357,7 +357,7 @@ void PresetHandler::connectToResource(  
PresetHandler::EConfigType
 // a) inside share layer we should not create any new structures... We 
have to use
 //existing ones only!
 // b) inside user layer we can (SOFT mode!) but sometimes we should not 
(HARD mode!)
-//create new empty structures. We should preferr using of any existing 
structure.
+//create new empty structures. We should prefer using of any existing 
structure.
 sal_Int32 eShareMode = (css::embed::ElementModes::READ  | 
css::embed::ElementModes::NOCREATE);
 sal_Int32 eUserMode  = css::embed::ElementModes::READWRITE;
 
diff --git a/framework/source/jobs/job.cxx b/framework/source/jobs/job.cxx
index f7b18482dfa0..a0488bc45aae 100644
--- a/framework/source/jobs/job.cxx
+++ b/framework/source/jobs/job.cxx
@@ -182,7 +182,7 @@ void Job::execute( /*IN*/ const css::uno::Sequence< 
css::beans::NamedValue >& lD
 {
 // create the job
 // We must check for the supported interface on demand!
-// But we preferr the synchronous one ...
+// But we prefer the synchronous one ...
 m_xJob = 
m_xContext->getServiceManager()->createInstanceWithContext(m_aJobCfg.getService(),
 m_xContext);
 xSJob.set(m_xJob, css::uno::UNO_QUERY);
 if (!xSJob.is())
diff --git a/framework/source/services/autorecovery.cxx 
b/framework/source/services/autorecovery.cxx
index ac684cf9969a..02d099d42303 100644
--- a/framework/source/services/autorecovery.cxx
+++ b/framework/source/services/autorecovery.cxx
@@ -3523,7 +3523,7 @@ OUString AutoRecovery::implst_getJobDescription(sal_Int32 
eJob)
 sFeature.append(CMD_PROTOCOL);
 
 // Attention: Because "eJob" is used as a flag field the order of checking 
these
-// flags is important. We must preferr job with higher priorities!
+// flags is important. We must prefer job with higher priorities!
 // E.g. EmergencySave has an higher prio then AutoSave ...
 // On the other side there exist a well defined order between two 
different jobs.
 // e.g. PrepareEmergencySave must be done before EmergencySave is started 
of course.
@@ -4102,7 +4102,7 @@ void AutoRecovery::impl_establishProgress(const 
AutoRecovery::TDocumentInfo&
 {
 // external well known frame must be preferred (because it was created by 
ourself
 // for loading documents into this frame)!
-// But if no frame exists ... we can try to locate it using any frame 
bound to the provided
+// But if no frame exists... we can try to locate it using any frame bound 
to the provided
 // document. Of course we must live without any frame in case the document 
does not exists at this
 // point. But this state should not occur. In such case xNewFrame should 
be valid ... hopefully .-)
 css::uno::Reference< css::frame::XFrame > xFrame = xNewFrame;
@@ -4167,7 +4167,7 @@ void AutoRecovery::impl_forgetProgress(const 
AutoRecovery::TDocumentInfo&
 {
 // external well known frame must be preferred (because it was created by 
ourself
 // for loading documents into this frame)!
-// But if no frame exists ... we can try to locate it using 

[Libreoffice-commits] core.git: framework/qa include/test qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/CppunitTest_sc_labelrangeobj.mk sc/Module_sc.mk sc/qa test/Library_subsequenttest.

2017-11-13 Thread Jens Carl
 framework/qa/complex/api_internal/api.lst   |1 
 include/test/sheet/xlabelrange.hxx  |   35 ++
 qadevOOo/Jar_OOoRunner.mk   |2 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScLabelRangeObj.csv |4 
 qadevOOo/tests/java/ifc/sheet/_XLabelRange.java |  100 
 qadevOOo/tests/java/mod/_sc/ScLabelRangeObj.java|  118 
--
 sc/CppunitTest_sc_labelrangeobj.mk  |  105 
 sc/Module_sc.mk |1 
 sc/qa/extras/sclabelrangeobj.cxx|  107 
+
 sc/qa/unoapi/sc_6.sce   |1 
 test/Library_subsequenttest.mk  |1 
 test/source/sheet/xlabelrange.cxx   |   50 
 12 files changed, 299 insertions(+), 226 deletions(-)

New commits:
commit 1c52e61fdc48971387254d5c135e613fa42f9df8
Author: Jens Carl 
Date:   Mon Nov 13 08:52:52 2017 +

tdf#45904 Move _XLabelRange Java tests to C++

Change-Id: I707631718c30d4503ae675f3679038705371f969
Reviewed-on: https://gerrit.libreoffice.org/44672
Reviewed-by: Jens Carl 
Tested-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index 44ca4d40ff91..fe472e824ea5 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -117,7 +117,6 @@ job117=sc.ScIndexEnumeration_TableChartsEnumeration
 job118=sc.ScIndexEnumeration_TableColumnsEnumeration
 job119=sc.ScIndexEnumeration_TableConditionalEntryEnumeration
 job120=sc.ScIndexEnumeration_TextFieldEnumeration
-job121=sc.ScLabelRangeObj
 job122=sc.ScLabelRangesObj
 job123=sc.ScNamedRangeObj
 job124=sc.ScRecentFunctionsObj
diff --git a/include/test/sheet/xlabelrange.hxx 
b/include/test/sheet/xlabelrange.hxx
new file mode 100644
index ..24d2f3a07b9e
--- /dev/null
+++ b/include/test/sheet/xlabelrange.hxx
@@ -0,0 +1,35 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_TEST_SHEET_XLABELRANGE_HXX
+#define INCLUDED_TEST_SHEET_XLABELRANGE_HXX
+
+#include 
+#include 
+
+#include 
+
+namespace apitest
+{
+class OOO_DLLPUBLIC_TEST XLabelRange
+{
+public:
+virtual css::uno::Reference init() = 0;
+
+void testGetSetDataArea();
+void testGetSetLabelArea();
+
+protected:
+~XLabelRange() {}
+};
+}
+
+#endif // INCLUDED_TEST_SHEET_XLABELRANGE_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 26988d28dc64..24db4d9f20a8 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -605,7 +605,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/ifc/sheet/_XFormulaQuery \
 qadevOOo/tests/java/ifc/sheet/_XFunctionDescriptions \
 qadevOOo/tests/java/ifc/sheet/_XHeaderFooterContent \
-qadevOOo/tests/java/ifc/sheet/_XLabelRange \
 qadevOOo/tests/java/ifc/sheet/_XMultipleOperation \
 qadevOOo/tests/java/ifc/sheet/_XRangeSelection \
 qadevOOo/tests/java/ifc/sheet/_XRecentFunctions \
@@ -1076,7 +1075,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableConditionalEntryEnumeration 
\
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableRowsEnumeration \
 qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TextFieldEnumeration \
-qadevOOo/tests/java/mod/_sc/ScLabelRangeObj \
 qadevOOo/tests/java/mod/_sc/ScLabelRangesObj \
 qadevOOo/tests/java/mod/_sc/ScModelObj \
 qadevOOo/tests/java/mod/_sc/ScNamedRangeObj \
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScLabelRangeObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScLabelRangeObj.csv
deleted file mode 100644
index 19a9abea5c54..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScLabelRangeObj.csv
+++ /dev/null
@@ -1,4 +0,0 @@
-"ScLabelRangeObj";"com::sun::star::sheet::XLabelRange";"getLabelArea()"
-"ScLabelRangeObj";"com::sun::star::sheet::XLabelRange";"setLabelArea()"
-"ScLabelRangeObj";"com::sun::star::sheet::XLabelRange";"getDataArea()"
-"ScLabelRangeObj";"com::sun::star::sheet::XLabelRange";"setDataArea()"
diff --git a/qadevOOo/tests/java/ifc/sheet/_XLabelRange.java 
b/qadevOOo/tests/java/ifc/sheet/_XLabelRange.java
deleted file mode 100644
index 84da96145364..
--- a/qadevOOo/tests/java/ifc/sheet/_XLabelRange.java
+++ 

[Libreoffice-commits] core.git: framework/qa odk/examples qadevOOo/tests sax/source sc/source xmloff/source

2017-11-12 Thread Andrea Gelmini
 framework/qa/complex/XUserInputInterception/EventTest.java |2 +-
 odk/examples/DevelopersGuide/Drawing/Helper.java   |2 +-
 odk/examples/DevelopersGuide/UCB/Helper.java   |2 +-
 qadevOOo/tests/java/ifc/frame/_XModuleManager.java |2 +-
 sax/source/expatwrap/saxwriter.cxx |2 +-
 sc/source/filter/inc/connectionsbuffer.hxx |2 +-
 sc/source/ui/inc/output.hxx|2 +-
 xmloff/source/chart/SchXMLImport.cxx   |2 +-
 8 files changed, 8 insertions(+), 8 deletions(-)

New commits:
commit e1e436eaa036e18854b050b958b7bed1c86a31ff
Author: Andrea Gelmini 
Date:   Mon Nov 13 00:14:03 2017 +0100

Fix typos

Change-Id: I2a10e087a776ac96b3193226610577227d2492a8
Reviewed-on: https://gerrit.libreoffice.org/44655
Tested-by: Jenkins 
Reviewed-by: Mark Page 

diff --git a/framework/qa/complex/XUserInputInterception/EventTest.java 
b/framework/qa/complex/XUserInputInterception/EventTest.java
index c8e9d5d1e67f..29c31ee5f79e 100644
--- a/framework/qa/complex/XUserInputInterception/EventTest.java
+++ b/framework/qa/complex/XUserInputInterception/EventTest.java
@@ -82,7 +82,7 @@ public class EventTest {
 private SOfficeFactory m_SOF = null;
 
 /**
- * define the miliseconds to wait until a EventTrigger thread 
should
+ * define the milliseconds to wait until a EventTrigger 
thread should
  * be finished with its work
  */
 static final int m_threadWait = 3000;
diff --git a/odk/examples/DevelopersGuide/Drawing/Helper.java 
b/odk/examples/DevelopersGuide/Drawing/Helper.java
index f959248737cf..5e5c52d1f636 100644
--- a/odk/examples/DevelopersGuide/Drawing/Helper.java
+++ b/odk/examples/DevelopersGuide/Drawing/Helper.java
@@ -45,7 +45,7 @@ public class Helper
 // __ static helper methods __
 
 /** Connect to an office, if no office is running a new instance is 
started.
- * A new connection is established and the service manger from the running
+ * A new connection is established and the service manager from the running
  * office is returned.
  */
 public static XComponentContext connect()
diff --git a/odk/examples/DevelopersGuide/UCB/Helper.java 
b/odk/examples/DevelopersGuide/UCB/Helper.java
index 5b7e4d2d0a63..fc7e927e1aac 100644
--- a/odk/examples/DevelopersGuide/UCB/Helper.java
+++ b/odk/examples/DevelopersGuide/UCB/Helper.java
@@ -63,7 +63,7 @@ public class Helper {
 
 /**
  *  Constructor, create a new instance of the ucb. UNO is bootstrapped and
- *  the remote office service manger is used to create the ucb. If 
necessary
+ *  the remote office service manager is used to create the ucb. If 
necessary
  *  a new office process is started.
  */
 public Helper(String url) throws java.lang.Exception {
diff --git a/qadevOOo/tests/java/ifc/frame/_XModuleManager.java 
b/qadevOOo/tests/java/ifc/frame/_XModuleManager.java
index bfc06a9dc640..9ff0587f66f6 100644
--- a/qadevOOo/tests/java/ifc/frame/_XModuleManager.java
+++ b/qadevOOo/tests/java/ifc/frame/_XModuleManager.java
@@ -58,7 +58,7 @@ public class _XModuleManager extends MultiMethodTest {
  * contains a XFrame, XController or a
  * XModel. The name of the PropertyValue contains the 
expected return
  * value of method indetify() if the method was called with
- * coresponding value.
+ * corresponding value.
  * As enhancement the method identify() was called with 
invalid
  * parameter. In this case the thrown exceptions were caught.
  */
diff --git a/sax/source/expatwrap/saxwriter.cxx 
b/sax/source/expatwrap/saxwriter.cxx
index 771aa69762a2..49c5be8636a9 100644
--- a/sax/source/expatwrap/saxwriter.cxx
+++ b/sax/source/expatwrap/saxwriter.cxx
@@ -1098,7 +1098,7 @@ void SAXWriter::startElement(const OUString& aName, const 
Reference< XAttributeL
 nLength ++;  // '>'
 }
 
-// Is there a new indentation necesarry ?
+// Is there a new indentation necessary ?
 sal_Int32 nPrefix(getIndentPrefixLength( nLength ));
 
 // write into sequence
diff --git a/sc/source/filter/inc/connectionsbuffer.hxx 
b/sc/source/filter/inc/connectionsbuffer.hxx
index 5926a86bc85e..3aa4209bc8f8 100644
--- a/sc/source/filter/inc/connectionsbuffer.hxx
+++ b/sc/source/filter/inc/connectionsbuffer.hxx
@@ -51,7 +51,7 @@ struct WebPrModel
 boolmbSourceData;   /// True = import XML source data 
referred by HTML table.
 boolmbParsePre; /// True = parse preformatted 
sections ( tag).
 boolmbConsecutive;  /// True = join consecutive 
delimiters.
-boolmbFirstRow; /// True = use column withs of 
first row for entire  tag.
+boolmbFirstRow; /// True = use column widths of 
first row for entire  

[Libreoffice-commits] core.git: framework/qa include/test qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/qa test/Library_subsequenttest.mk test/source

2017-11-02 Thread Jens Carl
 framework/qa/complex/api_internal/api.lst   |1 
 include/test/sheet/xsheetconditionalentry.hxx   |   36 
++
 qadevOOo/Jar_OOoRunner.mk   |2 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableConditionalEntry.csv |2 
 qadevOOo/tests/java/ifc/sheet/_XSheetConditionalEntry.java  |   66 
---
 qadevOOo/tests/java/mod/_sc/ScTableConditionalEntry.java|  170 
--
 sc/qa/extras/sctableconditionalentryobj.cxx |   10 
 sc/qa/unoapi/sc_7.sce   |1 
 test/Library_subsequenttest.mk  |1 
 test/source/sheet/xsheetconditionalentry.cxx|   37 
++
 10 files changed, 82 insertions(+), 244 deletions(-)

New commits:
commit 6bddeb4de19685c1ce1a3c1f9bd32cffb6b14bc6
Author: Jens Carl 
Date:   Wed Nov 1 20:58:09 2017 +

tdf#45904 Move Java _XSheetConditionalEntry tests to C++

Change-Id: I51924e69183260ba0eba94c3a14bde252c24cc18
Reviewed-on: https://gerrit.libreoffice.org/44182
Tested-by: Jenkins 
Reviewed-by: Jens Carl 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index ac0c62e2e7f5..44ca4d40ff91 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -131,7 +131,6 @@ job131=sc.ScStyleFamilyObj
 job132=sc.ScStyleObj
 job134=sc.ScTableColumnObj
 job135=sc.ScTableColumnsObj
-job136=sc.ScTableConditionalEntry
 job137=sc.ScTableConditionalFormat
 job138=sc.ScTableRowObj
 job139=sc.ScTableValidationObj
diff --git a/include/test/sheet/xsheetconditionalentry.hxx 
b/include/test/sheet/xsheetconditionalentry.hxx
new file mode 100644
index ..449e3534c333
--- /dev/null
+++ b/include/test/sheet/xsheetconditionalentry.hxx
@@ -0,0 +1,36 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_TEST_SHEET_XSHEETCONDITIONALENTRY_HXX
+#define INCLUDED_TEST_SHEET_XSHEETCONDITIONALENTRY_HXX
+
+
+#include 
+#include 
+
+#include 
+
+namespace apitest {
+
+class OOO_DLLPUBLIC_TEST XSheetConditionalEntry
+{
+public:
+virtual css::uno::Reference< css::uno::XInterface > init() =0;
+
+void testGetSetStyleName();
+
+protected:
+~XSheetConditionalEntry() {}
+};
+
+}
+
+#endif // INCLUDED_TEST_SHEET_XSHEETCONDITIONALENTRY_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index e85731f3f3a9..4af94611e1b9 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -622,7 +622,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/ifc/sheet/_XSheetCellRangeContainer \
 qadevOOo/tests/java/ifc/sheet/_XSheetCellRanges \
 qadevOOo/tests/java/ifc/sheet/_XSheetConditionalEntries \
-qadevOOo/tests/java/ifc/sheet/_XSheetConditionalEntry \
 qadevOOo/tests/java/ifc/sheet/_XSheetFilterableEx \
 qadevOOo/tests/java/ifc/sheet/_XSpreadsheetView \
 qadevOOo/tests/java/ifc/style/_CharacterProperties \
@@ -1103,7 +1102,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScSubTotalDescriptorBase \
 qadevOOo/tests/java/mod/_sc/ScTableColumnObj \
 qadevOOo/tests/java/mod/_sc/ScTableColumnsObj \
-qadevOOo/tests/java/mod/_sc/ScTableConditionalEntry \
 qadevOOo/tests/java/mod/_sc/ScTableConditionalFormat \
 qadevOOo/tests/java/mod/_sc/ScTableRowObj \
 qadevOOo/tests/java/mod/_sc/ScTableRowsObj \
diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableConditionalEntry.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableConditionalEntry.csv
deleted file mode 100644
index 5de029653f0c..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableConditionalEntry.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScTableConditionalEntry";"com::sun::star::sheet::XSheetConditionalEntry";"getStyleName()"
-"ScTableConditionalEntry";"com::sun::star::sheet::XSheetConditionalEntry";"setStyleName()"
diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetConditionalEntry.java 
b/qadevOOo/tests/java/ifc/sheet/_XSheetConditionalEntry.java
deleted file mode 100644
index 42fb687287f1..
--- a/qadevOOo/tests/java/ifc/sheet/_XSheetConditionalEntry.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- 

[Libreoffice-commits] core.git: framework/qa include/test qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests sc/CppunitTest_sc_subtotalfieldobj.mk sc/Module_sc.mk sc/qa test/Library_subsequentte

2017-10-08 Thread Jens Carl
 framework/qa/complex/api_internal/api.lst  |1 
 include/test/sheet/xsubtotalfield.hxx  |   34 ++
 qadevOOo/Jar_OOoRunner.mk  |2 
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSubTotalFieldObj.csv |4 
 qadevOOo/tests/java/ifc/sheet/_XSubTotalField.java |  108 

 qadevOOo/tests/java/mod/_sc/ScSubTotalFieldObj.java|  126 
--
 sc/CppunitTest_sc_subtotalfieldobj.mk  |  105 

 sc/Module_sc.mk|1 
 sc/qa/extras/scsubtotalfieldobj.cxx|  119 
+
 sc/qa/unoapi/sc_7.sce  |1 
 test/Library_subsequenttest.mk |1 
 test/source/sheet/xsubtotalfield.cxx   |   79 
++
 12 files changed, 339 insertions(+), 242 deletions(-)

New commits:
commit 4867bbdd99e3d5262621fa761d852d849b7365ab
Author: Jens Carl 
Date:   Sat Sep 2 04:34:39 2017 +

tdf#45904: Move _XSubTotalField Java tests to C++

Change-Id: I64528c4e315247583e185bc3ab0defbc22bd8726
Reviewed-on: https://gerrit.libreoffice.org/41826
Tested-by: Jenkins 
Reviewed-by: Markus Mohrhard 

diff --git a/framework/qa/complex/api_internal/api.lst 
b/framework/qa/complex/api_internal/api.lst
index f045d179e632..ac0c62e2e7f5 100644
--- a/framework/qa/complex/api_internal/api.lst
+++ b/framework/qa/complex/api_internal/api.lst
@@ -129,7 +129,6 @@ job129=sc.ScSpreadsheetSettingsObj
 job130=sc.ScStyleFamiliesObj
 job131=sc.ScStyleFamilyObj
 job132=sc.ScStyleObj
-job133=sc.ScSubTotalFieldObj
 job134=sc.ScTableColumnObj
 job135=sc.ScTableColumnsObj
 job136=sc.ScTableConditionalEntry
diff --git a/include/test/sheet/xsubtotalfield.hxx 
b/include/test/sheet/xsubtotalfield.hxx
new file mode 100644
index ..c32af101aae9
--- /dev/null
+++ b/include/test/sheet/xsubtotalfield.hxx
@@ -0,0 +1,34 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_TEST_SHEET_XSUBTOTALFIELD_HXX
+#define INCLUDED_TEST_SHEET_XSUBTOTALFIELD_HXX
+
+#include 
+#include 
+#include 
+
+namespace apitest {
+
+class OOO_DLLPUBLIC_TEST XSubTotalField
+{
+public:
+virtual css::uno::Reference< css::uno::XInterface > init() = 0;
+
+void testGetSetGroupColumn();
+void testGetSetTotalColumns();
+
+protected:
+~XSubTotalField() {}
+};
+
+}
+#endif // INCLUDED_TEST_SHEET_XSUBTOTALFIELD_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index c2abc57550ab..f29279109c4a 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -635,7 +635,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/ifc/sheet/_XSpreadsheetView \
 qadevOOo/tests/java/ifc/sheet/_XSubTotalCalculatable \
 qadevOOo/tests/java/ifc/sheet/_XSubTotalDescriptor \
-qadevOOo/tests/java/ifc/sheet/_XSubTotalField \
 qadevOOo/tests/java/ifc/style/_CharacterProperties \
 qadevOOo/tests/java/ifc/style/_CharacterPropertiesAsian \
 qadevOOo/tests/java/ifc/style/_CharacterPropertiesComplex \
@@ -1112,7 +,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_sc/ScStyleFamilyObj \
 qadevOOo/tests/java/mod/_sc/ScStyleObj \
 qadevOOo/tests/java/mod/_sc/ScSubTotalDescriptorBase \
-qadevOOo/tests/java/mod/_sc/ScSubTotalFieldObj \
 qadevOOo/tests/java/mod/_sc/ScTableColumnObj \
 qadevOOo/tests/java/mod/_sc/ScTableColumnsObj \
 qadevOOo/tests/java/mod/_sc/ScTableConditionalEntry \
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSubTotalFieldObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSubTotalFieldObj.csv
deleted file mode 100644
index a25bff1dcdd0..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSubTotalFieldObj.csv
+++ /dev/null
@@ -1,4 +0,0 @@
-"ScSubTotalFieldObj";"com::sun::star::sheet::XSubTotalField";"getGroupColumn()"
-"ScSubTotalFieldObj";"com::sun::star::sheet::XSubTotalField";"setGroupColumn()"
-"ScSubTotalFieldObj";"com::sun::star::sheet::XSubTotalField";"getSubTotalColumns()"
-"ScSubTotalFieldObj";"com::sun::star::sheet::XSubTotalField";"setSubTotalColumns()"
diff --git a/qadevOOo/tests/java/ifc/sheet/_XSubTotalField.java 
b/qadevOOo/tests/java/ifc/sheet/_XSubTotalField.java
deleted file mode 100644
index 57fcb485b37d..
--- 

[Libreoffice-commits] core.git: framework/qa qadevOOo/runner qadevOOo/tests

2017-10-05 Thread Caolán McNamara
 framework/qa/complex/api_internal/CheckAPI.java   |9 ++--
 qadevOOo/runner/base/java_complex.java|5 
 qadevOOo/runner/base/java_fat.java|3 +-
 qadevOOo/runner/helper/AppProvider.java   |4 ++-
 qadevOOo/runner/helper/OfficeProvider.java|3 +-
 qadevOOo/runner/helper/ProcessHandler.java|8 ---
 qadevOOo/runner/util/dbg.java |6 +++--
 qadevOOo/tests/java/ifc/form/component/_DatabaseForm.java |5 ++--
 qadevOOo/tests/java/mod/_dbaccess/ORowSet.java|9 +++-
 qadevOOo/tests/java/mod/_forms/ODatabaseForm.java |   15 --
 10 files changed, 52 insertions(+), 15 deletions(-)

New commits:
commit a25868231adba6a3be30f9aedb71315de0c79acd
Author: Caolán McNamara 
Date:   Wed Oct 4 13:04:25 2017 +0100

coverity#1399440 Dm: Dubious method used

Change-Id: Ied0a5218b4f95a300d09483315d577b5bdf01bae
Reviewed-on: https://gerrit.libreoffice.org/43135
Tested-by: Jenkins 
Reviewed-by: Caolán McNamara 
Tested-by: Caolán McNamara 

diff --git a/framework/qa/complex/api_internal/CheckAPI.java 
b/framework/qa/complex/api_internal/CheckAPI.java
index bdeb2173dc10..8ee5b1f06c05 100644
--- a/framework/qa/complex/api_internal/CheckAPI.java
+++ b/framework/qa/complex/api_internal/CheckAPI.java
@@ -23,6 +23,7 @@ import static org.junit.Assert.fail;
 import helper.OfficeProvider;
 import helper.ProcessHandler;
 
+import java.io.UnsupportedEncodingException;
 import java.util.StringTokenizer;
 import lib.TestParameters;
 
@@ -110,14 +111,18 @@ public class CheckAPI  {
 handler.kill();
 util.utils.pause(1);
 OfficeProvider op = new OfficeProvider();
-xMSF = (XMultiServiceFactory)op.getManager(param);
-param.put("ServiceFactory",xMSF);
 try {
+xMSF = (XMultiServiceFactory)op.getManager(param);
+param.put("ServiceFactory",xMSF);
+
 oObj = xMSF.createInstance("org.openoffice.RunnerService");
 }
 catch(com.sun.star.uno.Exception e) {
 fail("Could not create Instance of 
'org.openoffice.RunnerService'");
 }
+catch (UnsupportedEncodingException e) {
+fail("Could not get Manager'");
+}
 }
 System.out.println(erg);
 String processedErg = parseResult(erg);
diff --git a/qadevOOo/runner/base/java_complex.java 
b/qadevOOo/runner/base/java_complex.java
index 212c9337778f..9e61c5c5f9ae 100644
--- a/qadevOOo/runner/base/java_complex.java
+++ b/qadevOOo/runner/base/java_complex.java
@@ -29,6 +29,7 @@ import share.LogWriter;
 import stats.Summarizer;
 import lib.TestParameters;
 import util.PropertyName;
+import java.io.UnsupportedEncodingException;
 
 /**
  * Test base for executing a java complex test.
@@ -110,6 +111,10 @@ public class java_complex implements TestBase
 {
 office = null;
 }
+catch (UnsupportedEncodingException e)
+{
+office = null;
+}
 }
 log.initialize(entries[i], 
param.getBool(PropertyName.LOGGING_IS_ACTIVE));
 entries[i].Logger = log;
diff --git a/qadevOOo/runner/base/java_fat.java 
b/qadevOOo/runner/base/java_fat.java
index 4ed28f2c3652..c85103508cbe 100644
--- a/qadevOOo/runner/base/java_fat.java
+++ b/qadevOOo/runner/base/java_fat.java
@@ -24,6 +24,7 @@ import java.io.BufferedReader;
 import java.io.FileInputStream;
 import java.io.InputStreamReader;
 import java.io.PrintWriter;
+import java.io.UnsupportedEncodingException;
 import java.util.ArrayList;
 import lib.MultiMethodTest;
 import lib.TestCase;
@@ -446,7 +447,7 @@ public class java_fat implements TestBase {
 return ifc.run(entry, tEnv, param);
 }
 
-private AppProvider startOffice(lib.TestParameters param) {
+private AppProvider startOffice(lib.TestParameters param) throws 
UnsupportedEncodingException {
 if (m_aDynamicClassLoader == null) {
 m_aDynamicClassLoader = new DynamicClassLoader();
 }
diff --git a/qadevOOo/runner/helper/AppProvider.java 
b/qadevOOo/runner/helper/AppProvider.java
index e8f77d1f059a..a42411ac6589 100644
--- a/qadevOOo/runner/helper/AppProvider.java
+++ b/qadevOOo/runner/helper/AppProvider.java
@@ -18,6 +18,8 @@
 
 package helper;
 
+import java.io.UnsupportedEncodingException;
+
 /**
  *
  * Interface to get a Manager to access the application to check
@@ -27,7 +29,7 @@ public interface AppProvider {
 /**
  * Method to get the desired Manager
  */
-Object getManager(lib.TestParameters param);
+Object 

[Libreoffice-commits] core.git: framework/qa xmlsecurity/inc

2017-09-01 Thread Miklos Vajna
 framework/qa/cppunit/dispatchtest.cxx|2 +-
 xmlsecurity/inc/documentsignaturemanager.hxx |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit feb463e93f8c7beb0f6abb52812ac05c4f7724c2
Author: Miklos Vajna 
Date:   Fri Sep 1 09:05:00 2017 +0200

xmlsecurity: fix inconsistent param naming in interface/implementation

Don't talk about enumeration when it's a number.

Change-Id: I756063534b38478c382eaf72829091a4e27a6c4f
Reviewed-on: https://gerrit.libreoffice.org/41779
Reviewed-by: Miklos Vajna 
Tested-by: Jenkins 

diff --git a/framework/qa/cppunit/dispatchtest.cxx 
b/framework/qa/cppunit/dispatchtest.cxx
index 040313dad31a..a09bdb99b0ed 100644
--- a/framework/qa/cppunit/dispatchtest.cxx
+++ b/framework/qa/cppunit/dispatchtest.cxx
@@ -54,7 +54,7 @@ public:
 virtual uno::Reference SAL_CALL 
getSlaveDispatchProvider() override;
 
 // frame::XDispatchProvider
-virtual uno::Sequence SAL_CALL 
queryDispatches(const uno::Sequence& xRequests) 
override;
+virtual uno::Sequence SAL_CALL 
queryDispatches(const uno::Sequence& rRequests) 
override;
 virtual uno::Reference SAL_CALL queryDispatch(const 
util::URL& rURL, const OUString& rTargetFrameName, sal_Int32 SearchFlags) 
override;
 };
 
diff --git a/xmlsecurity/inc/documentsignaturemanager.hxx 
b/xmlsecurity/inc/documentsignaturemanager.hxx
index 0ea708c5d241..146943812eb0 100644
--- a/xmlsecurity/inc/documentsignaturemanager.hxx
+++ b/xmlsecurity/inc/documentsignaturemanager.hxx
@@ -59,7 +59,7 @@ public:
  * differently when they are signed (c14n transformation)
  */
 bool isXML(const OUString& rURI);
-SignatureStreamHelper ImplOpenSignatureStream(sal_Int32 eStreamMode, bool 
bTempStream);
+SignatureStreamHelper ImplOpenSignatureStream(sal_Int32 nStreamOpenMode, 
bool bTempStream);
 /// Add a new signature, using xCert as a signing certificate, and 
rDescription as description.
 bool add(const css::uno::Reference& xCert,
  const css::uno::Reference& 
xSecurityContext,
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: framework/qa oox/source sc/qa sw/qa xmloff/source xmlsecurity/source

2017-07-21 Thread Andrea Gelmini
 framework/qa/complex/path_substitution/PathSubstitutionTest.java |2 +-
 oox/source/drawingml/diagram/diagramlayoutatoms.cxx  |2 +-
 sc/qa/unit/subsequent_export-test.cxx|4 ++--
 sw/qa/extras/odfimport/odfimport.cxx |2 +-
 sw/qa/extras/ooxmlimport/ooxmlimport.cxx |2 +-
 xmloff/source/core/nmspmap.cxx   |4 ++--
 xmlsecurity/source/xmlsec/mscrypt/akmngr.cxx |2 +-
 7 files changed, 9 insertions(+), 9 deletions(-)

New commits:
commit 0ebd75c5acc24568b0a792a81a3454e81faa5abb
Author: Andrea Gelmini 
Date:   Fri Jul 21 13:44:56 2017 +0200

Fix typos

Change-Id: I43f38b4dda6b1999d84d9f9760d0fae4c0358394
Reviewed-on: https://gerrit.libreoffice.org/40277
Reviewed-by: Michael Stahl 
Tested-by: Michael Stahl 

diff --git a/framework/qa/complex/path_substitution/PathSubstitutionTest.java 
b/framework/qa/complex/path_substitution/PathSubstitutionTest.java
index abf83cdce99b..69c952d9d58d 100644
--- a/framework/qa/complex/path_substitution/PathSubstitutionTest.java
+++ b/framework/qa/complex/path_substitution/PathSubstitutionTest.java
@@ -68,7 +68,7 @@ public class PathSubstitutionTest
 {
 XMultiServiceFactory xMSF = getMSF();
 System.out.println(" Testing the XStringSubstitution interface 
");
-System.out.println("Create intance of test object.\n");
+System.out.println("Create instance of test object.\n");
 XStringSubstitution oObj = null;
 try
 {
diff --git a/oox/source/drawingml/diagram/diagramlayoutatoms.cxx 
b/oox/source/drawingml/diagram/diagramlayoutatoms.cxx
index fef4ad22e44a..80f99673243b 100644
--- a/oox/source/drawingml/diagram/diagramlayoutatoms.cxx
+++ b/oox/source/drawingml/diagram/diagramlayoutatoms.cxx
@@ -210,7 +210,7 @@ void AlgAtom::layoutShape( const ShapePtr& rShape,
 
 case XML_lin:
 {
-// spread childres evenly across one axis, strech across second
+// spread children evenly across one axis, stretch across second
 
 if (rShape->getChildren().empty() || rShape->getSize().Width == 0 
|| rShape->getSize().Height == 0)
 break;
diff --git a/sc/qa/unit/subsequent_export-test.cxx 
b/sc/qa/unit/subsequent_export-test.cxx
index b8a0cfd8a378..5a6610c72f60 100644
--- a/sc/qa/unit/subsequent_export-test.cxx
+++ b/sc/qa/unit/subsequent_export-test.cxx
@@ -677,7 +677,7 @@ void ScExportTest::testXfDefaultValuesXLSX()
 void ScExportTest::testColumnWidthResaveXLSX()
 {
 // tdf#91475 FILESAVE: Column width is not preserved in XLSX / after round 
trip.
-// Test if after resave .xlsx file, columns width is identical with with 
previous one
+// Test if after resave .xlsx file, columns width is identical with 
previous one
 ScDocShellRef xShell = loadDoc("different-column-width-excel2010.", 
FORMAT_XLSX);
 CPPUNIT_ASSERT(xShell.is());
 
@@ -716,7 +716,7 @@ void ScExportTest::testColumnWidthExportFromODStoXLSX()
 {
 // tdf#91475 FILESAVE: Column width is not preserved in XLSX / after round 
trip.
 // Test if after export .ods to .xlsx format, displayed columns width
-// is identical with with previous (.ods) one
+// is identical with previous (.ods) one
 
 ScDocShellRef xShell = loadDoc("different-column-width.", FORMAT_ODS);
 
diff --git a/sw/qa/extras/odfimport/odfimport.cxx 
b/sw/qa/extras/odfimport/odfimport.cxx
index 10ea634df9d2..edcdd5deb6f9 100644
--- a/sw/qa/extras/odfimport/odfimport.cxx
+++ b/sw/qa/extras/odfimport/odfimport.cxx
@@ -840,7 +840,7 @@ DECLARE_ODFIMPORT_TEST(testTdf109080_style_ns, 
"tdf109080_style_ns.odt")
 
 DECLARE_ODFIMPORT_TEST(testTdf109228, "tdf109228.odt")
 {
-//  Embedded object with no frame name was imported incorrectly, it was 
achored 'to character' instead of 'as character'
+//  Embedded object with no frame name was imported incorrectly, it was 
anchored 'to character' instead of 'as character'
 CPPUNIT_ASSERT_EQUAL(text::TextContentAnchorType_AS_CHARACTER, 
getProperty(getShape(1), "AnchorType"));
 }
 
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx 
b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index 384e0e09a053..6d1b831b8ddb 100644
--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
@@ -1399,7 +1399,7 @@ DECLARE_OOXMLIMPORT_TEST(testTdf109053, "tdf109053.docx")
 
 DECLARE_OOXMLIMPORT_TEST(testTdf108849, "tdf108849.docx")
 {
-// sectPr element that is child element of body must be the last child. 
Hovewer, Word accepts it
+// sectPr element that is child element of body must be the last child. 
However, Word accepts it
 // in wrong places, and we should do the same (bug-to-bug compatibility) 
without creating extra sections.
 CPPUNIT_ASSERT_EQUAL(2, getParagraphs());
 

[Libreoffice-commits] core.git: framework/qa

2017-04-12 Thread Caolán McNamara
 framework/qa/cppunit/dispatchtest.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b2af27abaf0531cdd72a5d3b298b7eff5d8bffc5
Author: Caolán McNamara 
Date:   Wed Apr 12 16:59:49 2017 +0100

update test to pass now that .ui files are found

with 506cab1a01b0481d0831a7a692a26dc5a5b55e91

"take the .ui files from $BRAND_BASE_DIR/$BRAND_SHARE_SUBDIR"

in place .ui files are found and the count here changes,

reverting the above makes it pass, but also reverting
08cf2fd01064306eef7fdbb5b62320947c4d1089 (framework: last 
dispatchInterceptor
gets asked first, 2016-05-20) that this test wants to test also passes

Change-Id: I01f5b77065e9562619412824bf69494b7b672b68

diff --git a/framework/qa/cppunit/dispatchtest.cxx 
b/framework/qa/cppunit/dispatchtest.cxx
index 3dd995510d50..554581debe55 100644
--- a/framework/qa/cppunit/dispatchtest.cxx
+++ b/framework/qa/cppunit/dispatchtest.cxx
@@ -191,7 +191,7 @@ void DispatchTest::testInterception()
 CPPUNIT_ASSERT_EQUAL(1, pInterceptor->getExpected());
 CPPUNIT_ASSERT_EQUAL(0, pInterceptor->getUnexpected());
 dispatchCommand(mxComponent, ".uno:Italic", {});
-CPPUNIT_ASSERT_EQUAL(0, pInterceptor->getExpected());
+CPPUNIT_ASSERT_EQUAL(1, pInterceptor->getExpected());
 // This was 1: MyInterceptor::queryDispatch() was called for .uno:Italic.
 CPPUNIT_ASSERT_EQUAL(0, pInterceptor->getUnexpected());
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: framework/qa odk/examples qadevOOo/runner

2016-09-29 Thread Gabor Kelemen
 framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java |   10 

 odk/examples/DevelopersGuide/OfficeDev/ContextMenuInterceptor.java  |   12 
+-
 qadevOOo/runner/helper/ContextMenuInterceptor.java  |   10 

 3 files changed, 16 insertions(+), 16 deletions(-)

New commits:
commit d77a23f8bb017024aefa63defbc64b1f7c05cda2
Author: Gabor Kelemen 
Date:   Thu Sep 29 10:34:07 2016 +0200

tdf#95386 Remove remaining mentions of Help Agent

Replace it with the Help on Help command

Change-Id: Ia454a2f6a123b4fb68fda1eae1e07e99ba81487f
Reviewed-on: https://gerrit.libreoffice.org/29381
Tested-by: Jenkins 
Reviewed-by: Miklos Vajna 

diff --git 
a/framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java 
b/framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java
index 2a37129..eb0060d 100644
--- a/framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java
+++ b/framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java
@@ -78,12 +78,12 @@ public class ContextMenuInterceptor implements 
XContextMenuInterceptor
 // insert menu entry to sub menu
 xSubMenuContainer.insertByIndex(0, xMenuEntry);
 
-// intialize help/help agent
-// entry "Help Agent"
+// intialize help/help on help
+// entry "Help on Help"
 xMenuEntry = 
UnoRuntime.queryInterface(com.sun.star.beans.XPropertySet.class, 
xMenuElementFactory.createInstance("com.sun.star.ui.ActionTrigger"));
-xMenuEntry.setPropertyValue("Text", "Help Agent");
-xMenuEntry.setPropertyValue("CommandURL", "slot:5962");
-xMenuEntry.setPropertyValue("HelpURL", "5962");
+xMenuEntry.setPropertyValue("Text", "Help on Help");
+xMenuEntry.setPropertyValue("CommandURL", "slot:5400");
+xMenuEntry.setPropertyValue("HelpURL", "5400");
 
 // insert menu entry to sub menu
 xSubMenuContainer.insertByIndex(1, xMenuEntry);
diff --git a/odk/examples/DevelopersGuide/OfficeDev/ContextMenuInterceptor.java 
b/odk/examples/DevelopersGuide/OfficeDev/ContextMenuInterceptor.java
index 524a2ae..642c978 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/ContextMenuInterceptor.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/ContextMenuInterceptor.java
@@ -70,7 +70,7 @@ public class ContextMenuInterceptor implements 
XContextMenuInterceptor {
 com.sun.star.text.XTextDocument xDoc 
=UnoRuntime.queryInterface(com.sun.star.text.XTextDocument.class,
   xComponent);
 
-String infoMsg = "All context menus of the created document frame 
contains now a 'Help' entry with the submenus 'Content', 'Help Agent' and 
'Tips'.\n\nPress 'Return' in the shell to remove the context menu interceptor 
and finish the example!";
+String infoMsg = "All context menus of the created document frame 
contains now a 'Help' entry with the submenus 'Content', 'Help on Help' and 
'Tips'.\n\nPress 'Return' in the shell to remove the context menu interceptor 
and finish the example!";
 xDoc.getText().setString(infoMsg);
 
 // ensure that the document content is optimal visible
@@ -101,7 +101,7 @@ public class ContextMenuInterceptor implements 
XContextMenuInterceptor {
 com.sun.star.ui.XContextMenuInterceptor.class, 
aContextMenuInterceptor );
 xContextMenuInterception.registerContextMenuInterceptor( 
xContextMenuInterceptor );
 
-System.out.println( "\n ... all context menus of the 
created document frame contains now a 'Help' entry with the\n submenus 
'Content', 'Help Agent' and 'Tips'.\n\nPress 'Return' to remove the context 
menu interceptor and finish the example!");
+System.out.println( "\n ... all context menus of the 
created document frame contains now a 'Help' entry with the\n submenus 
'Content', 'Help on Help' and 'Tips'.\n\nPress 'Return' to remove the context 
menu interceptor and finish the example!");
 
 java.io.BufferedReader reader
 = new java.io.BufferedReader(new 
java.io.InputStreamReader(System.in));
@@ -196,14 +196,14 @@ public class ContextMenuInterceptor implements 
XContextMenuInterceptor {
 // insert menu entry to sub menu
 xSubMenuContainer.insertByIndex( 0, xMenuEntry );
 
-// intialize help/help agent
+// intialize help/help on help
 xMenuEntry = UnoRuntime.queryInterface(
  com.sun.star.beans.XPropertySet.class,
  xMenuElementFactory.createInstance(
 

[Libreoffice-commits] core.git: framework/qa

2016-09-25 Thread Markus Mohrhard
 framework/qa/complex/XTitle/CheckXTitle.java |8 ++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit 4954fff93ad353fc4dfab0ced51084dfcd6043ba
Author: Markus Mohrhard 
Date:   Sun Sep 25 18:59:43 2016 +0200

disable the two unstable tests for now

We need a replacement for waitUntilDispatcherAvailable that works with
events. Using a timeout will always cause issues.

Change-Id: I8893d701a5f0cf2fd497246d66b220466a83
Reviewed-on: https://gerrit.libreoffice.org/29275
Reviewed-by: Markus Mohrhard 
Tested-by: Markus Mohrhard 

diff --git a/framework/qa/complex/XTitle/CheckXTitle.java 
b/framework/qa/complex/XTitle/CheckXTitle.java
index 994215a..fce575c 100644
--- a/framework/qa/complex/XTitle/CheckXTitle.java
+++ b/framework/qa/complex/XTitle/CheckXTitle.java
@@ -152,8 +152,10 @@ public class CheckXTitle
 
 @descr cycles through default view and print preview
and asserts that the title doesn't change.
+
+disabled until the waitUntilDispatcherAvailable can be replaced
 */
-@Test public void checkTitleNumbers() throws Exception
+public void checkTitleNumbers() throws Exception
 {
 PropertyValue[] lArgs = new PropertyValue[1];
 
@@ -203,8 +205,10 @@ public class CheckXTitle
 @descr sets frame title. then cycles through default and
print preview. then closes the window and checks
for infinite recursion.
+
+disabled until the waitUntilDispatcherAvailable can be replaced
 */
-@Test public void setTitleAndCheck() throws Exception
+public void setTitleAndCheck() throws Exception
 {
 PropertyValue[] lArgs = new PropertyValue[1];
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: framework/qa

2016-09-22 Thread Luke Deller
 framework/qa/complex/XTitle/CheckXTitle.java |   58 +--
 1 file changed, 46 insertions(+), 12 deletions(-)

New commits:
commit 328310d52e0f52ed1ebbd23535a67a82693adc61
Author: Luke Deller 
Date:   Thu Sep 22 18:53:49 2016 +1000

Fix JunitTest_framework_complex:CheckXTitle

This unit test class relies on calling waitForEventIdle to wait for
UI transitions to complete.  On Windows this is not reliable, due to
VCL's use of PostMessage (Windows message queue) to asynchronously
handle some events such as focus changes.

This issue causes the test to intermittently fail when the dispatcher
for the action the test wants to perform (like closing the print
preview) is not available yet.

 - Change the test code to explicitly wait for the desired dispatcher
   to be available

 - Remove the sleep which was added earlier this year to address this
   symptom in one location

Change-Id: Id701209a28cd0c806ab0a548508d31f9f11211f5
Reviewed-on: https://gerrit.libreoffice.org/29167
Reviewed-by: Noel Grandin 
Tested-by: Noel Grandin 

diff --git a/framework/qa/complex/XTitle/CheckXTitle.java 
b/framework/qa/complex/XTitle/CheckXTitle.java
index 1372cf3..994215a 100644
--- a/framework/qa/complex/XTitle/CheckXTitle.java
+++ b/framework/qa/complex/XTitle/CheckXTitle.java
@@ -100,18 +100,52 @@ public class CheckXTitle
 m_xMSF= null;
 }
 
+private URL parseURL(String unoURL)
+{
+URL[] aParseURL = new URL[] { new URL() };
+aParseURL[0].Complete = unoURL;
+m_xParser.parseStrict(aParseURL);
+return aParseURL[0];
+}
+
+private void waitUntilDispatcherAvailable(XModel xModel, String unoURL)
+throws InterruptedException
+{
+utils.waitForEventIdle(m_xMSF);
+
+// On Windows, some events such as focus changes are handled
+// asynchronously using PostMessage (Windows message queue)
+// so the previous UI transition may still not have completed yet
+// even though we called waitForEventIdle.
+//
+// Loop a few times until the desired dispatcher is available, which
+// is a better indication that the UI transition has completed.
+
+XDispatchProvider xDisProv;
+XDispatch xDispatcher = null;
+URL parsed_url = parseURL(unoURL);
+
+for (int ntries = 1; ntries < 5; ++ntries) {
+xDisProv = UnoRuntime.queryInterface(
+XDispatchProvider.class, xModel.getCurrentController() );
+xDispatcher = xDisProv.queryDispatch(parsed_url, "", 0);
+if (xDispatcher != null)
+break;
+Thread.sleep(250);
+}
+assertNotNull("Can not obtain dispatcher for query: " + unoURL, 
xDispatcher);
+}
+
+
 // prepare an uno URL query and dispatch it
 private void prepareQueryAndDispatch(XDispatchProvider xDisProv, String 
unoURL)
 {
 XDispatch xDispatcher = null;
-URL[] aParseURL = new URL[1];
-aParseURL[0] = new URL();
-aParseURL[0].Complete = unoURL;
-m_xParser.parseStrict(aParseURL);
+URL parsed_url = parseURL(unoURL);
 
-xDispatcher = xDisProv.queryDispatch(aParseURL[0], "", 0);
+xDispatcher = xDisProv.queryDispatch(parsed_url, "", 0);
 assertNotNull("Can not obtain dispatcher for query: " + unoURL, 
xDispatcher);
-xDispatcher.dispatch(aParseURL[0], null);
+xDispatcher.dispatch(parsed_url, null);
 }
 
 /** @short checks the numbers displayed in the title
@@ -142,7 +176,8 @@ public class CheckXTitle
 
 xDisProv = UnoRuntime.queryInterface( XDispatchProvider.class, 
xModel.getCurrentController() );
 prepareQueryAndDispatch( xDisProv, UNO_URL_FOR_PRINT_PREVIEW );
-utils.waitForEventIdle(m_xMSF);
+waitUntilDispatcherAvailable( xModel, 
UNO_URL_FOR_CLOSING_PRINT_PREVIEW );
+
 // get window title with ui in print preview mode
 String printPreviewTitle = xTitle.getTitle();
 assertEquals("Title mismatch between default view window title and 
print preview window title",
@@ -150,7 +185,8 @@ public class CheckXTitle
 
 xDisProv = UnoRuntime.queryInterface( XDispatchProvider.class, 
xModel.getCurrentController() );
 prepareQueryAndDispatch( xDisProv, UNO_URL_FOR_CLOSING_PRINT_PREVIEW );
-utils.waitForEventIdle(m_xMSF);
+waitUntilDispatcherAvailable( xModel, UNO_URL_FOR_CLOSING_DOC );
+
 //get window title with ui back in default mode
 String printPreviewClosedTitle = xTitle.getTitle();
 assertEquals("Title mismatch between default view window title and 
title after switching from print preview to default view window"
 ,defaultTitle, printPreviewClosedTitle);
@@ -189,14 +225,12 @@ public class 

[Libreoffice-commits] core.git: framework/qa

2016-08-11 Thread Tor Lillqvist
 framework/qa/complex/XTitle/CheckXTitle.java |   13 ++---
 1 file changed, 6 insertions(+), 7 deletions(-)

New commits:
commit 3cff10827974cd773810faa2857ab81a6dcff0ee
Author: Tor Lillqvist 
Date:   Thu Aug 11 11:15:06 2016 +0300

Follow-up to 38a3743e0c5d52f9386f74097fd512d3133fbbe3

Change-Id: If70b5754c161a0e1b262abeac8c54dde60515280

diff --git a/framework/qa/complex/XTitle/CheckXTitle.java 
b/framework/qa/complex/XTitle/CheckXTitle.java
index 3e00864..1372cf3 100644
--- a/framework/qa/complex/XTitle/CheckXTitle.java
+++ b/framework/qa/complex/XTitle/CheckXTitle.java
@@ -210,11 +210,12 @@ public class CheckXTitle
 xDisProv = null;
 }
 
-/** @short checks loading of new document with readonly set to true
+/** @short checks creation of new empty document with readonly set to true
 
-@descr loads a new document with readonly mode set to true.
-   this should fail because new doc can not be opened in
-   read only mode
+@descr creation of a new document with readonly property set
+   to true.  this should not fail even if as such it can
+   be seen as a slightly silly thing to do. But existing
+   3rd-party code depends on it to work.
 */
 @Test public void checkLoadingWithReadOnly()
 {
@@ -232,10 +233,8 @@ public class CheckXTitle
 try{
 xDoc = 
m_xLoader.loadComponentFromURL("private:factory/swriter", "_default", 0, lArgs);
 } catch (Exception e) {
-//exception is expected. do nothing
 }
-
-assertNull("Loading new document with read only mode true should have 
failed", xDoc);
+assertNotNull("Creating a new document read with ReadOnly property 
true should work (even if slightly silly)", xDoc);
 }
 
 private XMultiServiceFactory getMSF()
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: framework/qa

2016-04-28 Thread Michael Stahl
 framework/qa/complex/XTitle/CheckXTitle.java |2 ++
 1 file changed, 2 insertions(+)

New commits:
commit e2b37bfb8a991e0ed2cfd230f7f34aa36f411430
Author: Michael Stahl 
Date:   Thu Apr 28 13:10:34 2016 +0200

framework: CheckXTitle still sometimes fails on WNT...

... when dispatching the .uno:CloseWin.

Change-Id: Iaf0651ea7e05bd8a6629d5af6e62f5918ef241ce

diff --git a/framework/qa/complex/XTitle/CheckXTitle.java 
b/framework/qa/complex/XTitle/CheckXTitle.java
index adb16da..e798732 100644
--- a/framework/qa/complex/XTitle/CheckXTitle.java
+++ b/framework/qa/complex/XTitle/CheckXTitle.java
@@ -203,6 +203,8 @@ public class CheckXTitle
 prepareQueryAndDispatch( xDisProv, UNO_URL_FOR_CLOSING_PRINT_PREVIEW );
 utils.waitForEventIdle(m_xMSF);
 
+Thread.sleep(250); // FIXME why is this needed?
+
 // close document
 xDisProv = UnoRuntime.queryInterface( XDispatchProvider.class, 
xModel.getCurrentController() );
 try{
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: framework/qa

2016-04-13 Thread Stephan Bergmann
 framework/qa/complex/XTitle/CheckXTitle.java |   14 --
 1 file changed, 4 insertions(+), 10 deletions(-)

New commits:
commit e2d97f16482cf997e91433cc411d107f26bf7b75
Author: Stephan Bergmann 
Date:   Wed Apr 13 12:12:14 2016 +0200

Use UNO service constructors

Change-Id: I8ac2621a4594b2d8a7cf8fdafd2191f3bf52579b

diff --git a/framework/qa/complex/XTitle/CheckXTitle.java 
b/framework/qa/complex/XTitle/CheckXTitle.java
index 4228f5b..adb16da 100644
--- a/framework/qa/complex/XTitle/CheckXTitle.java
+++ b/framework/qa/complex/XTitle/CheckXTitle.java
@@ -34,9 +34,9 @@ import org.openoffice.test.OfficeConnection;
 import org.openoffice.test.OfficeFileUrl;
 
 import com.sun.star.beans.PropertyValue;
+import com.sun.star.frame.Desktop;
 import com.sun.star.frame.FrameSearchFlag;
 import com.sun.star.frame.XComponentLoader;
-import com.sun.star.frame.XFrame;
 import com.sun.star.frame.XFrame2;
 import com.sun.star.frame.XModel;
 import com.sun.star.frame.XTitle;
@@ -45,6 +45,7 @@ import com.sun.star.frame.XStorable;
 import com.sun.star.lang.XComponent;
 import com.sun.star.lang.XMultiServiceFactory;
 import com.sun.star.uno.UnoRuntime;
+import com.sun.star.util.URLTransformer;
 import com.sun.star.util.XCloseable;
 import com.sun.star.util.XURLTransformer;
 import com.sun.star.util.URL;
@@ -90,18 +91,11 @@ public class CheckXTitle
 /* points to the global uno service manager. */
 m_xMSF = getMSF();
 
-// create desktop instance
-/* provides XComponentLoader interface. */
-XFrame xDesktop = UnoRuntime.queryInterface(XFrame.class, 
m_xMSF.createInstance("com.sun.star.frame.Desktop"));
-
 // define default loader
-m_xLoader = UnoRuntime.queryInterface(XComponentLoader.class, 
xDesktop);
-assertNotNull("Desktop service doesn't support needed component loader 
interface.", m_xLoader);
+m_xLoader = Desktop.create(connection.getComponentContext());
 
 // get URL parser
-m_xParser = UnoRuntime.queryInterface(XURLTransformer.class, 
m_xMSF.createInstance("com.sun.star.util.URLTransformer"));
-assertNotNull("Could not obtain URL parser instance", m_xParser);
-
+m_xParser = URLTransformer.create(connection.getComponentContext());
 }
 
 /** @short  close the environment.
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: framework/qa

2016-04-13 Thread Akash Jain
 framework/qa/complex/XTitle/CheckXTitle.java |   14 --
 1 file changed, 14 deletions(-)

New commits:
commit e1d22efcc9e6ae9900cff69f35b0ef8a1d3e
Author: Akash Jain 
Date:   Wed Apr 13 09:44:46 2016 +0530

remove unused m_xFrame in CheckXTitle unit test

Change-Id: I1b654b308b79d13d23a1b9a935fd2eaf84836d91
Reviewed-on: https://gerrit.libreoffice.org/24044
Tested-by: Jenkins 
Reviewed-by: Stephan Bergmann 

diff --git a/framework/qa/complex/XTitle/CheckXTitle.java 
b/framework/qa/complex/XTitle/CheckXTitle.java
index 3e98259..4228f5b 100644
--- a/framework/qa/complex/XTitle/CheckXTitle.java
+++ b/framework/qa/complex/XTitle/CheckXTitle.java
@@ -69,9 +69,6 @@ public class CheckXTitle
 
 // members
 
-/** provides XComponentLoader interface */
-private XFrame m_xFrame = null;
-
 /** will be set to xDesktop OR xFrame. */
 private XComponentLoader m_xLoader = null;
 
@@ -97,11 +94,6 @@ public class CheckXTitle
 /* provides XComponentLoader interface. */
 XFrame xDesktop = UnoRuntime.queryInterface(XFrame.class, 
m_xMSF.createInstance("com.sun.star.frame.Desktop"));
 
-// create frame instance
-m_xFrame = xDesktop.findFrame("testFrame_titleChecker",
-FrameSearchFlag.TASKS | 
FrameSearchFlag.CREATE);
-assertNotNull("Couldn't create test frame.", m_xFrame);
-
 // define default loader
 m_xLoader = UnoRuntime.queryInterface(XComponentLoader.class, 
xDesktop);
 assertNotNull("Desktop service doesn't support needed component loader 
interface.", m_xLoader);
@@ -116,10 +108,6 @@ public class CheckXTitle
  */
 @After public void after() throws Exception
 {
-XCloseable xClose = UnoRuntime.queryInterface(XCloseable.class, 
m_xFrame);
-xClose.close(false);
-
-m_xFrame  = null;
 m_xLoader = null;
 m_xParser = null;
 m_xMSF= null;
@@ -223,11 +211,9 @@ public class CheckXTitle
 
 // close document
 xDisProv = UnoRuntime.queryInterface( XDispatchProvider.class, 
xModel.getCurrentController() );
-// todo: execute this on a new thread using executorservice and 
terminate it after some time
 try{
 prepareQueryAndDispatch( xDisProv, UNO_URL_FOR_CLOSING_DOC );
 } catch( Exception e ) {
-// cr: there is no exception being thrown when there should be one
 fail(e.toString());
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: framework/qa

2016-04-07 Thread Akash Jain
 framework/qa/complex/XTitle/CheckXTitle.java |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit f6695647b6c96a1875fd05a59e840ead11cd5520
Author: Akash Jain 
Date:   Wed Apr 6 23:23:53 2016 +0530

add waitForIdleEvent in remaining tests

add waitForIdleEvent in remaining tests in
framework/qa/complex/XTitle/CheckXTitle.java
Change-Id: Ibc98070c797ef56df60cd925353c9e364e83abe0
Reviewed-on: https://gerrit.libreoffice.org/23869
Reviewed-by: Stephan Bergmann 
Tested-by: Stephan Bergmann 

diff --git a/framework/qa/complex/XTitle/CheckXTitle.java 
b/framework/qa/complex/XTitle/CheckXTitle.java
index 32da8d4..3e98259 100644
--- a/framework/qa/complex/XTitle/CheckXTitle.java
+++ b/framework/qa/complex/XTitle/CheckXTitle.java
@@ -167,6 +167,7 @@ public class CheckXTitle
 
 xDisProv = UnoRuntime.queryInterface( XDispatchProvider.class, 
xModel.getCurrentController() );
 prepareQueryAndDispatch( xDisProv, UNO_URL_FOR_PRINT_PREVIEW );
+utils.waitForEventIdle(m_xMSF);
 // get window title with ui in print preview mode
 String printPreviewTitle = xTitle.getTitle();
 assertEquals("Title mismatch between default view window title and 
print preview window title",
@@ -174,6 +175,7 @@ public class CheckXTitle
 
 xDisProv = UnoRuntime.queryInterface( XDispatchProvider.class, 
xModel.getCurrentController() );
 prepareQueryAndDispatch( xDisProv, UNO_URL_FOR_CLOSING_PRINT_PREVIEW );
+utils.waitForEventIdle(m_xMSF);
 //get window title with ui back in default mode
 String printPreviewClosedTitle = xTitle.getTitle();
 assertEquals("Title mismatch between default view window title and 
title after switching from print preview to default view window"
 ,defaultTitle, printPreviewClosedTitle);
@@ -239,8 +241,6 @@ public class CheckXTitle
this should fail because new doc can not be opened in
read only mode
 */
-// cr: this test should ideally be in CheckXModuleManager
-// but that test is disabled in JunitTest_framework_complex.mk
 @Test public void checkLoadingWithReadOnly()
 {
 PropertyValue[] lArgs = new PropertyValue[2];
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: framework/qa

2016-04-06 Thread Stephan Bergmann
 framework/qa/complex/XTitle/CheckXTitle.java |3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 70ad4333d6809b890d14939f9bef926b8e73d323
Author: Stephan Bergmann 
Date:   Wed Apr 6 12:19:56 2016 +0200

See if waitForEventIdle helps here

...the test often fails with the assertNotNull in prepareQueryAndDispatch
firing, suggesting there's a race in getting the dispatch processed before
proceeding

Change-Id: Ib338d761df638a0c5d53777352cfe7519742112b

diff --git a/framework/qa/complex/XTitle/CheckXTitle.java 
b/framework/qa/complex/XTitle/CheckXTitle.java
index 486971a..32da8d4 100644
--- a/framework/qa/complex/XTitle/CheckXTitle.java
+++ b/framework/qa/complex/XTitle/CheckXTitle.java
@@ -23,6 +23,7 @@ import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNull;
 import static org.junit.Assert.fail;
 import helper.URLHelper;
+import util.utils;
 
 import org.junit.After;
 import org.junit.AfterClass;
@@ -211,10 +212,12 @@ public class CheckXTitle
 // switch to print preview mode
 xDisProv = UnoRuntime.queryInterface( XDispatchProvider.class, 
xModel.getCurrentController() );
 prepareQueryAndDispatch( xDisProv, UNO_URL_FOR_PRINT_PREVIEW );
+utils.waitForEventIdle(m_xMSF);
 
 // switch back to default mode
 xDisProv = UnoRuntime.queryInterface( XDispatchProvider.class, 
xModel.getCurrentController() );
 prepareQueryAndDispatch( xDisProv, UNO_URL_FOR_CLOSING_PRINT_PREVIEW );
+utils.waitForEventIdle(m_xMSF);
 
 // close document
 xDisProv = UnoRuntime.queryInterface( XDispatchProvider.class, 
xModel.getCurrentController() );
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


  1   2   >