Kaydet (Commit) 598b05f0 authored tarafından Miklos Vajna's avatar Miklos Vajna

CppunitTest_libreofficekit_tiledrendering: add postUnoCommand() testcase

This fails without commit d4a12421
(desktop: pJSON may be 0 in jsonToPropertyValues(), 2015-04-29).

Change-Id: I08fffe65eb6cdc94fcfc57c2b8f1ec9fa546f70d
üst 38cb71ce
......@@ -125,7 +125,11 @@ void TiledRenderingTest::testDocumentTypes( Office* pOffice )
// FIXME: same comment as below wrt lockfile removal.
remove( sTextLockFile.c_str() );
CPPUNIT_ASSERT( getDocumentType( pOffice, sTextDocPath ) == LOK_DOCTYPE_TEXT );
std::unique_ptr<Document> pDocument(pOffice->documentLoad( sTextDocPath.c_str()));
CPPUNIT_ASSERT(pDocument.get());
CPPUNIT_ASSERT_EQUAL(LOK_DOCTYPE_TEXT, static_cast<LibreOfficeKitDocumentType>(pDocument->getDocumentType()));
// This crashed.
pDocument->postUnoCommand(".uno:Bold");
const string sPresentationDocPath = m_sSrcRoot + "/libreofficekit/qa/data/blank_presentation.odp";
const string sPresentationLockFile = m_sSrcRoot +"/libreofficekit/qa/data/.~lock.blank_presentation.odp#";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment