Commit da934a0a authored by Oliver Sander's avatar Oliver Sander Committed by Nate Graham
Browse files

Make cursor open hand again after clicking on internal link

CCBUG: 421437
parent c69e8a5b
Pipeline #37548 passed with stage
in 16 minutes and 43 seconds
......@@ -314,6 +314,13 @@ void PartTest::testClickInternalLink()
QTest::mouseMove(part.m_pageView->viewport(), QPoint(width * 0.17, height * 0.05));
QTest::mouseClick(part.m_pageView->viewport(), Qt::LeftButton, Qt::NoModifier, QPoint(width * 0.17, height * 0.05));
QTRY_COMPARE(part.m_document->currentPage(), 1u);
// make sure cursor goes back to being an open hand again. Bug 421437
// TODO: This test for bug 421437 has been committed when there was no fix for the bug
// available yet. That's why the QTRY_COMPARE_WITH_TIMEOUT is preceded by QEXPECT_FAIL.
// Please remove the QEXPECT_FAIL together with the fix for bug 421437.
QEXPECT_FAIL("", "Please remove this QEXPECT_FAIL once bug 421437 is fixed!", Continue);
QTRY_COMPARE_WITH_TIMEOUT(part.m_pageView->cursor().shape(), Qt::OpenHandCursor, 1000);
}
// Test for bug 421159, which is: When scrolling down with the scroll bar
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment