summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2017-10-15 03:10:47 +0000
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-10-29 22:10:18 +0100
commitd56be38352031695951558bf1dffd0a48c84eaca (patch)
tree1d95105e82bc6841b46fbe8e84c2c6792bdc6e48 /qadevOOo
parent410515366c466c1f8b0a81d47f8263d278af3a18 (diff)
tdf#45904: Move Java _XSheetPageBreak tests to C++
Change-Id: I29111c3495fc9767d1b2c7bab38af5f89b7840f9 Reviewed-on: https://gerrit.libreoffice.org/43399 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/Jar_OOoRunner.mk1
-rw-r--r--qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetObj.csv3
-rw-r--r--qadevOOo/tests/java/ifc/sheet/_XSheetPageBreak.java84
3 files changed, 0 insertions, 88 deletions
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 5f74bc7f8818..93e01587192f 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -629,7 +629,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
qadevOOo/tests/java/ifc/sheet/_XSheetFilterDescriptor \
qadevOOo/tests/java/ifc/sheet/_XSheetLinkable \
qadevOOo/tests/java/ifc/sheet/_XSheetOperation \
- qadevOOo/tests/java/ifc/sheet/_XSheetPageBreak \
qadevOOo/tests/java/ifc/sheet/_XSpreadsheetView \
qadevOOo/tests/java/ifc/style/_CharacterProperties \
qadevOOo/tests/java/ifc/style/_CharacterPropertiesAsian \
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetObj.csv
index 4d0cd3fadbfc..8f7c54adaa3d 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetObj.csv
@@ -263,6 +263,3 @@
"ScTableSheetObj";"com::sun::star::util::XImportable";"doImport()"
"ScTableSheetObj";"com::sun::star::util::XSortable";"createSortDescriptor()"
"ScTableSheetObj";"com::sun::star::util::XSortable";"sort()"
-"ScTableSheetObj";"com::sun::star::sheet::XSheetPageBreak";"getColumnPageBreaks()"
-"ScTableSheetObj";"com::sun::star::sheet::XSheetPageBreak";"getRowPageBreaks()"
-"ScTableSheetObj";"com::sun::star::sheet::XSheetPageBreak";"removeAllManualPageBreaks()"
diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetPageBreak.java b/qadevOOo/tests/java/ifc/sheet/_XSheetPageBreak.java
deleted file mode 100644
index ced779316ea7..000000000000
--- a/qadevOOo/tests/java/ifc/sheet/_XSheetPageBreak.java
+++ /dev/null
@@ -1,84 +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.sheet;
-
-import lib.MultiMethodTest;
-
-import com.sun.star.sheet.TablePageBreakData;
-import com.sun.star.sheet.XSheetPageBreak;
-
-/**
-* Testing <code>com.sun.star.sheet.XSheetPageBreak</code>
-* interface methods :
-* <ul>
-* <li><code> getColumnPageBreaks()</code></li>
-* <li><code> getRowPageBreaks()</code></li>
-* <li><code> removeAllManualPageBreaks()</code></li>
-* </ul> <p>
-* @see com.sun.star.sheet.XSheetPageBreak
-*/
-public class _XSheetPageBreak extends MultiMethodTest {
-
- public XSheetPageBreak oObj = null;
-
- /**
- * Test calls the method and checks returned value. <p>
- * Has <b> OK </b> status if returned value isn't null. <p>
- */
- public void _getColumnPageBreaks() {
- TablePageBreakData[] breakArr = oObj.getColumnPageBreaks();
- tRes.tested("getColumnPageBreaks()", breakArr != null);
- }
-
- /**
- * Test calls the method and checks returned value. <p>
- * Has <b> OK </b> status if returned value isn't null. <p>
- */
- public void _getRowPageBreaks() {
- TablePageBreakData[] breakArr = oObj.getRowPageBreaks();
- tRes.tested("getRowPageBreaks()", breakArr != null);
- }
-
- /**
- * Test calls the method and checks that all breaks gone. <p>
- * Has <b> OK </b> status if number of column breaks and number of row breaks
- * are equal to zero. <p>
- */
- public void _removeAllManualPageBreaks() {
- oObj.removeAllManualPageBreaks();
-
- int manualRowPageBreaks = 0;
- int manualColumnPageBreaks = 0;
-
- log.println("Check if all breaks are gone");
-
- TablePageBreakData[] breakArr = oObj.getColumnPageBreaks();
- for (int i = 0; i < breakArr.length; i++)
- if (breakArr[i].ManualBreak) manualColumnPageBreaks++;
-
- breakArr = oObj.getRowPageBreaks();
- for (int i = 0; i < breakArr.length; i++)
- if (breakArr[i].ManualBreak) manualRowPageBreaks++ ;
-
- tRes.tested(
- "removeAllManualPageBreaks()",
- manualColumnPageBreaks == 0 && manualRowPageBreaks == 0);
- }
-}
-