Commit graph

363 commits

Author SHA1 Message Date
Stephan Bergmann
da65218ce1 Enabled sc/qa/complex again.
sc/qa/complex/calcPreview/ tests do not work automatically and have been left
alone.
2011-11-29 21:50:07 +01:00
Stephan Bergmann
8f32b3611e fdo#43304 is fixed, tests can be re-enabled. 2011-11-29 16:57:16 +01:00
Kohei Yoshida
1dcb62fe48 fdo#43304: Allow empty field labels in pivot tables.
Empty field labels are replaced with the column name.
2011-11-28 17:32:47 -05:00
Stephan Bergmann
b8d2671fd0 Enabled sc/qa/unoapi again.
Currently often fails at shutdown, when Bridge::terminate ->
~ScAutoFormatObj -> ScGlobal::GetAutoFormat after ScGlobal::Clear
leads to ScAutoFormat ctor -> ScGlobal::GetRscString with null
ppRscString.
2011-11-28 22:05:47 +01:00
Stephan Bergmann
08d79b3084 Disabled tests failing due to fdo#43312. 2011-11-28 22:05:46 +01:00
Stephan Bergmann
eb76f71658 Disabled tests failing due to fdo#43309. 2011-11-28 22:05:45 +01:00
Stephan Bergmann
23b91df22b Disabled tests failing due to fdo#43308. 2011-11-28 22:05:45 +01:00
Stephan Bergmann
3ece0527eb Disabled tests failing due to fdo#43304. 2011-11-28 22:05:45 +01:00
Eike Rathke
b1f5616276 added CSC,SEC,CSCH,SECH to testFunctionLists 2011-11-28 15:25:35 +01:00
Markus Mohrhard
6c8f7589de create a base class for macros_test
For tests that need file import you can now choose between FiltersTest
or MacrosTest as base class.

FiltersTest imports through SfxObjectShell and does not have any ui
MacrosTest imports through Desktop::LoadComponentFromURL and initializes
the ui, therefore it needs to run headless
2011-11-27 08:22:39 +01:00
François Tigeot
eda3e5dcb6 Disable password test on DragonFly 2011-11-25 09:42:09 +01:00
Kohei Yoshida
92e03b8288 Cleaned up the ScTable declaration a bit.
* make it officially non-copyable. It was never copied anyway.
* retire std::auto_ptr which is deprecated.  Let's use boost::scoped_ptr.
* some unused typedef's.
2011-11-23 23:34:18 -05:00
Markus Mohrhard
9e8ae1d560 remove ScRangeName::findByName
this method was mmisused and is the source for some "bugs"

we don't allow case sensitive storage of range names and therefore it
does not amke sense to search by case sensitive names, use
ScRangeName::findByUpperName instead
Especially the uno implementation did behave wrongly and allowed to
create two names that were identicall for the model
2011-11-23 06:25:36 +01:00
Kohei Yoshida
a725d287a2 Unit test for cell function T with external references. 2011-11-22 22:32:05 -05:00
Kohei Yoshida
264e503468 fdo#43154: Fixed incorrectly query validation.
It was due to a simple mis-placement of an operator.  No idea how
the compiler may have parsed that statement...
2011-11-22 14:58:53 -05:00
Markus Mohrhard
0cb0952a50 little cleanup in ucalc 2011-11-19 02:52:38 +01:00
Markus Mohrhard
ed398366d5 remove libsqlite from macosx library path again and disable testPassword there 2011-11-19 02:52:38 +01:00
Markus Mohrhard
b352f5357c macros_test does not need to inherit from Filters-Test 2011-11-18 22:48:20 +01:00
Markus Mohrhard
a66be63469 refactor the new bugFile tests 2011-11-18 22:34:12 +01:00
Markus Mohrhard
21c437d17b allow testing of bugfiles in sc's filters-test 2011-11-18 22:34:12 +01:00
Markus Mohrhard
450c49d93f add sqlite path to library path and enable testPassword
plus gb_Helper_extend_ld_path normalization by sbergman@redhat.com
2011-11-15 09:04:37 +01:00
Markus Mohrhard
ba49ae1bdb clean up macros_test 2011-11-14 23:50:55 +01:00
Markus Mohrhard
275110a095 don't use XUnoTunnel directly, use SfxObjectShell::GetShellFromComponent 2011-11-14 23:50:55 +01:00
Markus Mohrhard
98f138c7ca we no longer need to open unit test files READWRITE in sc 2011-11-14 23:50:55 +01:00
Kohei Yoshida
51494ab729 Likewise, adjusted the test cases for MATCH to handle mixed comparisons. 2011-11-14 12:07:48 -05:00
Kohei Yoshida
2f61bdff44 Modified VLOOKUP test case to account for mixed comparisons.
When the lookup value is of type Text, and the last match is of type
Number, it should return #N/A according to the ODFF spec.
2011-11-14 11:58:35 -05:00
Stephan Bergmann
19b8dd5ded No need for test/user-template/user/registry. 2011-11-11 13:47:27 +01:00
Kohei Yoshida
e67181c0f1 Re-enabled textural in-exact comparison in unit test for MATCH.
It was the code that checks for the VBA mode that was throwing the
exception.
2011-11-10 15:26:10 -05:00
Kohei Yoshida
0f6bb1763f Added text values to the mix.
Textural evaluations throw an UNO exception, however.  I need to look
into this.
2011-11-09 17:36:09 -05:00
Kohei Yoshida
ecea4e54e1 Added new unit test for MATCH function.
Only ascending and descending in-exact matches for now.
2011-11-09 17:36:08 -05:00
Kohei Yoshida
4c53798989 Devided built-in cell function tests into separate functions. 2011-11-09 17:36:08 -05:00
Kohei Yoshida
5d1a991692 Test case for VLOOKUP (in-exact lookup on sorted range). 2011-11-08 17:16:59 -05:00
Kohei Yoshida
b45ef26980 Added test for COUNTIF. 2011-11-08 17:16:59 -05:00
Kohei Yoshida
6303b977ed Put each function test in a separate scope, just to be consistent... 2011-11-08 17:16:59 -05:00
Caolán McNamara
e6c7a339c4 exclude windows for now as well 2011-11-08 13:16:44 +00:00
Kohei Yoshida
5897d4a60f Encapsulated empty and non-empty filter criteria.
Because those two conditions were not very obvious.
2011-11-07 22:56:53 -05:00
Markus Mohrhard
0405deaf2d we only have one sheet in the new PostIt test 2011-11-08 04:51:43 +01:00
Kohei Yoshida
a3ddd330bd Test for filtering empty and non-empty cells. 2011-11-07 21:34:03 -05:00
Kohei Yoshida
cbe46bbe3e Simplified the filter test a bit, and clear the filter afterward. 2011-11-07 21:34:03 -05:00
Kohei Yoshida
8808d77f19 Changed data storage structure in ScQueryEntry.
This required a whole bunch of chnages all over the place.
2011-11-07 21:33:02 -05:00
Michael Meeks
0c3f7e161f calc: initial cut at post-it unit test 2011-11-07 17:25:03 +00:00
Markus Mohrhard
cc59e69c6f String->OUString in ScDocument and follow up 2011-11-07 03:46:21 +01:00
Kohei Yoshida
3df7746a66 Moved ScQueryEntry into its own file set.
Because I'll be modifying this struct in the next few days...
2011-11-05 00:56:38 -04:00
Markus Mohrhard
651aa258c9 remove some unneeded dependencies
they are no longer used because we separated macros_test and
filters-test
2011-11-04 04:08:49 +01:00
Markus Mohrhard
989ee5998b add test cases for "Informations" functions to functions.ods 2011-11-04 04:08:48 +01:00
Markus Mohrhard
9249958a58 initial work for a password test
still needs work in:
- RdbTarget_sc_filters_test -- missing component files to NSS (need to be
conditional on nss)
- nssinitializer.cxx:306 -- new environment variable BRAND_PROGRAM_DIR for
$(BRAND_BASE_DIR)/program that is overriden in the unit test to
solver/(platform)/lib
- make the testPassword in filters-test.cxx conditional on NSS
- LD_LIBRARY_PATH needs an additional entry for
  solver/(platform)/lib/sqlite

password.ods has password test and has been created Nov, 3rd 2011 with a
master build and should be ODF1.2 conform
2011-11-03 22:06:30 +01:00
Markus Mohrhard
97b5ed250d remove all debug output from filters-test that was for the xls bug 2011-11-03 17:28:19 +01:00
Markus Mohrhard
84ae3c9853 add test cases for fdo#40967 2011-11-02 00:50:54 +01:00
Markus Mohrhard
0eae161aa3 add tests related to fdo#41807 2011-11-01 23:09:17 +01:00
Kohei Yoshida
2f46c82072 New unit test to test AND and OR evaluations of matrix objects.
This is in response to fdo#40967.
2011-11-01 17:02:09 -04:00