Changeset 66219 in webkit
- Timestamp:
- Aug 27, 2010 7:03:17 AM (14 years ago)
- Location:
- trunk/WebKit/qt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/qt/ChangeLog
r66217 r66219 1 2010-08-27 Benjamin Poulain <benjamin.poulain@nokia.com> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] tst_QWebFrame::hitTestContent() fails on Meego Handset 6 https://bugs.webkit.org/show_bug.cgi?id=44701 7 8 Make the test more robust. The position of the text is not relying 9 on the size of the fonts anymore. 10 11 * tests/qwebframe/tst_qwebframe.cpp: 12 1 13 2010-08-26 Antonio Gomes <tonikitoo@webkit.org> 2 14 -
trunk/WebKit/qt/tests/qwebframe/tst_qwebframe.cpp
r66096 r66219 2715 2715 void tst_QWebFrame::hitTestContent() 2716 2716 { 2717 QString html("<html><body><p>A paragraph</p><br/><br/><br/><a href=\"about:blank\" target=\"_foo\" >link text</a></body></html>");2717 QString html("<html><body><p>A paragraph</p><br/><br/><br/><a href=\"about:blank\" target=\"_foo\" id=\"link\">link text</a></body></html>"); 2718 2718 2719 2719 QWebPage page; … … 2721 2721 frame->setHtml(html); 2722 2722 page.setViewportSize(QSize(200, 0)); //no height so link is not visible 2723 QWebHitTestResult result = frame->hitTestContent(QPoint(10, 100)); 2723 const QWebElement linkElement = frame->documentElement().findFirst(QLatin1String("a#link")); 2724 QWebHitTestResult result = frame->hitTestContent(linkElement.geometry().center()); 2724 2725 QCOMPARE(result.linkText(), QString("link text")); 2725 2726 QWebElement link = result.linkElement();
Note: See TracChangeset
for help on using the changeset viewer.