Commit Graph

6 Commits

Author SHA1 Message Date
Stephan Bergmann
b7e1bfefee Fix CppunitTest_libreofficekit_tiledrendering dependencies
Remove the unnecessary ones, but make sure that e.g. the sofficeapp library is
built (which was not covered by depending on services.rdb).

Change-Id: I1adfa4aaaf60787c944d71cc289cdafba8351c1b
2015-03-10 18:17:48 +01:00
Miklos Vajna
3687ae6f03 CppunitTest_libreofficekit_tiledrendering: fix up and enable this again
The main problem was that UserInstallation did not point to the usual
workdir/unittest/, so initialization failed early, not finding the
soffice.cfg directory under
workdir/CppunitTest/libreofficekit_tiledrendering.test.user/.

Disable one testcase that still fails, though.

Change-Id: I3fdae5ead47dd2a805a0ed8d3cb407938f868e3b
2015-03-09 10:16:11 +01:00
Andrzej Hunt
9f699caddf Use gb_CppunitTest_use_confpreinit for LOK tiled rendering.
Now that we use the event loop for LOK we need to make sure that
it is able to run successfully first time, as unit tests start
with a completely clean config.

Change-Id: If9ddcb75fe8286381d71ecdc76ac7eb3697960d0
2014-12-04 12:23:01 +01:00
Andrzej Hunt
9e7bdb422d Kill the libreofficekit static library / shim.c.
It looks like the cleanest method of getting lok_init into
a LibreOfficeKitInit.h header (in a c89 compatible way) is to
have it as a static function.

(inline is only available in C99 or later -- this is actually
 available on Linux which is the only place that we can actually
 use lok_init anyways currently, however given we have to keep
 c89 for the C code (for MSVC) compatibility, selectively enabling
 c99 would likely be more messy.)

Change-Id: I0493e7a68ed5397479220bb6ba8c3db870b6dd32
2014-07-29 07:11:20 +02:00
Andrzej Hunt
74eb70f957 Add png dumping to LOK tiled rendering test.
This allows for easier visual comparisons (i.e. currently the test
would be failing for some tiles).

Change-Id: I5b174375b57ffe0edd2700fdec411a83669e4a34
2014-07-17 20:39:09 +02:00
Andrzej Hunt
a5fe08855b Add LOK tiled rendering divided-tile unit test.
I.e. we render the same area as one larger tile, and then
as 4 sub-tiles (which, when put together, should be identical
to the larger tile). However currently only the top-left sub-tile
actually matches the larger tile, so we have to disable the test
for the remaining sub-tiles.

Change-Id: If1130022b43898e20fefff3e9f592102da3e413a
2014-07-12 05:19:14 +02:00