Make cursor open hand again after clicking on internal link

CCBUG: 421437
remotes/origin/work/aacid/shorcutslost_2008
Oliver Sander 6 years ago committed by Nate Graham
parent c69e8a5b13
commit da934a0a0a
  1. 7
      autotests/parttest.cpp

@ -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

Loading…
Cancel
Save