Changeset 66241 in webkit


Ignore:
Timestamp:
Aug 27, 2010 11:40:39 AM (14 years ago)
Author:
benjamin.poulain@nokia.com
Message:

2010-08-27 Benjamin Poulain <benjamin.poulain@nokia.com>

Reviewed by Kenneth Rohde Christiansen.

[Qt] tst_QWebFrame::inputFieldFocus() fails on MeeGo Handset with QtWebKit 2.1
https://bugs.webkit.org/show_bug.cgi?id=44703

Make the test more robust to changes in the execution environment.
The position where the mouse events are sent is now computed from the element geometry,
this make the test less dependent on the fonts.

The test now also make sure the window manager mapped the window on screen
before attempting to send the events.

  • tests/qwebframe/tst_qwebframe.cpp:
Location:
trunk/WebKit/qt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/ChangeLog

    r66219 r66241  
     12010-08-27  Benjamin Poulain  <benjamin.poulain@nokia.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] tst_QWebFrame::inputFieldFocus() fails on MeeGo Handset with QtWebKit 2.1
     6        https://bugs.webkit.org/show_bug.cgi?id=44703
     7
     8        Make the test more robust to changes in the execution environment.
     9        The position where the mouse events are sent is now computed from the element geometry,
     10        this make the test less dependent on the fonts.
     11
     12        The test now also make sure the window manager mapped the window on screen
     13        before attempting to send the events.
     14
     15        * tests/qwebframe/tst_qwebframe.cpp:
     16
    1172010-08-27  Benjamin Poulain  <benjamin.poulain@nokia.com>
    218
  • trunk/WebKit/qt/tests/qwebframe/tst_qwebframe.cpp

    r66219 r66241  
    26982698    view.resize(400, 100);
    26992699    view.show();
     2700    QTest::qWaitForWindowShown(&view);
    27002701    view.setFocus();
    27012702    QTRY_VERIFY(view.hasFocus());
     
    27052706
    27062707    // focus the lineedit and check if it blinks
    2707     QTest::mouseClick(&view, Qt::LeftButton, 0, QPoint(25, 25));
     2708    const QWebElement inputElement = view.page()->mainFrame()->documentElement().findFirst(QLatin1String("input[type=text]"));
     2709    QTest::mouseClick(&view, Qt::LeftButton, 0, inputElement.geometry().center());
    27082710    m_inputFieldsTestView = &view;
    27092711    view.installEventFilter( this );
Note: See TracChangeset for help on using the changeset viewer.