core.git: 2 commits - sc/qa sw/qa uitest/uitest
sc/qa/uitest/calc_dialogs/openDialogs.py |4 sc/qa/uitest/chart/chartAxes.py|2 sc/qa/uitest/chart/chartDataLabels.py |2 sc/qa/uitest/chart/chartGrid.py|2 sc/qa/uitest/chart/chartGrids.py |2 sc/qa/uitest/chart/chartLegend.py |2 sc/qa/uitest/chart/chartTitles.py |2 sc/qa/uitest/chart/openDialogs.py | 125 + sw/qa/uitest/writer_dialogs/openDialogs.py |4 uitest/uitest/uihelper/testDialog.py | 41 - 10 files changed, 173 insertions(+), 13 deletions(-) New commits: commit 22e97c90cb6334fd58bc856ab025291cb32b48d1 Author: Xisco Fauli AuthorDate: Wed Mar 6 13:06:45 2024 +0100 Commit: Xisco Fauli CommitDate: Wed Mar 6 16:50:25 2024 +0100 related: tdf#159879: test chart dialogs Change-Id: I91d5f4572edff99deb21dd2507c3216ef0d9e4c9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164465 Tested-by: Jenkins Reviewed-by: Xisco Fauli diff --git a/sc/qa/uitest/calc_dialogs/openDialogs.py b/sc/qa/uitest/calc_dialogs/openDialogs.py index f559ceec6a2e..9f26dc91f50b 100644 --- a/sc/qa/uitest/calc_dialogs/openDialogs.py +++ b/sc/qa/uitest/calc_dialogs/openDialogs.py @@ -9,7 +9,7 @@ from uitest.framework import UITestCase import unittest -from uitest.uihelper.testDialog import testDialog +from uitest.uihelper.testDialog import testAppDialog dialogs = [ {"command": ".uno:OpenRemote", "closeButton": "cancel"}, @@ -177,7 +177,7 @@ def load_tests(loader, tests, pattern): # the test only checks if calc crashes by opening the dialog, see e.g. tdf#120227, tdf#125985, tdf#125982 class openDialogs(UITestCase): def check(self, dialog): -testDialog(self, "calc", dialog) +testAppDialog(self, "calc", dialog) dialogCount = 0 for dialog in dialogs: diff --git a/sc/qa/uitest/chart/openDialogs.py b/sc/qa/uitest/chart/openDialogs.py new file mode 100644 index ..923564072405 --- /dev/null +++ b/sc/qa/uitest/chart/openDialogs.py @@ -0,0 +1,125 @@ +# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-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/. +# + +from uitest.framework import UITestCase +import unittest +from uitest.uihelper.testDialog import testChartDialog + +dialogs = [ +{"command": "AllTitles", "closeButton": "cancel"}, +# {"command": "DataRanges", "closeButton": "cancel"}, +# Tested in sc/qa/uitest/chart/tdf99069.py +# {"command": "DiagramArea", "closeButton": "cancel"}, +# Tested in sc/qa/uitest/chart/chartArea.py +# {"command": "DiagramAxisA", "closeButton": "cancel"}, +{"command": "DiagramAxisAll", "closeButton": "cancel"}, +# {"command": "DiagramAxisB", "closeButton": "cancel"}, +#{"command": "DiagramAxisX", "closeButton": "cancel"}, +# Tested in sc/qa/uitest/chart/chartXAxis.py +#{"command": "DiagramAxisY", "closeButton": "cancel"}, +# Tested in sc/qa/uitest/chart/chartYAxis.py +# {"command": "DiagramAxisZ", "closeButton": "cancel"}, +{"command": "DiagramData", "closeButton": "close", "skipTestOK": True}, +{"command": "DiagramFloor", "closeButton": "cancel"}, +# {"command": "DiagramGridAll", "closeButton": "cancel"}, +# Tested in sc/qa/uitest/chart/chartGrid.py +# {"command": "DiagramGridXHelp", "closeButton": "cancel"}, +# Tested in sc/qa/uitest/chart/chartGrid.py +# {"command": "DiagramGridXMain", "closeButton": "cancel"}, +# Tested in sc/qa/uitest/chart/chartGrid.py +# {"command": "DiagramGridYHelp", "closeButton": "cancel"}, +# Tested in sc/qa/uitest/chart/chartGrid.py +# {"command": "DiagramGridYMain", "closeButton": "cancel"}, +# Tested in sc/qa/uitest/chart/chartGrid.py +# {"command": "DiagramGridZHelp", "closeButton": "cancel"}, +# {"command": "DiagramGridZMain", "closeButton": "cancel"}, +{"command": "DiagramType", "closeButton": "cancel"}, +# {"command": "DiagramWall", "closeButton": "cancel"}, +# Tested in sc/qa/uitest/chart/chartWall.py +# {"command": "FormatAxis", "closeButton": "cancel"}, +{"command": "FormatChartArea", "closeButton": "cancel"}, +# {"command": "FormatDataLabel", "closeButton": "cancel"}, +# {"command": "FormatDataLabels", "closeButton": "cancel"}, +# Tested in sc/qa/uitest/chart/chartDataLabels.py +{"command": "FormatDataPoint", "closeButton": "cancel"}, +# {"command": "FormatDataSeries", "closeButton": "cancel"}, +# Tested in sc/qa/uitest/chart/formatDataSeries.py +{"command": "FormatFloor", "closeButton": "cancel"}, +{"command": "FormatLegend", "closeButton": "cancel"}, +# {"command": "FormatMajorGrid", "closeButton":
core.git: 2 commits - sc/qa sw/qa
sc/qa/uitest/calc_tests9/tdf159707.py | 33 ++ sc/qa/uitest/data/tdf159707.xls |binary sw/qa/uitest/data/tdf157569.docx|binary sw/qa/uitest/writer_tests6/tdf157569.py | 47 4 files changed, 80 insertions(+) New commits: commit 582dbb28efb39d93b6f9197590a5c64b69dec393 Author: Xisco Fauli AuthorDate: Wed Feb 14 16:31:07 2024 +0100 Commit: Xisco Fauli CommitDate: Thu Feb 15 08:56:50 2024 +0100 tdf#1575639: sw: Add UItest I tried to implement this test as a CppUnittest but it fails with - Expression: false - Unexpected dialog: Error activating object Error: General OLE error. See https://gerrit.libreoffice.org/c/core/+/160917 Change-Id: I36714146cc67119070b9799c4eb251a69f80b0cc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163381 Tested-by: Jenkins Reviewed-by: Xisco Fauli diff --git a/sw/qa/uitest/data/tdf157569.docx b/sw/qa/uitest/data/tdf157569.docx new file mode 100644 index ..2143a831a0dd Binary files /dev/null and b/sw/qa/uitest/data/tdf157569.docx differ diff --git a/sw/qa/uitest/writer_tests6/tdf157569.py b/sw/qa/uitest/writer_tests6/tdf157569.py new file mode 100644 index ..1a9e3344ac8c --- /dev/null +++ b/sw/qa/uitest/writer_tests6/tdf157569.py @@ -0,0 +1,47 @@ +# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-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/. +# +from uitest.framework import UITestCase +from uitest.uihelper.common import get_url_for_data_file +from libreoffice.uno.propertyvalue import mkPropertyValues + +class tdf157569(UITestCase): + +def test_tdf157569(self): +with self.ui_test.load_file(get_url_for_data_file("tdf157569.docx")) as document: + +xShape = document.getDrawPages()[0][0] +nHeight = xShape.getSize().Height +nWidth = xShape.getSize().Width + +# Without the fix in place, this test would have failed with +# AssertionError: 1663 != 944 +self.assertEqual(1663, nHeight) +self.assertEqual(2111, nWidth) + +xDoc = self.xUITest.getTopFocusWindow() +xEditWin = xDoc.getChild("writer_edit") + +# Select the formula +self.xUITest.executeCommand(".uno:JumpToNextFrame") +xEditWin.executeAction("SELECT", mkPropertyValues({"OBJECT":"Object1"})) +self.assertEqual("SwXTextEmbeddedObject", document.CurrentSelection.getImplementationName()) + +# Go into edit mode +xEditWin.executeAction("TYPE", mkPropertyValues({"KEYCODE":"RETURN"})) + +self.assertEqual(nHeight, xShape.getSize().Height) +self.assertEqual(nWidth, xShape.getSize().Width) + +# leave edit mode +xEditWin.executeAction("TYPE", mkPropertyValues({"KEYCODE":"ESC"})) + +self.assertEqual(nHeight, xShape.getSize().Height) +self.assertEqual(nWidth, xShape.getSize().Width) + +# vim: set shiftwidth=4 softtabstop=4 expandtab: commit fc1e5bf5c1c75acd6bb8f62b9363aa1a30b9acd6 Author: Xisco Fauli AuthorDate: Wed Feb 14 12:25:47 2024 +0100 Commit: Xisco Fauli CommitDate: Thu Feb 15 08:56:42 2024 +0100 tdf#159707: sc: Add UItest I tried to create this test as a Cppunittest but it fails with Run: 1 Failure total: 2 Failures: 1 Errors: 1 warn:vcl:428912:428912:vcl/source/app/svmain.cxx:494: DeInitVCL: some top Windows are still alive text = "" type = "14FloatingWindow", ptr = 0x5608715e49e0 text = "tdf159707.xls (read-only) — LibreOfficeDev Calc" type = "10WorkWindow", ptr = 0x5608709ab420 Change-Id: I1b9e16d57050fe07f74c632d441e3a06f49e9438 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163363 Tested-by: Jenkins Reviewed-by: Xisco Fauli diff --git a/sc/qa/uitest/calc_tests9/tdf159707.py b/sc/qa/uitest/calc_tests9/tdf159707.py new file mode 100644 index ..1e7b240f4b56 --- /dev/null +++ b/sc/qa/uitest/calc_tests9/tdf159707.py @@ -0,0 +1,33 @@ +# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-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/. +# +from uitest.framework import UITestCase +from uitest.uihelper.common import get_url_for_data_file + +from libreoffice.uno.propertyvalue import mkPropertyValues +from com.sun.star.beans import PropertyValue + +class tdf159707(UITestCase): + +def test_tdf159707(self): + +with
[Libreoffice-commits] core.git: 2 commits - sc/qa sw/qa
sc/qa/unit/helper/qahelper.cxx |5 - sc/qa/unit/helper/qahelper.hxx |2 +- sc/qa/unit/subsequent_filters_test2.cxx |5 +++-- sw/qa/inc/swmodeltestbase.hxx |5 + sw/qa/unit/swmodeltestbase.cxx |9 +++-- 5 files changed, 20 insertions(+), 6 deletions(-) New commits: commit 85fc28d328d7e53e6f263ac6d4ccbbf19d4db3c0 Author: Xisco Fauli AuthorDate: Thu Dec 1 11:30:45 2022 +0100 Commit: Xisco Fauli CommitDate: Thu Dec 1 13:03:02 2022 +0100 sw: check files are loaded without any warning error Change-Id: Ie48b33a93b7c2201c73418c625b63fdb2f1aec7a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143519 Tested-by: Jenkins Reviewed-by: Xisco Fauli diff --git a/sw/qa/inc/swmodeltestbase.hxx b/sw/qa/inc/swmodeltestbase.hxx index 8b7775f1ae23..dda083f76539 100644 --- a/sw/qa/inc/swmodeltestbase.hxx +++ b/sw/qa/inc/swmodeltestbase.hxx @@ -330,6 +330,11 @@ protected: */ SwDoc* getSwDoc(); +/** + * Gets SwDocShell from loaded component + */ +SwDocShell* getSwDocShell(); + /** * Wraps a reqif-xhtml fragment into an XHTML file, so an XML parser can * parse it. diff --git a/sw/qa/unit/swmodeltestbase.cxx b/sw/qa/unit/swmodeltestbase.cxx index a8dfc83493f9..05918c52397a 100644 --- a/sw/qa/unit/swmodeltestbase.cxx +++ b/sw/qa/unit/swmodeltestbase.cxx @@ -17,6 +17,7 @@ #include #include +#include #include #include #include @@ -447,6 +448,8 @@ void SwModelTestBase::loadURL(OUString const& rURL, const char* pName, const cha UnoApiXmlTest::load(rURL, pPassword); +CPPUNIT_ASSERT(!getSwDocShell()->GetMedium()->GetWarningError()); + discardDumpedLayout(); if (pName && mustCalcLayoutOf(pName)) calcLayout(); @@ -581,12 +584,14 @@ void SwModelTestBase::createSwGlobalDoc(const char* pName) CPPUNIT_ASSERT(xServiceInfo->supportsService("com.sun.star.text.GlobalDocument")); } -SwDoc* SwModelTestBase::getSwDoc() +SwDoc* SwModelTestBase::getSwDoc() { return getSwDocShell()->GetDoc(); } + +SwDocShell* SwModelTestBase::getSwDocShell() { SwXTextDocument* pTextDoc = dynamic_cast(mxComponent.get()); CPPUNIT_ASSERT(pTextDoc); -return pTextDoc->GetDocShell()->GetDoc(); +return pTextDoc->GetDocShell(); } void SwModelTestBase::WrapReqifFromTempFile(SvMemoryStream& rStream) commit 145dc0c5a00f7ee81cc839c2b506ecbe0f634ea7 Author: Xisco Fauli AuthorDate: Thu Dec 1 10:41:29 2022 +0100 Commit: Xisco Fauli CommitDate: Thu Dec 1 13:02:47 2022 +0100 sc: check files are loaded without any warning error Change-Id: I9163171d76e684835aff17d4777f8df88c848724 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143517 Tested-by: Jenkins Reviewed-by: Xisco Fauli diff --git a/sc/qa/unit/helper/qahelper.cxx b/sc/qa/unit/helper/qahelper.cxx index 336fd5754a29..dd1c6e09708c 100644 --- a/sc/qa/unit/helper/qahelper.cxx +++ b/sc/qa/unit/helper/qahelper.cxx @@ -469,7 +469,7 @@ void ScUcalcTestBase::tearDown() test::BootstrapFixture::tearDown(); } -void ScModelTestBase::createScDoc(const char* pName, const char* pPassword) +void ScModelTestBase::createScDoc(const char* pName, const char* pPassword, bool bCheckWarningError) { if (!pName) load("private:factory/scalc"); @@ -478,6 +478,9 @@ void ScModelTestBase::createScDoc(const char* pName, const char* pPassword) uno::Reference xServiceInfo(mxComponent, uno::UNO_QUERY_THROW); CPPUNIT_ASSERT(xServiceInfo->supportsService("com.sun.star.sheet.SpreadsheetDocument")); + +if (bCheckWarningError) +CPPUNIT_ASSERT(!getScDocShell()->GetMedium()->GetWarningError()); } ScDocument* ScModelTestBase::getScDoc() diff --git a/sc/qa/unit/helper/qahelper.hxx b/sc/qa/unit/helper/qahelper.hxx index a8b48f938e01..80e7d53fae1f 100644 --- a/sc/qa/unit/helper/qahelper.hxx +++ b/sc/qa/unit/helper/qahelper.hxx @@ -154,7 +154,7 @@ public: { } -void createScDoc(const char* pName = nullptr, const char* pPassword = nullptr); +void createScDoc(const char* pName = nullptr, const char* pPassword = nullptr, bool bCheckErrorCode = true); ScDocument* getScDoc(); ScDocShell* getScDocShell(); ScTabViewShell* getViewShell(); diff --git a/sc/qa/unit/subsequent_filters_test2.cxx b/sc/qa/unit/subsequent_filters_test2.cxx index e917d56ba836..d3744d33c86c 100644 --- a/sc/qa/unit/subsequent_filters_test2.cxx +++ b/sc/qa/unit/subsequent_filters_test2.cxx @@ -2880,7 +2880,7 @@ void ScFiltersTest2::testTooManyColsRows() { // The intentionally doc has cells beyond our MAXROW/MAXCOL, so there // should be a warning on load. -createScDoc("ods/too-many-cols-rows.ods"); +createScDoc("ods/too-many-cols-rows.ods", /*pPassword*/ nullptr, /*bCheckWarningError*/ false); ScDocShell* pDocSh = getScDocShell(); SfxMedium* pMedium = pDocSh->GetMedium(); @@ -2888,7 +2888,8 @@ void
[Libreoffice-commits] core.git: 2 commits - sc/qa sw/qa
sc/qa/uitest/calc_tests9/tdf95554.py | 10 -- sw/qa/uitest/writer_tests4/spellDialog.py |2 +- 2 files changed, 9 insertions(+), 3 deletions(-) New commits: commit 10bc799f9da2a4fdf2adf820d53175e4789fa6fe Author: Mike Kaganski AuthorDate: Mon May 16 15:00:20 2022 +0200 Commit: Mike Kaganski CommitDate: Mon May 16 20:22:43 2022 +0200 Fix a UITest on Windows Change-Id: Ieb6d04e344b1d875f2661833e17f64930681e528 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134366 Tested-by: Jenkins Reviewed-by: Mike Kaganski diff --git a/sw/qa/uitest/writer_tests4/spellDialog.py b/sw/qa/uitest/writer_tests4/spellDialog.py index 4a319790d0b0..4d2b4b6222ee 100644 --- a/sw/qa/uitest/writer_tests4/spellDialog.py +++ b/sw/qa/uitest/writer_tests4/spellDialog.py @@ -110,7 +110,7 @@ frog, dogg, catt""" # Without the fix in place, this test would have crashed here xChangeBtn.executeAction("CLICK", ()) -output_text = writer_doc.Text.getString().replace('\n', '') +output_text = writer_doc.Text.getString().replace('\n', '').replace('\r', '') self.assertTrue(output_text.startswith("xx xx xx xxix xxviii")) def test_tdf66043(self): commit 212eeff28317543d66acec2be551d7da9ff2a87d Author: Mike Kaganski AuthorDate: Mon May 16 14:06:12 2022 +0200 Commit: Mike Kaganski CommitDate: Mon May 16 20:22:33 2022 +0200 Fix a UITest on Windows Change-Id: If4e5612e2b9fa41c487a6ab54c1e23fd2d63ac9c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134365 Tested-by: Jenkins Reviewed-by: Mike Kaganski diff --git a/sc/qa/uitest/calc_tests9/tdf95554.py b/sc/qa/uitest/calc_tests9/tdf95554.py index 3a8d92ce2c22..734711e415e7 100644 --- a/sc/qa/uitest/calc_tests9/tdf95554.py +++ b/sc/qa/uitest/calc_tests9/tdf95554.py @@ -11,6 +11,8 @@ from uitest.framework import UITestCase from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.uihelper.calc import enter_text_to_cell +import platform + class Tdf95554(UITestCase): def test_tdf95554(self): @@ -39,7 +41,11 @@ class Tdf95554(UITestCase): # Without the fix, the test breaks here with: #AssertionError: 'A\n\nC\n\nE\nF' != 'A' -self.assertEqual('A\n\nC\n\nE\nF', -writer_document.Text.String) +if platform.system() == "Windows": +self.assertEqual('A\r\n\r\nC\r\n\r\nE\r\nF', +writer_document.Text.String) +else: +self.assertEqual('A\n\nC\n\nE\nF', +writer_document.Text.String) # vim: set shiftwidth=4 softtabstop=4 expandtab: \ No newline at end of file
[Libreoffice-commits] core.git: 2 commits - sc/qa sw/qa
sc/qa/uitest/calc_tests/data/tdf86253.ods|binary sc/qa/uitest/calc_tests/tdf86253.py | 66 +++ sw/qa/uitest/writer_tests/data/tdf113284.odt |binary sw/qa/uitest/writer_tests/tdf113284.py | 45 ++ 4 files changed, 111 insertions(+) New commits: commit b448f3cb86803ac23413cfbc643750d8e66d92b4 Author: Zdeněk CrhonekDate: Wed Mar 14 17:12:50 2018 +0100 uitest for bug tdf#113284 Change-Id: If4e9875344da2525b5f7bdb658ad0096d923ead7 Reviewed-on: https://gerrit.libreoffice.org/51285 Tested-by: Jenkins Reviewed-by: Markus Mohrhard diff --git a/sw/qa/uitest/writer_tests/data/tdf113284.odt b/sw/qa/uitest/writer_tests/data/tdf113284.odt new file mode 100644 index ..b062fc2e8d9c Binary files /dev/null and b/sw/qa/uitest/writer_tests/data/tdf113284.odt differ diff --git a/sw/qa/uitest/writer_tests/tdf113284.py b/sw/qa/uitest/writer_tests/tdf113284.py new file mode 100644 index ..1ab5462f997a --- /dev/null +++ b/sw/qa/uitest/writer_tests/tdf113284.py @@ -0,0 +1,45 @@ +# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- +# 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/. + +from uitest.framework import UITestCase +from libreoffice.uno.propertyvalue import mkPropertyValues +from uitest.uihelper.common import get_state_as_dict +import time +from uitest.path import get_srcdir_url +from uitest.debug import sleep + +def get_url_for_data_file(file_name): +return get_srcdir_url() + "/sw/qa/uitest/writer_tests/data/" + file_name + +class tdf113284(UITestCase): + + def test_tdf113284(self): +writer_doc = self.ui_test.load_file(get_url_for_data_file("tdf113284.odt")) +document = self.ui_test.get_component() +xWriterDoc = self.xUITest.getTopFocusWindow() +xWriterEdit = xWriterDoc.getChild("writer_edit") + +sleep(2) #we need this sleep,because without this is pagecount counted without index. Load index takes time probably. +xPageCount = document.CurrentController.PageCount +self.ui_test.execute_dialog_through_command(".uno:GotoPage") +xDialog = self.xUITest.getTopFocusWindow() +xPageText = xDialog.getChild("page") +xPageText.executeAction("TYPE", mkPropertyValues({"TEXT":str(xPageCount)})) # goto last page +xOkBtn = xDialog.getChild("ok") +self.ui_test.close_dialog_through_button(xOkBtn) + +self.assertEqual(get_state_as_dict(xWriterEdit)["CurrentPage"], str(xPageCount)) +self.ui_test.execute_dialog_through_command(".uno:EditCurIndex") #open index dialog +xDiagIndex = self.xUITest.getTopFocusWindow() +xCancBtn = xDiagIndex.getChild("cancel") +self.ui_test.close_dialog_through_button(xCancBtn) # close dialog + +#page count is not constant +#self.assertEqual(get_state_as_dict(xWriterEdit)["CurrentPage"], "66") #page 66 start of the Index +#pagecount unchanged +self.assertEqual(document.CurrentController.PageCount, xPageCount) + +self.ui_test.close_doc() +# vim: set shiftwidth=4 softtabstop=4 expandtab: \ No newline at end of file commit caeb7930c1d2d6508a0a170932a3688f2057363c Author: Zdeněk Crhonek Date: Sun Mar 11 21:03:08 2018 +0100 uitest for bug tdf#86253 Change-Id: If5488988ba581108d96797e58d001152cff1ad38 Reviewed-on: https://gerrit.libreoffice.org/51088 Tested-by: Jenkins Reviewed-by: Markus Mohrhard diff --git a/sc/qa/uitest/calc_tests/data/tdf86253.ods b/sc/qa/uitest/calc_tests/data/tdf86253.ods new file mode 100644 index ..d4042df43b8f Binary files /dev/null and b/sc/qa/uitest/calc_tests/data/tdf86253.ods differ diff --git a/sc/qa/uitest/calc_tests/tdf86253.py b/sc/qa/uitest/calc_tests/tdf86253.py new file mode 100644 index ..2f29c2a398ec --- /dev/null +++ b/sc/qa/uitest/calc_tests/tdf86253.py @@ -0,0 +1,66 @@ +# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- +# +# 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/. +# +from uitest.framework import UITestCase +import os +from uitest.uihelper.common import get_state_as_dict +from uitest.path import get_srcdir_url +from libreoffice.calc.document import get_sheet_from_doc +from libreoffice.calc.conditional_format import get_conditional_format_from_sheet +from uitest.debug import sleep +from libreoffice.uno.propertyvalue import mkPropertyValues + +def get_url_for_data_file(file_name): +return get_srcdir_url() + "/sc/qa/uitest/calc_tests/data/" + file_name + +class tdf86253(UITestCase): + +def test_tdf86253(self): +
[Libreoffice-commits] core.git: 2 commits - sc/qa sw/qa
sc/qa/unit/screenshots/screenshots.cxx |1 + sw/qa/unit/sw-dialogs-test_2.cxx |2 ++ 2 files changed, 3 insertions(+) New commits: commit 9263470903a46fa030fb941ee024bf24f2b98e59 Author: Markus MohrhardDate: Mon Jul 24 00:09:31 2017 +0200 screenshots: the screenshots now need a initialized SwModule Change-Id: I44ea8630a874300e9163d71bd5094a5941d2a419 diff --git a/sw/qa/unit/sw-dialogs-test_2.cxx b/sw/qa/unit/sw-dialogs-test_2.cxx index a2adfdc1bf08..261735c9405c 100644 --- a/sw/qa/unit/sw-dialogs-test_2.cxx +++ b/sw/qa/unit/sw-dialogs-test_2.cxx @@ -16,6 +16,7 @@ #include #include +#include using namespace ::com::sun::star; @@ -56,6 +57,7 @@ SwDialogsTest2::SwDialogsTest2() void SwDialogsTest2::setUp() { ScreenshotTest::setUp(); +SwGlobals::ensure(); // Make sure the swui library's global pSwResMgr is initialized // (alternatively to dynamically loading the library, SwCreateDialogFactory // could be declared in an include file and this CppunitTest link against commit 7ebdc10f04539269542bbe348b5a0a297183f116 Author: Markus Mohrhard Date: Mon Jul 24 00:09:04 2017 +0200 screenshots: fix the screenshot build Change-Id: I3c295c4817e19c5e31b793fd455c3071015098d7 diff --git a/sc/qa/unit/screenshots/screenshots.cxx b/sc/qa/unit/screenshots/screenshots.cxx index a49ab9c152ae..adcfe9e93dbe 100644 --- a/sc/qa/unit/screenshots/screenshots.cxx +++ b/sc/qa/unit/screenshots/screenshots.cxx @@ -40,6 +40,7 @@ #include #include +#include #include #include ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits