framework/qa/complex/api_internal/api.lst | 1 qadevOOo/Jar_OOoRunner.mk | 1 qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXFootnoteProperties.csv | 11 - qadevOOo/tests/java/mod/_sw/SwXFootnoteProperties.java | 108 ---------- sw/qa/unoapi/sw_2.sce | 1 5 files changed, 122 deletions(-)
New commits: commit 35d859d1ae23ed1fe3ea92a1d75be5f31a4241b7 Author: Luv Sharma <luvsharma....@gmail.com> AuthorDate: Sat Feb 17 11:34:41 2024 +0530 Commit: Taichi Haradaguchi <20001...@ymail.ne.jp> CommitDate: Sun Feb 18 01:42:32 2024 +0100 tdf#45904 Remove old SwXFootnoteProperties Java test Change-Id: I20f160d557364ffc5240403d6e2c53b5b135ba46 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163524 Tested-by: Jenkins Reviewed-by: Taichi Haradaguchi <20001...@ymail.ne.jp> diff --git a/framework/qa/complex/api_internal/api.lst b/framework/qa/complex/api_internal/api.lst index d783f5ac1f0b..8ae697a9d214 100644 --- a/framework/qa/complex/api_internal/api.lst +++ b/framework/qa/complex/api_internal/api.lst @@ -143,7 +143,6 @@ job208=sw.SwXDocumentIndexMark job209=sw.SwXEndnoteProperties job211=sw.SwXFieldMaster job212=sw.SwXFootnote -job213=sw.SwXFootnoteProperties job215=sw.SwXFootnoteText job216=sw.SwXFrames job217=sw.SwXHeadFootText diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk index a514d65ef8f8..9a30d16bd686 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/SwXEndnoteProperties \ qadevOOo/tests/java/mod/_sw/SwXFieldMaster \ qadevOOo/tests/java/mod/_sw/SwXFootnote \ - qadevOOo/tests/java/mod/_sw/SwXFootnoteProperties \ qadevOOo/tests/java/mod/_sw/SwXFootnoteText \ qadevOOo/tests/java/mod/_sw/SwXFrames \ qadevOOo/tests/java/mod/_sw/SwXHeadFootText \ diff --git a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXFootnoteProperties.csv b/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXFootnoteProperties.csv deleted file mode 100644 index 29abe97f2d58..000000000000 --- a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXFootnoteProperties.csv +++ /dev/null @@ -1,11 +0,0 @@ -"SwXFootnoteProperties";"com::sun::star::text::FootnoteSettings";"CharStyleName" -"SwXFootnoteProperties";"com::sun::star::text::FootnoteSettings";"NumberingType" -"SwXFootnoteProperties";"com::sun::star::text::FootnoteSettings";"PageStyleName" -"SwXFootnoteProperties";"com::sun::star::text::FootnoteSettings";"ParaStyleName" -"SwXFootnoteProperties";"com::sun::star::text::FootnoteSettings";"Prefix" -"SwXFootnoteProperties";"com::sun::star::text::FootnoteSettings";"StartAt" -"SwXFootnoteProperties";"com::sun::star::text::FootnoteSettings";"Suffix" -"SwXFootnoteProperties";"com::sun::star::text::FootnoteSettings";"BeginNotice#optional" -"SwXFootnoteProperties";"com::sun::star::text::FootnoteSettings";"EndNotice#optional" -"SwXFootnoteProperties";"com::sun::star::text::FootnoteSettings";"FootnoteCounting#optional" -"SwXFootnoteProperties";"com::sun::star::text::FootnoteSettings";"PositionEndOfDoc#optional" diff --git a/qadevOOo/tests/java/mod/_sw/SwXFootnoteProperties.java b/qadevOOo/tests/java/mod/_sw/SwXFootnoteProperties.java deleted file mode 100644 index c86bc30c7fff..000000000000 --- a/qadevOOo/tests/java/mod/_sw/SwXFootnoteProperties.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._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.XFootnote; -import com.sun.star.text.XFootnotesSupplier; -import com.sun.star.text.XText; -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 the object, which is represented as set of footnote properties - * (instance of <code>com.sun.star.text.FootnoteSettings</code> service). - * Object implements the following interfaces : - * <ul> - * <li> <code>com::sun::star::text::FootnoteSettings</code></li> - * </ul> <p> - * This object test <b> is NOT </b> designed to be run in several - * threads concurrently. - * @see com.sun.star.text.FootnoteSettings - * @see ifc.text._FootnoteSettings - */ -public class SwXFootnoteProperties extends TestCase { - XTextDocument xTextDoc; - - /** - * Creates text document. - */ - @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 ); - } - - /** - * Disposes text document. - */ - @Override - protected void cleanup( TestParameters tParam, PrintWriter log ) { - log.println( " disposing xTextDoc " ); - util.DesktopTools.closeDoc(xTextDoc); - } - - /** - * Creating a TestEnvironment for the interfaces to be tested. - * Creates an instance of the service - * <code>com.sun.star.text.Footnote</code>. Then inserts created Footnote - * to the text document, and finally gets footnote settings from text - * document through <code>XFootnotesSupplier</code> interface.<br> - */ - @Override - public TestEnvironment createTestEnvironment( - TestParameters Param, PrintWriter log ) throws Exception { - XFootnotesSupplier oInterface = null; - XInterface oObj = null; - XFootnote oFootnote; - - log.println( "Creating a test environment" ); - // get a soffice factory object - XMultiServiceFactory msf = UnoRuntime.queryInterface(XMultiServiceFactory.class, xTextDoc); - log.println("creating a footnote"); - - oFootnote = UnoRuntime.queryInterface(XFootnote.class, - msf.createInstance("com.sun.star.text.Footnote")); - - XText oText = xTextDoc.getText(); - XTextCursor oCursor = oText.createTextCursor(); - - log.println("inserting the footnote into text document"); - oText.insertTextContent(oCursor, oFootnote, false); - - oInterface = UnoRuntime.queryInterface(XFootnotesSupplier.class, xTextDoc); - oObj = oInterface.getFootnoteSettings(); - - TestEnvironment tEnv = new TestEnvironment(oObj); - return tEnv; - } - -} - diff --git a/sw/qa/unoapi/sw_2.sce b/sw/qa/unoapi/sw_2.sce index 0a97578043eb..62856189af02 100644 --- a/sw/qa/unoapi/sw_2.sce +++ b/sw/qa/unoapi/sw_2.sce @@ -20,7 +20,6 @@ -o sw.SwXEndnoteProperties -o sw.SwXFieldMaster -o sw.SwXFootnote --o sw.SwXFootnoteProperties -o sw.SwXFootnoteText -o sw.SwXFrames -o sw.SwXHeadFootText