diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-09-23 11:19:23 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-09-23 11:19:23 +0200 |
commit | 1da676eb86adc0fb3bb07bffbfc8b6704fdf0518 (patch) | |
tree | 94b9200ee25b2d0583407b453d8accd99fefea52 /test/source/htmltesttools.cxx | |
parent | b7f2df2165a7b708cc64fe709edac0e385be52fd (diff) |
Include name of document in CPPUNIT_ASSERT msgs
Change-Id: Ia0d06d1e0951bcc3930d5e059658209a2916405f
Diffstat (limited to 'test/source/htmltesttools.cxx')
-rw-r--r-- | test/source/htmltesttools.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/source/htmltesttools.cxx b/test/source/htmltesttools.cxx index ba48aae31769..6907366bb29c 100644 --- a/test/source/htmltesttools.cxx +++ b/test/source/htmltesttools.cxx @@ -14,7 +14,14 @@ htmlDocPtr HtmlTestTools::parseHtml(utl::TempFile& aTempFile) { SvFileStream aFileStream(aTempFile.GetURL(), STREAM_READ); - return parseHtmlStream(&aFileStream); + htmlDocPtr doc = parseHtmlStream(&aFileStream); + xmlFree(doc->name); + doc->name = reinterpret_cast<char *>( + xmlStrdup( + reinterpret_cast<xmlChar const *>( + OUStringToOString( + aTempFile.GetURL(), RTL_TEXTENCODING_UTF8).getStr()))); + return doc; } htmlDocPtr HtmlTestTools::parseHtmlStream(SvStream* pStream) |