summaryrefslogtreecommitdiff
path: root/libreofficekit/qa
AgeCommit message (Collapse)AuthorFilesLines
2014-07-30gtktiledviewer: show part names in selector.Andrzej Hunt1-5/+15
Change-Id: I02ae5b729f96e36b3f226218b32495907cb63cf3
2014-07-29Kill the libreofficekit static library / shim.c.Andrzej Hunt2-0/+2
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-28Use CPPUNIT_ASSERT instead of assert.Andrzej Hunt1-1/+1
Change-Id: I24e7934002ebdde208db74ae3308b26875a3155b
2014-07-26gtktiledviewer: make sure we clean up the office instance.Andrzej Hunt1-0/+4
Change-Id: I12c3e9df8b8fcf8dcd6fb5fa781c2f7c10ab0a0c
2014-07-26libreofficekit_tilederendering: test all 4 tiles.Andrzej Hunt1-2/+2
The use of VisPortChgd ensures that the tiles all render as expected, i.e. that the pixels match 1:1 irrespective of actual tile size (for identical zoom factors and document areas). Change-Id: Ib1e1df4f8257546c2f7993a8160c309a52037d8b
2014-07-18cid#1226493 Uninitialized scalar variableNoel Grandin1-1/+1
Change-Id: I80cd8adccad492c7e4b71e6204c0059bfc003b83
2014-07-17libreofficekit_tiledrendering test: force lock file removalAndrzej Hunt1-0/+8
If the lock file still exists when running this test, LOK will fail resulting in "documentLoad failed: unknown load failure" (the actual error is that the lock file dialog cannot be confirmed by the user in headless mode, resulting in loading failure, however this is then hidden by multiple layers of exception redirection in sfx2). Change-Id: I025ea6187c3d17805f25ab6f756eae9646f2c7c8
2014-07-17Add png dumping to LOK tiled rendering test.Andrzej Hunt1-0/+25
This allows for easier visual comparisons (i.e. currently the test would be failing for some tiles). Change-Id: I5b174375b57ffe0edd2700fdec411a83669e4a34
2014-07-17Fix some CppunitTest_libreofficekit_tiledrendering related problemsMatúš Kukan1-1/+2
Change-Id: Icdcde0af1b3d5744ef2842e4b4d2b85a094ac686
2014-07-14LOK tiled rendering test: add some debug output.Andrzej Hunt1-0/+8
Change-Id: I0da29204809b6a1de42d5f0fc37705497a060493
2014-07-12GtkComboBoxText requires gtk >= 2.24.Andrzej Hunt1-0/+9
Seeing as this is only a test program, probably easiest just to disable this for gtk < 2.24, and rely on devs wanting to use it isntalling a new enough gtk version.
2014-07-12Add LOK tiled rendering divided-tile unit test.Andrzej Hunt1-0/+111
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-12Add part selector to gtktiledviewer.Andrzej Hunt1-0/+33
Change-Id: I569c8f0ebf4476c0a247cde15a263d1db956a14b
2014-07-12gtktiledviewer: allow selecting between normal and quad-tile view.Andrzej Hunt1-5/+66
Change-Id: I85b22b93fe4ce2ffb62df8766ceea7a1bd8961ee
2014-07-12Quad Docview: only rerender on zoom if we have a document open.Andrzej Hunt1-1/+4
Same as "LOK DocView: only rerender on zoom if we have a document open." but for our quad-tiled test widget. Change-Id: I6c1b946cc9d576d1dcc4687048339d9f0b3e6eff
2014-07-12Implement a (qa-only) quad-tiled viewer.Andrzej Hunt2-0/+319
I.e. we subdivide the document into 4 tiles: one at 100% scaling, one at 200%, one at 50%, one at 25% -- these are then post-scaled in gdk) and assembled to show as one document again. This is specifically a test only widget, primarily to be able to quickly spot any tile positioning/border-transition issues. We could theoretically make this widget inherit from the original widget, however that would mean having to introduce virtual methods etc., which is not something that we'd want in production -- in the longer run that widget will hopefully be extended to have proper tile composition etc., which would then break this widget too if it were inheriting from there. Change-Id: Ib880a1614f89724135e753013cf91aec25973e39
2014-06-25Add zoom controls to gtktiledviewer.Andrzej Hunt1-5/+75
Change-Id: I33ae83a97be254a3d3716bd9ae05f089845fd536
2014-06-25Move gtktiledviewer into libreofficekit.Andrzej Hunt1-0/+57
desktop is no longer the right place for it now that libreofficekit has its own directory. Change-Id: I207f1d642e7e35c460ff85bb57aa142cb98023c8