Changeset 70690 in webkit


Ignore:
Timestamp:
Oct 27, 2010 12:39:42 PM (14 years ago)
Author:
jocelyn.turcotte@nokia.com
Message:

2010-10-27 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>

Reviewed by Kenneth Rohde Christiansen.

[Qt] Fix tst_QWebFrame::popupFocus().
https://bugs.webkit.org/show_bug.cgi?id=48432

  • Call setFocus() before show() to work around a but in Qt.
  • Remove the check on combo at the end since hidePopup() leads indirectly to its destruction and segfault.
  • tests/qwebframe/tst_qwebframe.cpp:
Location:
trunk/WebKit/qt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/ChangeLog

    r70574 r70690  
     12010-10-27  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] Fix tst_QWebFrame::popupFocus().
     6        https://bugs.webkit.org/show_bug.cgi?id=48432
     7
     8        - Call setFocus() before show() to work around a but in Qt.
     9        - Remove the check on combo at the end since hidePopup() leads
     10          indirectly to its destruction and segfault.
     11
     12        * tests/qwebframe/tst_qwebframe.cpp:
     13
    1142010-10-26  Jenn Braithwaite  <jennb@chromium.org>
    215
  • trunk/WebKit/qt/tests/qwebframe/tst_qwebframe.cpp

    r70558 r70690  
    26042604                 "</html>");
    26052605    view.resize(400, 100);
     2606    // Call setFocus before show to work around http://bugreports.qt.nokia.com/browse/QTBUG-14762
     2607    view.setFocus();
    26062608    view.show();
    26072609    QTest::qWaitForWindowShown(&view);
    2608     view.setFocus();
    26092610    QTRY_VERIFY(view.hasFocus());
    26102611
     
    26192620    // hide the popup and check if focus is on the page
    26202621    combo->hidePopup();
    2621     QTRY_VERIFY(view.hasFocus() && !combo->view()->hasFocus()); // Focus should be back on the WebView
     2622    QTRY_VERIFY(view.hasFocus()); // Focus should be back on the WebView
    26222623}
    26232624#endif
Note: See TracChangeset for help on using the changeset viewer.