diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2018-03-28 21:55:54 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-03-29 00:15:46 +0200 |
commit | 29a758c984ddd9b886dfd889859dfe2c1a6fd354 (patch) | |
tree | 984b86f6d02629fbfafba3cba0ca2490ac63ca8c | |
parent | f277d4155e41587a6f0c544a4752841caf96c583 (diff) |
Remove second part of these redlining related tests.
These parts seems to be unstable. The first assertion also tests
the main use case, so we don't loose to much with removing this code.
Change-Id: Ic3372ae43f1c6d5c3d342f3428cce514c0cd3dc1
Reviewed-on: https://gerrit.libreoffice.org/52037
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r-- | sw/qa/extras/tiledrendering/tiledrendering.cxx | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/sw/qa/extras/tiledrendering/tiledrendering.cxx b/sw/qa/extras/tiledrendering/tiledrendering.cxx index 338dd302620d..37a4d0a1ee9c 100644 --- a/sw/qa/extras/tiledrendering/tiledrendering.cxx +++ b/sw/qa/extras/tiledrendering/tiledrendering.cxx @@ -2132,33 +2132,6 @@ void SwTiledRenderingTest::testSplitNodeRedlineCallback() // Assert that we get a notification about redline modification // The redline after the inserted node gets a different vertical positon CPPUNIT_ASSERT_EQUAL(1, m_nRedlineTableEntryModified); - - // 2. test case - // Move cursor back to the first line, so adding new line will affect both tracked changes - pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 0, KEY_HOME | KEY_MOD1); - pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYUP, 0, KEY_HOME | KEY_MOD1); - Scheduler::ProcessEventsToIdle(); - - // Add a new line - m_nRedlineTableEntryModified = 0; - pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 0, KEY_RETURN); - pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYUP, 0, KEY_RETURN); - Scheduler::ProcessEventsToIdle(); - CPPUNIT_ASSERT_EQUAL(2, m_nRedlineTableEntryModified); - - // 3. test case - // Move cursor to the end of the document, so adding a new line won't affect any tracked changes - pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 0, KEY_END | KEY_MOD1); - pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYUP, 0, KEY_END | KEY_MOD1); - Scheduler::ProcessEventsToIdle(); - - // Add a new line - m_nRedlineTableEntryModified = 0; - pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 0, KEY_RETURN); - pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYUP, 0, KEY_RETURN); - Scheduler::ProcessEventsToIdle(); - CPPUNIT_ASSERT_EQUAL(0, m_nRedlineTableEntryModified); - comphelper::LibreOfficeKit::setActive(false); } @@ -2193,33 +2166,6 @@ void SwTiledRenderingTest::testDeleteNodeRedlineCallback() // Assert that we get a notification about redline modification // The redline after the removed node gets a different vertical positon CPPUNIT_ASSERT_EQUAL(1, m_nRedlineTableEntryModified); - - // 2. test case - // Move cursor back to the first line, so removing one line will affect both tracked changes - pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 0, KEY_HOME | KEY_MOD1); - pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYUP, 0, KEY_HOME | KEY_MOD1); - Scheduler::ProcessEventsToIdle(); - - // Remove a new line - m_nRedlineTableEntryModified = 0; - pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 0, KEY_DELETE); - pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYUP, 0, KEY_DELETE); - Scheduler::ProcessEventsToIdle(); - CPPUNIT_ASSERT_EQUAL(2, m_nRedlineTableEntryModified); - - // 3. test case - // Move cursor to the end of the document, so removing one line won't affect any tracked changes - pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 0, KEY_END | KEY_MOD1); - pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYUP, 0, KEY_END | KEY_MOD1); - Scheduler::ProcessEventsToIdle(); - - // Remove a line - m_nRedlineTableEntryModified = 0; - pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 0, KEY_BACKSPACE); - pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYUP, 0, KEY_BACKSPACE); - Scheduler::ProcessEventsToIdle(); - CPPUNIT_ASSERT_EQUAL(0, m_nRedlineTableEntryModified); - comphelper::LibreOfficeKit::setActive(false); } |