loolwsd: added impress tiles unittest
Change-Id: I25036f6a9ad77ebd06991866245e89c1045fbea3 Reviewed-on: https://gerrit.libreoffice.org/29114 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
This commit is contained in:
parent
b7aa479120
commit
cdafb34b53
1 changed files with 18 additions and 0 deletions
|
@ -53,6 +53,7 @@ class TileCacheTests : public CPPUNIT_NS::TestFixture
|
|||
CPPUNIT_TEST(testSimpleCombine);
|
||||
CPPUNIT_TEST(testPerformance);
|
||||
CPPUNIT_TEST(testUnresponsiveClient);
|
||||
CPPUNIT_TEST(testImpressTiles);
|
||||
CPPUNIT_TEST(testClientPartImpress);
|
||||
CPPUNIT_TEST(testClientPartCalc);
|
||||
#if ENABLE_DEBUG
|
||||
|
@ -69,6 +70,7 @@ class TileCacheTests : public CPPUNIT_NS::TestFixture
|
|||
void testSimpleCombine();
|
||||
void testPerformance();
|
||||
void testUnresponsiveClient();
|
||||
void testImpressTiles();
|
||||
void testClientPartImpress();
|
||||
void testClientPartCalc();
|
||||
void testSimultaneousTilesRenderedJustOnce();
|
||||
|
@ -274,6 +276,22 @@ void TileCacheTests::testUnresponsiveClient()
|
|||
socket2.shutdown();
|
||||
}
|
||||
|
||||
void TileCacheTests::testImpressTiles()
|
||||
{
|
||||
try
|
||||
{
|
||||
const std::string testName = "impressTiles ";
|
||||
auto socket = *loadDocAndGetSocket("setclientpart.odp", _uri, testName);
|
||||
|
||||
sendTextFrame(socket, "tile part=0 width=180 height=135 tileposx=0 tileposy=0 tilewidth=15875 tileheight=11906 id=0", testName);
|
||||
getTileMessage(socket, testName);
|
||||
}
|
||||
catch (const Poco::Exception& exc)
|
||||
{
|
||||
CPPUNIT_FAIL(exc.displayText());
|
||||
}
|
||||
}
|
||||
|
||||
void TileCacheTests::testClientPartImpress()
|
||||
{
|
||||
try
|
||||
|
|
Loading…
Reference in a new issue