diff options
author | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-07-14 13:12:56 +0200 |
---|---|---|
committer | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-07-14 13:14:59 +0200 |
commit | 44e19aa6c62c3f04239f1f096f0ec99457380019 (patch) | |
tree | 9d97f6cc5741aa0095c314db1fab7b065a2d19f8 /libreofficekit/qa/unit | |
parent | 9dd5caac62083f7162d83319284df68ee83e3777 (diff) |
LOK tiled rendering test: add some debug output.
Change-Id: I0da29204809b6a1de42d5f0fc37705497a060493
Diffstat (limited to 'libreofficekit/qa/unit')
-rw-r--r-- | libreofficekit/qa/unit/tiledrendering.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libreofficekit/qa/unit/tiledrendering.cxx b/libreofficekit/qa/unit/tiledrendering.cxx index 1cc93f798edd..d48e3044b111 100644 --- a/libreofficekit/qa/unit/tiledrendering.cxx +++ b/libreofficekit/qa/unit/tiledrendering.cxx @@ -47,9 +47,17 @@ void TiledRenderingTest::testOverlay() scoped_ptr< Office > pOffice( lok_cpp_init( sLOPath.c_str() ) ); + assert( pOffice.get() ); + scoped_ptr< Document> pDocument( pOffice->documentLoad( sDocPath.c_str() ) ); + if ( !pDocument.get() ) + { + fprintf( stderr, "documentLoad failed: %s\n", pOffice->getError() ); + CPPUNIT_FAIL( "Document could not be loaded -- tiled rendering not possible." ); + } + // We render one large tile, then subdivide it into 4 and render those parts, and finally // iterate over each smaller tile and check whether their contents match the large // tile. |