summaryrefslogtreecommitdiff
path: root/libreofficekit
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej.hunt@collabora.com>2014-07-24 21:27:43 +0200
committerAndrzej Hunt <andrzej.hunt@collabora.com>2014-07-26 15:42:04 +0200
commitbfad9f5b7bbcb93af46cae535120795ead1f4f0a (patch)
tree68e158531aec94be51594ab58e6ca200133f6601 /libreofficekit
parent94c720830c0f95bd9776ea3f21623bb949b9bbfe (diff)
libreofficekit_tilederendering: test all 4 tiles.
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
Diffstat (limited to 'libreofficekit')
-rw-r--r--libreofficekit/qa/unit/tiledrendering.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libreofficekit/qa/unit/tiledrendering.cxx b/libreofficekit/qa/unit/tiledrendering.cxx
index cec35ed6db89..b231eb0b72ba 100644
--- a/libreofficekit/qa/unit/tiledrendering.cxx
+++ b/libreofficekit/qa/unit/tiledrendering.cxx
@@ -134,9 +134,9 @@ void TiledRenderingTest::testOverlay()
// Iterate over our array of tiles
// However for now we only bother with the top-left
// tile as the other ones don't match yet...
- for ( int x = 0; x < 1; x++ )
+ for ( int x = 0; x < 2; x++ )
{
- for ( int y = 0; y < 1; y++ )
+ for ( int y = 0; y < 2; y++ )
{
int xLarge = (x * (4 * nTotalWidthPix / 2)) + xSmall;
int yLarge = (y * (nTotalHeightPix / 2)) + ySmall;