diff options
author | Jack Leigh <leighman@gmx.se> | 2013-03-05 16:47:03 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-03-12 15:35:34 +0000 |
commit | 08b6643eda69c1d4fc8a0b1277ffdd65834d5f46 (patch) | |
tree | 0d6bc9e7727f9605270e11e0cb5b2d690e783865 /smoketest | |
parent | f751be6fa0c097ad51e28a79fa91141bf3313d8f (diff) |
liblibo: test documentLoad method
Change-Id: I7827a9b96e5a18b7f0b8b374a49ab96625d22d0a
Diffstat (limited to 'smoketest')
-rw-r--r-- | smoketest/CppunitTest_liblibreoffice.mk | 1 | ||||
-rw-r--r-- | smoketest/libtest.cxx | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/smoketest/CppunitTest_liblibreoffice.mk b/smoketest/CppunitTest_liblibreoffice.mk index 8755fe8a286d..e784a3ab2b6d 100644 --- a/smoketest/CppunitTest_liblibreoffice.mk +++ b/smoketest/CppunitTest_liblibreoffice.mk @@ -27,6 +27,7 @@ endif $(eval $(call gb_CppunitTest_add_arguments,liblibreoffice,\ -env:arg-soffice=$(liblibreoffice_SOFFICE_INST) \ + -env:arg-testarg.smoketest.doc=$(OUTDIR)/bin/smoketestdoc.sxw \ )) # vim: set noet sw=4 ts=4: diff --git a/smoketest/libtest.cxx b/smoketest/libtest.cxx index cc71d0814f80..4e452a704a43 100644 --- a/smoketest/libtest.cxx +++ b/smoketest/libtest.cxx @@ -51,6 +51,12 @@ void Test::test() bool bInited = pOffice->initialize( aInstall.getStr() ); CPPUNIT_ASSERT( bInited ); + + rtl::OUString aArgDoc; + rtl::Bootstrap::get( rtl::OUString( "arg-testarg.smoketest.doc" ), aArgDoc ); + OString aDoc = OUStringToOString ( aArgDoc, RTL_TEXTENCODING_UTF8 ); + fprintf ( stderr, "liblibreoffice doc arg: '%s'\n", aDoc.getStr() ); + pOffice->documentLoad ( aDoc.getStr() ); } CPPUNIT_TEST_SUITE_REGISTRATION(Test); |