summaryrefslogtreecommitdiff
path: root/sc/qa/unit/subsequent_filters-test.cxx
AgeCommit message (Collapse)AuthorFilesLines
2013-10-03Resolves: rhbz#1013844 fdo#47482 encrypted OOo 1.0 docs cannot be reopenedCaolán McNamara1-0/+10
Workaround for the encrypted OpenOffice.org 1.0 documents generated by Libreoffice <= 3.6 with the new encryption format and using SHA256, but missing a specified startkey of SHA256 Change-Id: Ib1acc4441b5adc6721cb3cde7a1191aa978e9a1b (cherry picked from commit 11ad93f4ba84f190c908e92a2c960f7a9fa800c0) Reviewed-on: https://gerrit.libreoffice.org/6105 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2013-07-25resolved fdo#67249 use ScFieldEditEngine to resolve field contentEike Rathke1-0/+9
ScEditUtil::GetString() iterated over the paragraphs of an EditTextObject where GetText() does not resolve field content but returns the embedded field markers. To resolve field content an ScFieldEditEngine is needed. This makes it necessary to pass an ScDocument* to obtain the ScFieldEditEngine from, or for cases where there is no ScDocument in the context use a static ScFieldEditEngine which unfortunately is not capable of resolving document specific fields of course, such as DOCINFO_TITLE and TABLE. Also added unit test. (cherry picked from commit 1ecdc7aaf661e97a33cf521f553481d79cd26de2) Conflicts: sc/qa/unit/subsequent_filters-test.cxx sc/qa/unit/ucalc.cxx sc/source/core/data/column.cxx sc/source/core/data/column2.cxx sc/source/core/data/column3.cxx sc/source/core/data/dociter.cxx sc/source/core/data/table3.cxx sc/source/core/data/table4.cxx Change-Id: Ife3c23b2fec2514b32303239d276c49869786eb5 Reviewed-on: https://gerrit.libreoffice.org/5106 Reviewed-by: Kohei Yoshida <kohei.yoshida@suse.de> Tested-by: Kohei Yoshida <kohei.yoshida@suse.de>
2013-07-25unit test for <text:s> in <text:p> and <text:span>, fdo#67094Eike Rathke1-8/+49
Change-Id: I033668dcdcdcc1a5710f2ddacadf9a1a5344638e (cherry picked from commit 038d162b175b62d67a94d4418b3a15a1a382419d) Reviewed-on: https://gerrit.libreoffice.org/5096 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-03temporarily disable tests known to failChristian Lohmaier1-2/+2
Change-Id: I95c3c1af64b7d8b499c085c345b26d2df7e31965 Reviewed-on: https://gerrit.libreoffice.org/4700 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2013-06-28unit test for commit:1680a8cd4f4393ec15c4f85cb63b6654117d56d1 (fdo#56960)Noel Power1-3/+22
expand the existing borders import check to cater for xlsx ( and testing for fine/hair border styles ) Change-Id: Ic5c3cd46e0049dbce9997f0881c4d98e0d64e00c (cherry picked from commit 69dcacedaccd1d698a54eed615ee8739747bc975) Reviewed-on: https://gerrit.libreoffice.org/4503 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-28fix hair & fine cell border export ( followon fix fdo#56960 )Noel Power1-3/+3
1) align excel binary and oox import filter border thickness values 2) use new fine-dash border style 3) detect & determine hair vrs fine borderline on export also squashed relevant part of commit ee51444ed1f7003dafc93c8181b5f8c1b0fd165b ( fix borders unit test ( test values have changed ) ) Change-Id: Ieb024bc6f4bfc87c525082c7b9a1f3c444f5c5ca (cherry picked from commit 1680a8cd4f4393ec15c4f85cb63b6654117d56d1) Reviewed-on: https://gerrit.libreoffice.org/4493 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-05-10resolved fdo#35756 import more than 64k HTML table cellsEike Rathke1-7/+7
Enhanced EditEngine to be able to hold more than 64k paragraphs. Used also in RTF import Calc and Writer, so that could benefit as well. * changed all EditEngine,Outliner,... related paragraph index/count variables from sal_uInt16 to sal_Int32 * sal_Int32 instead of sal_uInt32 to match accessibility API * matched some Outliner methods' paragraph parameters from sal_uLong to sal_Int32 * containers capable to hold size_t nevertheless are limited to a maximum of sal_Int32 * changed definition of EE_PARA_NOT_FOUND and EE_PARA_ALL to SAL_MAX_INT32 + added EE_PARA_MAX_COUNT and EE_TEXTPOS_MAX_COUNT to initialize ESelection with what previously were hard coded 0xFFFF all over the place + for similar reason added EE_TEXTPOS_ALL corresponding to EE_PARA_ALL to initialize an ESelection spanning all available text like aSel(0,0,EE_PARA_ALL,EE_TEXTPOS_ALL) Change-Id: I62d1b9c399cd709a4f93dbac31b219a61c46ec00 Reviewed-on: https://gerrit.libreoffice.org/3838 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks1-24/+4
2013-04-08fdo#62116: Be sure to convert relative URLs into absolute ones.Kohei Yoshida1-0/+10
Just to preserve the old (and correct) behavior. Change-Id: I229e0b80097f6d70ff3023072b52576815010b15
2013-04-08fdo#62116: Unit test for the fix.Kohei Yoshida1-0/+26
For now, we'll only check whether or not those field items with formats get imported at all. We should add additional checks for their formats later. Change-Id: I5a8f01a6e2594b8c97183a43fc4f3417df6fb561
2013-03-28Move ScFormulaCell into its own header source files: formulacell.?xx.Kohei Yoshida1-1/+1
Change-Id: I65f2cb12c06784b5bcf6c6a2fad773825b6c409c
2013-03-25a few more cases where we should close the doc after the testMarkus Mohrhard1-0/+8
Change-Id: I46b00d62d604ecc80f079cf91671de3c07a1b589
2013-03-23add ODS test for above/below cond format rulesMarkus Mohrhard1-0/+18
Change-Id: I6ce6292a490ef39c111aa7f4c0a5ada0d45c16bc
2013-03-22add databar export testMarkus Mohrhard1-44/+0
Change-Id: I0770d20911307ddd9426417314bebbe569660b14
2013-03-22add export test for color scalesMarkus Mohrhard1-101/+1
Change-Id: I68ff1309c2769866c0821f7857f13103b8752cb5
2013-03-22add import test for color scalesMarkus Mohrhard1-0/+110
Change-Id: Ie85f8efd520aaf4e10b560c637a74fbd9e25530b
2013-03-22add import test for data barsMarkus Mohrhard1-0/+80
Change-Id: Ida98e51a7f9970c7d4c845f5a6ac1566cbed9e3a
2013-03-22let us use ScBootstrapFixture::loadDoc hereMarkus Mohrhard1-24/+2
Change-Id: Ia5d29da921e53b8443541e5f69e2bbc7fd99edfa
2013-03-22make method name consistentMarkus Mohrhard1-3/+3
Change-Id: I5fd08be86c68b788510d04ff6df6c3938c43e625
2013-03-22remove disabled testsMarkus Mohrhard1-103/+0
Change-Id: I56490efc131cb25baa279b6f8204cf8f5d3af8c4
2013-03-19removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarationsThomas Arnhold1-9/+9
s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b Reviewed-on: https://gerrit.libreoffice.org/2835 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-19automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStringsThomas Arnhold1-29/+28
Done with a perl regex: s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec Reviewed-on: https://gerrit.libreoffice.org/2832 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-06fdo#60148 Clean up warnings from the Clang compiler pluginnccuong1-3/+0
Change-Id: I08d755677c46c476710ecbd067ed9f7e2f54a671 loplugin: clean warnings: unused variables, incorrect indentation and log area. Reviewed-on: https://gerrit.libreoffice.org/2544 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-03-02Typo fix: informations -> information and a few other adjacent typos.Gregg King1-2/+2
FDO:60724 Change-Id: I73ad9f1c37cbbcf28d996ed73c75cf09553e499b Reviewed-on: https://gerrit.libreoffice.org/2479 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-02-23Fix typo begining/beginning.Julien Nabet1-1/+1
Change-Id: I9fff386181a2be0bc83787c8b5aec9c1cb4db9c3
2013-02-23Fix typos retreive/retrieve furture/futureJulien Nabet1-2/+2
Change-Id: I639c2970b2a88ca3d5aa1dcd2ad4ec047b4a369c
2013-02-12Renamed hard-to-remember 8-char headers in editeng.Kohei Yoshida1-1/+1
Change-Id: If255802082890e1b1b4c5197a791fa79a011773e
2013-02-11Add new filter test for raw cell value import from ods.Kohei Yoshida1-0/+18
If import of raw cell values doesn't work, all bets are off. Let's make sure it does. We'll add more test cases to this file as the need arises. Change-Id: I1469c285e6e87056406415bd8c767890c153b2b5
2013-02-11add unittest for fdo#59240Korrawit Pruegsanusak1-0/+7
Change-Id: Ic287228f578c9ecb0f69a47380c890e337203b31 Reviewed-on: https://gerrit.libreoffice.org/2078 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-02-10sc_subsequent_filters-test: add bug numberKorrawit Pruegsanusak1-1/+1
from 84ae3c9853b7b90d7b859fd562dabc7b31e8deb8 Change-Id: I1768bfb7a68affe423485eff77b6005abde2e2a7 Reviewed-on: https://gerrit.libreoffice.org/2079 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-02-07blind wae fix for MacOSXNoel Power1-1/+1
Change-Id: I2086b724a6787838b9dd61c78d6943a1efa27a19
2013-02-07another row height ( related to optimalheight and deleting content ) fdo#59193Noel Power1-0/+44
A cell when modified ( e.g. content deleted ) should have its row height recalculated when the optimalheight attribute for that row is set. Also tweaked the test framework to allow read/write files to be loaded, this allows functions that modify the document content to actually work as intended Change-Id: Ia929a194a96f5c8b870f9a49d1e27d0c34ba9c91
2013-02-04moved the export row check to qahelper, made it useful for import/exportNoel Power1-0/+36
Moved old row test from export to qahelper in order that it can be shared with the import only tests, also added some new test documents and test data for some additional row height checking Change-Id: I023844b8dba8935d4bcdaac7fd16496e99251d78
2013-02-04eliminate duplicated implementations (load, loadDoc etc. ) in unit testsNoel Power1-228/+134
additionally rtl::OUString(Buffer) => OUString(Buffer) changes Change-Id: Ibf93e8a3ed435fda42836c214b7faac6b3dda71e
2013-01-30Let's stick with just one variant of ScDocument::GetString()...Kohei Yoshida1-3/+2
Instead of having 3 of them. Change-Id: I2de9b63c33b7362162a56ea391f8b68a468163fa
2013-01-26this test case must be changed a bitMarkus Mohrhard1-1/+1
The old way was just plain wrong. Just test if the string is empty. Change-Id: I4eba5e6941da5904c8ff99ab48ae5bef0d02e14e
2013-01-25improve the tests for cached value importMarkus Mohrhard1-21/+30
The test now also tests for Err:* import and checks that these have been imported as error values and not only as text values. Future clean-up: Merge the cached matrix test file into the cached value one. Change-Id: I9c0a06f058ff6620bd7ca169b3bee07a5430997e
2013-01-25improve tests for cached value importMarkus Mohrhard1-19/+33
Change-Id: I8e5f8cb351792b53c89658074e41dff3a3c4d9db
2013-01-24New test for importing chart object with references to cell ranges.Kohei Yoshida1-1/+76
Change-Id: I2167d1a2c7ea70415581caf29acf620e4b116e69
2013-01-24calling loadDoc is simpler.Kohei Yoshida1-13/+1
Change-Id: I6a507825252f316c8106ea4b856bf166a010c15b
2013-01-24disable these two tests for nowMarkus Mohrhard1-2/+2
Change-Id: I579694780b64e532b0e61017783bc4e72f8d2936
2013-01-15add test case for fdo#59293Markus Mohrhard1-3/+11
Change-Id: I5972a2805d8bc03b84a42fbba4b67923b3b77249
2013-01-15with the new recalc of matrix with errors, this assert is no longer trueMarkus Mohrhard1-1/+1
We need a new test case for this with a matrix that does not contain cells with error values. Change-Id: I7fb9efb5077cf6e43cbfd32c64274777d371b956
2013-01-09re-apply calc /tmp unit test file leakage.Michael Meeks1-0/+10
2013-01-09Revert "fix a few /tmp file leaks"Miklos Vajna1-10/+0
This reverts commit 92045e69dab8be60a1c84774f04c437066c3c2bf. Broke a unit test and made all tinderboxes red. Requested-by: Stephan Bergmann <sbergman@redhat.com>
2013-01-08fix a few /tmp file leaksMichael Meeks1-0/+10
Thanks to Jean-Baptiste Faure for digging for these.
2013-01-08Add new ods import test for rich-text cell contents.Kohei Yoshida1-0/+183
Change-Id: I23eb8d53b8a2c48514900a5ab07ed7ec71d3ef99
2013-01-07Adjusted all test methods for loadDoc.Kohei Yoshida1-110/+41
There was already a method that did the same thing (loadDoc). Let's stick with loadDoc instead. Also took advantage of automatic literal to OUString conversion while I was at it. Change-Id: I184f6278dd4bf8e3f2f7e5eda1e5e293303df68c
2013-01-07Remove duplicated code blocks.Kohei Yoshida1-65/+23
Change-Id: I332a39fe86fee385bcd2cce33fe2096043111472 TODO: Do this in the other tests as well.
2013-01-07Append ODS to the test method name.Kohei Yoshida1-3/+3
Change-Id: I024d142b59ccceed944d641b6306f47dcf03ef9d