summaryrefslogtreecommitdiff
path: root/sc/qa/unit
AgeCommit message (Collapse)Author
2013-03-06fdo#60148 Clean up warnings from the Clang compiler pluginnccuong
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 King
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-27tolerence -> toleranceMiklos Vajna
Change-Id: Ibf2c03eb8f55c26060b83cda8c29376c110cf822
2013-02-27stop tinderbox whingingNoel Power
Change-Id: Idcf6bc8efa1598b97b7e3ad5c73e485d982b4096
2013-02-27enable disabled test for rotated anchored shape,Noel Power
the test ( regarding hidden shape ) is renabled, note there is still an issue with this, the width of the shape is reduced ( there is still some bug here ) but the main problem ( where the the shape was partially shown on import ) is still there. Now it is worth noting there is an existing problem where even before the patches to rotate the anchor were in place that a totally hidden shape ( even unrotate ) can have its dimensions 'changed' ( just try with a shape that has edges away for col/row borders, you will notice when the rows that the shape is contained in are shown that the width height of the shape can be changed ) Change-Id: I1f87d69fb1729fd5726529f6527f28feaa333c86
2013-02-26WaE: int/SCROW format mismatchTor Lillqvist
Change-Id: If33637df7f175f3f4248093034849177da681117
2013-02-26blind Android printf int/long waeNoel Power
Change-Id: I81a6767e8144336ed72f195cebb3764b4b741a32
2013-02-26add some shape anchor related tests ( for rotated shapes )Noel Power
Change-Id: I6363c408c1205c99cd11cada3877a3006022d06b
2013-02-23Fix typo begining/beginning.Julien Nabet
Change-Id: I9fff386181a2be0bc83787c8b5aec9c1cb4db9c3
2013-02-23Fix typos retreive/retrieve furture/futureJulien Nabet
Change-Id: I639c2970b2a88ca3d5aa1dcd2ad4ec047b4a369c
2013-02-12Some cppcheck cleaningJulien Nabet
Change-Id: I8609949377181f8edb30ac07b2791cfcd079fc7d
2013-02-12Renamed hard-to-remember 8-char headers in editeng.Kohei Yoshida
Change-Id: If255802082890e1b1b4c5197a791fa79a011773e
2013-02-11Add new filter test for raw cell value import from ods.Kohei Yoshida
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 Pruegsanusak
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 Pruegsanusak
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-08fdo#60322 add calc function SKEWP as in ODFF v1.2Winfried Donkers
Change-Id: I4851df1473fc7788af1ac642bb0fb527ec872821 Reviewed-on: https://gerrit.libreoffice.org/2020 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-02-07blind wae fix for MacOSXNoel Power
Change-Id: I2086b724a6787838b9dd61c78d6943a1efa27a19
2013-02-07another row height ( related to optimalheight and deleting content ) fdo#59193Noel Power
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-05UniString to OUString in ScRefFinder, and a bunch more cleanups.Kohei Yoshida
Some extra code to ensure that OUString's copy method gets correct sub-string lengths. Unlike UniString, OUString's version is more strict. Change-Id: I7daabf2ad587ff44fd6d8c66a02dbecfe519295b
2013-02-05fdo#39135: Add unit test for this.Kohei Yoshida
Change-Id: Id857bfdfd7a2e9024eabdc2b63c02d3d61e7e4f6
2013-02-04moved the export row check to qahelper, made it useful for import/exportNoel Power
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 Power
additionally rtl::OUString(Buffer) => OUString(Buffer) changes Change-Id: Ibf93e8a3ed435fda42836c214b7faac6b3dda71e
2013-02-02fdo#57180 return #VALUE! error if a number couls not be parsedEike Rathke
Change-Id: I25ed88b30329b92f80efd329243f85b271d972a7
2013-02-02fdo#57180 add calc function NUMBERVALUE as defined in ODFF1.2Winfried Donkers
Conflicts: sc/source/filter/excel/xlformula.cxx sc/source/filter/oox/formulabase.cxx Change-Id: I6ee01764ae9fc27854fd3bd8a630b9d3560192e5 Reviewed-on: https://gerrit.libreoffice.org/1477 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-01-31ScExportTest: enable testPasswordExport on WNTMichael Stahl
With the previous commit it appears to work now. Change-Id: Ifa2c69c6e8617461ec2098ecc959e99a4812565e
2013-01-31fdo#59022: revert "SfxMedium::GetOutputStream(): re-use existing XStream"Michael Stahl
Revert commit 0c2206081de38a41597aadfb2255540d6308be63, since this apparently causes failure to open ODF files via SMB on Linux. Instead of changing SfxMedium, adjust the ScExportTest: when saving XLSX files interactively, the SfxFilter::lFormat is always 0, which causes SfxObjectShell::SaveTo_Impl not to call SfxMedium::GetOutputStorage() at all, working around the locking issue on WNT. Change-Id: I0ab8b4262475e4c8425eebb1413997457e5e9417
2013-01-31WaE: C++11 requires a space between literal and identifierTor Lillqvist
Change-Id: I3351298e338315881bc8fa344849f00ee4438059
2013-01-31Meh, use SAL_PRIdINT32Tor Lillqvist
Change-Id: I8ce0d94e7946175d1b287ba85567f9bb414f4152
2013-01-31Use a method from UnoApitest instead of implement a new one in calcMarcos Paulo de Souza
In calc, we see a lot of implementations of createFileURL. So get ride of all it and start to use the UnoAPitest::createFileURL method. Also, clean the UnoApiRest::createFileURL method, fix the path from UnoApiTest and moved some testing files to the right dir that the file belongs. Conflicts: sc/qa/extras/scoutlineobj.cxx Change-Id: Ic02f13777503729ac70da590f4a42866f17ea9b2
2013-01-30WaE: format %d expects argument of type int, but argument 2 has type long intTor Lillqvist
Change-Id: I0fe32f14641ed2c2cf1ee4e0f03aa9bef805ef1d
2013-01-30correctly handle repeated row heights for empty rows ( fdo#59973 )Noel Power
it seems both xls & xlsx export suffer from problems with multiple row heights repeated ( if those rows are empty ) Change-Id: I3ed68a81517a3e55d1de1954fcb99e7cb39be337
2013-01-30Let's stick with just one variant of ScDocument::GetString()...Kohei Yoshida
Instead of having 3 of them. Change-Id: I2de9b63c33b7362162a56ea391f8b68a468163fa
2013-01-29We don't need this hack anymore for unit test.Kohei Yoshida
I've addressed the root cause the right way. Change-Id: I1b3b13d28e4acc9f9ec814c0ad242166aa34a65e
2013-01-26this test case must be changed a bitMarkus Mohrhard
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 Mohrhard
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 Mohrhard
Change-Id: I8e5f8cb351792b53c89658074e41dff3a3c4d9db
2013-01-24New test for importing chart object with references to cell ranges.Kohei Yoshida
Change-Id: I2167d1a2c7ea70415581caf29acf620e4b116e69
2013-01-24calling loadDoc is simpler.Kohei Yoshida
Change-Id: I6a507825252f316c8106ea4b856bf166a010c15b
2013-01-24disable these two tests for nowMarkus Mohrhard
Change-Id: I579694780b64e532b0e61017783bc4e72f8d2936
2013-01-18fdo#58988, fdo#58562: Populate draw clip document with data for charts.Kohei Yoshida
Without populating the clip document, copying a chart (or charts) into clipboard makes the charts lose all their referenced data, which causes the pasted chart to appear empty. Change-Id: I3675f76baed19b48cec403964c19df00725a044b
2013-01-15add test case for fdo#59293Markus Mohrhard
Change-Id: I5972a2805d8bc03b84a42fbba4b67923b3b77249
2013-01-15with the new recalc of matrix with errors, this assert is no longer trueMarkus Mohrhard
We need a new test case for this with a matrix that does not contain cells with error values. Change-Id: I7fb9efb5077cf6e43cbfd32c64274777d371b956
2013-01-14Keep this simple. No need to wrap literals with OUString any more.Kohei Yoshida
Change-Id: Idedd6be54cf74efc69a48d39018011aba018973e
2013-01-14Figured out why testFuncMATCH was failing. Fixed it, all green.Kohei Yoshida
Change-Id: Id45f4c853bf689afa8a46edc02e1e5f8c43894bc
2013-01-14Add new unit test to test pivot table functionalities via ScDBDocFunc.Kohei Yoshida
This change also introduces the following changes: 1) Special initialization routine just for the unit test runs. In particular, SfxMedium instance needs to be set even for a brand-new document (as in the actual run-time), or else the document would be always labeled "read-only". This prevented us from testing various code in Calc, which this commit fixes. 2) Several cppunit checks that checked for incorrect results, which passed because we happened to be getting those incorrect results due to the issue with the SfxMedium instance not being set. 3) Unfortunately now the test for cell function MATCH fails for some mysterious reason. The test is disabled temporarily until we figure this out. Change-Id: If231fd99e0ffddcd74f65c7cb5476e7a25f0ac7d
2013-01-11Let's remove this underused bAlive flag....Kohei Yoshida
It's no longer that useful in today's pivot table design. Change-Id: I665a7707126793dfde17a2221ba563d22a59aad1
2013-01-12at least use correct test data ...Eike Rathke
Change-Id: Icb5bb61108f6bb674016ce044ecbe6a366b4f9c6
2013-01-12make this compile with a not so recent code baseEike Rathke
Change-Id: I9b3f8ca9c5af326735ff9c95359e6a0917d6898b
2013-01-11Actually call testFuncIFERRORStephan Bergmann
TODO: Commented out for now the tests that currently fail. (Also improved the code by calling CPPUNIT_ASSERT_EQUAL_MESSAGE.) Change-Id: I726089ad046b97ce64fd655269b2be652e78efe9
2013-01-11fdo#56124 changes to "add functions IFERROR and IFNA"Eike Rathke
* reimplemented actual ScIfError() function for matrix cases and simpler pop/push of non-error values * various smaller adaptions, see also inline comments of https://gerrit.libreoffice.org/1522 Change-Id: I80a8235a2cbb548c0ef993862e76741af46e30d2