summaryrefslogtreecommitdiff
path: root/desktop/qa
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2021-08-02 22:27:28 +0900
committerTomaž Vajngerl <quikee@gmail.com>2021-08-10 08:32:57 +0200
commit7da5537f6a43c1b82afc5e0c8d18b8d847293fda (patch)
treec0f50cd596465a83faac448de6e28f9fb6d1e88b /desktop/qa
parentfa5202f746b25ea444d120d746a0dc35b8f8cca5 (diff)
indexing: use XML as input that is identical to indexing XML
Change-Id: I2242b4bd77220b55e67c2e0f0fe54f008759d282 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120194 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'desktop/qa')
-rw-r--r--desktop/qa/desktop_lib/test_desktop_lib.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/desktop/qa/desktop_lib/test_desktop_lib.cxx b/desktop/qa/desktop_lib/test_desktop_lib.cxx
index f23f9709416e..dc8b4caf1de4 100644
--- a/desktop/qa/desktop_lib/test_desktop_lib.cxx
+++ b/desktop/qa/desktop_lib/test_desktop_lib.cxx
@@ -3117,13 +3117,16 @@ void DesktopLOKTest::testRenderSearchResult()
Scheduler::ProcessEventsToIdle();
unsigned char* pBuffer = nullptr;
- OString aJSON = "{ \"type\" : 1, \"node_index\" : 19 }";
+ OString aPayload =
+ "<indexing>"
+ "<paragraph type=\"1\" index=\"19\">ABC</paragraph>"
+ "</indexing>";
int nWidth = 0;
int nHeight = 0;
size_t nByteSize = 0;
- bool bResult = pDocument->m_pDocumentClass->renderSearchResult(pDocument, aJSON.getStr(), &pBuffer, &nWidth, &nHeight, &nByteSize);
+ bool bResult = pDocument->m_pDocumentClass->renderSearchResult(pDocument, aPayload.getStr(), &pBuffer, &nWidth, &nHeight, &nByteSize);
CPPUNIT_ASSERT(bResult);
CPPUNIT_ASSERT(pBuffer);