summaryrefslogtreecommitdiff
path: root/unotest/source
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2017-02-12 16:04:58 +0100
committerTamás Zolnai <tamas.zolnai@collabora.com>2017-02-12 16:43:06 +0000
commit49d7bdea17f6468b0c5c9f425f4432e2ad7e1ace (patch)
treedebd11744617476d9dfa2add377359b15a43c88c /unotest/source
parent8aff36d87f83fa2c86515f106c1e579b0903421a (diff)
ChartDumpTest: A new chart test suite for a more sistematic testing
A hibrid of dumper tests (xmlDump) and simple CppUnit tests. Advantages: * Easy to add a new test case ** Add a new test file and generate the reference ** Similar to dumper tests * Easy to find out the root of the problem when test fails ** Assertion is not coming somewhere from an XML file ** Assertion are placed in the code, so if you read and understand that code, you can find out easier why the test fails. ** Similar to simple CppUnit tests. * One test checks only one smaller part of the whole document ** e.g. legend, chart data, grid Change-Id: I7bba5a37efcc62d6358c84acece91963243a914f Reviewed-on: https://gerrit.libreoffice.org/34154 Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com> Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'unotest/source')
-rw-r--r--unotest/source/cpp/directories.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/unotest/source/cpp/directories.cxx b/unotest/source/cpp/directories.cxx
index 508af534c35e..71c1f32fa193 100644
--- a/unotest/source/cpp/directories.cxx
+++ b/unotest/source/cpp/directories.cxx
@@ -54,6 +54,11 @@ OUString test::Directories::getPathFromSrc( const char *pPath )
return m_aSrcRootPath + OUString::createFromAscii( pPath );
}
+OUString test::Directories::getPathFromSrc(const OUString& rPath)
+{
+ return m_aSrcRootPath + rPath;;
+}
+
OUString test::Directories::getURLFromWorkdir( const char *pPath )
{
return m_aWorkdirRootURL + OUString::createFromAscii( pPath );