diff options
author | Andras Timar <andras.timar@collabora.com> | 2015-02-07 11:32:49 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-02-07 11:32:49 +0100 |
commit | 72812676b419b8d5fa32d06e5c45af73d08eac59 (patch) | |
tree | 46503d200d162b4d97e7ba83fe0cac043ed61287 | |
parent | fafd6cd4f784e5b65548af699bc25502f10a4b8d (diff) |
tdf#76291 adapt unit test to libreoffice-4-4
Change-Id: I12c74380b65e463be352825c7f1459393883283b
-rw-r--r-- | sw/qa/extras/htmlexport/htmlexport.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/qa/extras/htmlexport/htmlexport.cxx b/sw/qa/extras/htmlexport/htmlexport.cxx index aaa43d6eb4a4..47cffc7cdfa6 100644 --- a/sw/qa/extras/htmlexport/htmlexport.cxx +++ b/sw/qa/extras/htmlexport/htmlexport.cxx @@ -237,9 +237,10 @@ DECLARE_HTMLEXPORT_TEST(testExportUrlEncoding, "tdf76291.odt") { htmlDocPtr pDoc = parseHtml(maTempFile); CPPUNIT_ASSERT(pDoc); - + // Test URI encoded hyperlink with Chinese characters - assertXPath(pDoc, "/html/body/p/a", "href", "http://www.youtube.com/results?search_query=%E7%B2%B5%E8%AA%9Emv&sm=12"); + assertXPath(pDoc, "/html/body/p/a[1]", "href", "http://www.youtube.com/results?search_query=%E7%B2%B5%E8%AA%9Emv&sm=12"); + assertXPath(pDoc, "/html/body/p/a[2]", "href", "http://www.youtube.com/results?search_query=%E7%B2%B5%E8%AA%9Emv&sm=12"); } CPPUNIT_PLUGIN_IMPLEMENT(); |