summaryrefslogtreecommitdiff
path: root/sw/qa/python
AgeCommit message (Collapse)AuthorFilesLines
2016-10-26normalize existing emacs/vim mode-lines in python filesMichael Stahl2-3/+3
Bunch of these were setting C++ or Make modes and icky tabs... Also, reportedly Emacs can figure out to enable python-mode automatically. Change-Id: I50072488fb92cb4d27aa3f74f717a28ae3967543
2016-10-03Fix typosAndrea Gelmini1-1/+1
Change-Id: Ia59d287a015482e9e97b701a6695463a7d235203 Reviewed-on: https://gerrit.libreoffice.org/29439 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2016-07-27GSoC Writer Table Styles; Import bugfixJakub Trzebiatowski1-2/+3
+ Binary autoformats are loaded into document on document creation + Imported table styles overwrite existing styles. Change-Id: I88c08d1356e1c54a03624a051611357670f225ba Reviewed-on: https://gerrit.libreoffice.org/27539 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-07-07Add test for XML Range Conversionsslideon1-0/+31
SwChartDataProvider's XML conversion methods were untested. Also add tests for SwChartDataSequence's clone method and its get/ set property value methods. Change-Id: I6323a7af1eae747592f5016b13fb5e2e3f0b71d1 Reviewed-on: https://gerrit.libreoffice.org/26995 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-07-05Add test for the TableBorderDistances struct, and the Uno Namesslideon1-0/+49
TableBorderDistances was not tested. Add tests for setting/getting the TextTable name and template names. Test implementation and supported service names of various XTextTable components. Change-Id: Ieb9f2983c5d421f8c8ab4c99596444fb4ff001fe Reviewed-on: https://gerrit.libreoffice.org/25888 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2016-06-24GSoC Table Style Family: insertByName, replaceByName, removeByNameJakub Trzebiatowski1-2/+28
- also implements SwXTextTableStyle::replaceByName - some refactorization + use std::unique_ptr - fixes some bugs: + posible nullptr dereference in tblafmt.cxx + SwXTextTableStyle::getName() returned translated name + remvoed unnecesary SetXObject in Cell Style Family replacebyName - tests Change-Id: Idd25d54695ab5a4bdd4daf7ebf37b05fbc2366e7 Reviewed-on: https://gerrit.libreoffice.org/26578 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-06-20GSoC Table Styles, Export Cell StylesJakub Trzebiatowski1-1/+1
Exporting cell-styles Exporting table-template To be able to map SwTableAutoFormat to table-template 1:1 extended table-template by the following elements: loext:first-row-even-column loext:last-row-even-column loext:first-row-end-column loext:first-row-start-column loext:last-row-end-column loext:last-row-start-column Added attributes describing box format to SwXTextCellStyle Change-Id: I2967ba461dfc6f030c1e5cdbba62e2673d3b232b Reviewed-on: https://gerrit.libreoffice.org/26185 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-06-17GSoC Table Styles, TableStyle isInUse, isUserDefined, mutex fixesJakub Trzebiatowski1-0/+20
Also added: + SwXTextCellStyle::IsInUse() + check_styles.py SwXTextTableStyle::isUserDefined() tests Change-Id: I76cb166107f186098599c4a8da6f94f7c40cc545 Reviewed-on: https://gerrit.libreoffice.org/26366 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-06-13GSoC Table Styles, CellStyleJakub Trzebiatowski1-1/+3
- insertByName - replaceByName - removeByName Change-Id: I964aa0dc2e7f5a5be9eaec719b8944e847eb9d6a Reviewed-on: https://gerrit.libreoffice.org/26037 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-06-07sw UNO Cell Style family, SwXTextCellStyleJakub Trzebiatowski1-2/+10
Cell Family :: getByName Cell Family :: getElementNames Cell Family :: getCount Change-Id: I37d567ee284054f847c704d9fce370d174a0c48c Reviewed-on: https://gerrit.libreoffice.org/25896 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-06-01sw UNO API XTextTable add TableTemplateName propertyJakub Trzebiatowski1-0/+12
Change-Id: I8450fd4003ad5f9b082817765a2d44fc00dea15e Reviewed-on: https://gerrit.libreoffice.org/25688 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-05-31Sw UNO API SwXTextCellStyle; TableStyles createInstance, XNameAccessJakub Trzebiatowski1-0/+9
Making createInstance("com.sun.star.style.TableStyle") possible Making SwXTextTableStyle a XNameAccess container of SwXTextCellStyles Implementing basic SwXTextCellStyle CellStyleMap based on svx/source/table/tabledesign.cxx Change-Id: I5afff1f514582a63a6eb9f9fb44667665749855a Reviewed-on: https://gerrit.libreoffice.org/25558 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-05-26Sw UNO API TableStyles getByNameJakub Trzebiatowski1-14/+24
Implementing TableStyle family getByName, hasByName, getByIndex Implementing SwXTextTableStyle Implementing basic tests Change-Id: I256189db8631a713c4aae6b449409bbfaa776f24 Reviewed-on: https://gerrit.libreoffice.org/25410 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-05-24Implement basic TableStyle FamilyJakub Trzebiatowski1-2/+2
Change-Id: I3da13d26ced05e1948d483d432d6268b10c208b5 Implementing: getCount, getElementNames Reviewed-on: https://gerrit.libreoffice.org/25351 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-05-20Add test for checking the color of characters and paragraphsslideon1-8/+73
check_change_color.py only checked for page-related colors previously. Change-Id: I3b188db34c1f43ed6ed977f792615bb6646fbcce Reviewed-on: https://gerrit.libreoffice.org/25183 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-05-11tdf#99145 refactored to pep8ackepenek12-196/+201
Change-Id: I4896cd0bda97331a8291588e6a4f29a881d1229c Reviewed-on: https://gerrit.libreoffice.org/23925 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-04-12Add other tests to check_change_colorslideon1-0/+7
Add tests for GridColor and FootnoteLineColor Change-Id: Ia1112cbff5fd77ae1fa83fac362e917eb35f530d Reviewed-on: https://gerrit.libreoffice.org/24001 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-04-05tdf#97361 Fix check_table and remove = None assignmentsslideon7-24/+17
The = None (or null) pattern is a Java convention, its not needed in Python. Change-Id: I0041d4030db05234eeefc8606f571da38174f962 Reviewed-on: https://gerrit.libreoffice.org/23669 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2016-03-30tdf#97361 Refactor load_save_testslideon3-82/+65
Make new helper functions, minor style cleanup in other tests Change-Id: Ifb188fa8227cdd1a1a5af88e692315c5f93da67d Reviewed-on: https://gerrit.libreoffice.org/23547 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-03-25tdf#97362: Fixed Python Unit Test(check_table.py)kadertarlan1-12/+12
Change-Id: I6c88091e5231a42a7eb4ae82cb6231bd9330ae40 Reviewed-on: https://gerrit.libreoffice.org/23501 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-03-24tdf#97362: Convert Java unit test to Python(check_change_color.py)aqcoder1-0/+31
Change-Id: I0fa4973b6af028666428fa58438eaf39f7b81d27 Reviewed-on: https://gerrit.libreoffice.org/23482 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-03-18tdf#97362: Convert Java unit test to Python(load_save_test.py)kadertarlan1-0/+129
Change-Id: I7c3f2e786f94137b850770c77fbd24578f56b0af Reviewed-on: https://gerrit.libreoffice.org/23254 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2016-01-30tdf#97362: Convert Java unit test to Python (check_named_property_values.py)kadertarlan1-11/+14
Change-Id: Icb94cdf3601d6d985ea147e3c80eadba2999ccee Reviewed-on: https://gerrit.libreoffice.org/21877 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-01-29tdf#97362: Fixed Python unit test (check_indexed_property_values.py)kadertarlan1-6/+8
Change-Id: Ib8cfaccaaf5bf75169c96e46d95ff118cc850f79 v2: Deleted whitespaces Reviewed-on: https://gerrit.libreoffice.org/21886 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-01-28tdf#97362: Convert Java unit test to Python (check_indexed_property_values.py)kadertarlan1-0/+87
Change-Id: I6c3be8496b4a2225375072d9380d5e226b663905 Reviewed-on: https://gerrit.libreoffice.org/21853 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-01-27Convert Java unit test to Python (check_named_property_values.py)kadertarlan1-0/+87
Change-Id: I70d05395b8b5ca89c6a2ebf63c1b4a7760a1559e Reviewed-on: https://gerrit.libreoffice.org/21829 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2016-01-10Fix typosAndrea Gelmini1-1/+1
Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86 Reviewed-on: https://gerrit.libreoffice.org/21209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2015-12-18fix some issues with 214b0c8356ab88e75cb4bbc2ad3109ee536dcd70Michael Stahl1-2/+2
Change-Id: Icd3cf90bf617c9c77dcf9cbda705bf348f980fb3
2015-12-18Java unittest(CheckCrossReferences.java) converted to Python unittestkadertarlan1-0/+234
Change-Id: I9b856c9ffd7b3b380b2c1ba37c7c07355423c1f5 Reviewed-on: https://gerrit.libreoffice.org/20786 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2015-12-16Make test code actually test somethingStephan Bergmann1-16/+15
...and calling remove on a list apparently returns None Change-Id: I7a44d85cfebf17ac89bef0ce2d322a2cfa929899
2015-12-15Java unit tests were converted to Python unit testskadertarlan1-0/+126
Remark test document not moved, due to other test cases. Change-Id: I9564b72fae60cceb60121fec06e1ed015add8453 Reviewed-on: https://gerrit.libreoffice.org/20703 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2015-12-11writer UNO style families: test insert/replace opsBjoern Michaelsen1-0/+35
Change-Id: I5a8daa1c0f2b62dbf56fa9fc1d14555f0ff613e2
2015-12-11writer UNO style families: also check isUserDefined()Bjoern Michaelsen1-0/+2
Change-Id: Iada331a12232fd83b6813e6db65bd011d3746142
2015-12-11add test for UNO writer style families ...Bjoern Michaelsen1-0/+107
... and fix the breakages it finds. Change-Id: Ibc7289cc0cd7fb5648d686bd55afff9016f58b3b Reviewed-on: https://gerrit.libreoffice.org/20638 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Jenkins <ci@libreoffice.org>
2015-11-04Make number recognition work in writer tables againNiklas Johansson1-0/+70
It seems that number recognition in tables are not working properly enter 10-10-10 and it should be converted to a date but it is not. I tracked it down to the fix of bug fdo#32082. It looks like bSetNumFmt was changed to false by mistake. Since then it has changed name to bSetNumFormat. From what I can tell fdo#32082 still works after this patch, but I might have missed some nuance of that bug report. Added two tests, one for the bug mentioned above and one to check that number recognition is working. At least with a simple date. Change-Id: Id58849a223eb602054c66c7379cd56a68a93dea2 Reviewed-on: https://gerrit.libreoffice.org/19563 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2015-07-03be picky and check explicit implementation nameBjoern Michaelsen1-4/+4
- the previous code tried to avoid breakage from changing an implementation detail - this turns out to be harder than expected in a Python2/3 portable way - also it would mean the intentional drive-by documentation of the expected implementation name will at least not bit rot now Change-Id: I5972d0e79ef64abe30573182c5e23268e4830ade
2015-06-25add tests for SwChartDataSequence and SwChartDataProviderBjoern Michaelsen1-0/+37
Change-Id: I468bb651b5febd090fb3cc15795589124c1e8375
2015-06-25remove left-over debug lineBjoern Michaelsen1-1/+0
Change-Id: I8dc0ad1907c1523be9654f808c401be075a97db1
2015-06-25test XServiceInfo stuff, while at itBjoern Michaelsen1-0/+10
Change-Id: Ib39411bd71f366f4dc1ea9dca2a45f31777feb7a
2015-06-22test inserting/remove writer table rows/colsBjoern Michaelsen1-0/+61
Change-Id: I55ded80b0a9597e6f050dd4c24c607896f07496f
2015-05-20bin/rename-sw-abbreviations.shlibreoffice-5-0-branch-pointChristian Lohmaier1-1/+1
renames the most annoying abbreviations in Writer (and partially in the shared code too). Change-Id: I9a62759138126c1537cc5c985ba05cf54d6132d9
2015-04-14have a nonsymetric test table to better catch transpose errorsBjoern Michaelsen1-10/+10
Change-Id: If36ec5ed78a3e0b7a9037eaa1903772f1d228bce
2015-04-13add some label testsBjoern Michaelsen1-0/+6
Change-Id: I4272be68041a269dce3bbd9de2bc7997cbcf9ab8
2015-04-13add set/getData testsBjoern Michaelsen1-8/+35
Change-Id: I846ac849461d986d331b0366c36af46558fe9a14
2015-04-13move check_table/fill_table from inner f. to priv. member fnct.Bjoern Michaelsen1-13/+13
Change-Id: I7670f8164d8a44414277f285e3aa19de1764a86e
2015-04-01more testing on the text table descriptionsBjoern Michaelsen1-7/+43
Change-Id: I39bab96587b9c1580dd4d7a92f61f39ed5d3b754
2015-04-01give each test an own docBjoern Michaelsen1-9/+4
Change-Id: I89906cfef234c51f117f06eca0dbb4101cce6b01
2015-03-30add Python test for table describtionsBjoern Michaelsen1-0/+26
Change-Id: Ie7637b8cf26e663bbb47f0df9fdb441a8af754c5
2014-11-12Fix common typos. No automatic tools. Handmade…Andrea Gelmini1-1/+1
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-08-14sw: use less confusing variable names in python testMichael Stahl1-10/+10
Change-Id: Ie07fe4761a634c3ae55e82e1ed70c9424dc33213