Changeset 83137 in webkit


Ignore:
Timestamp:
Apr 6, 2011 8:49:53 PM (13 years ago)
Author:
benjamin.poulain@nokia.com
Message:

2011-04-06 Benjamin Poulain <benjamin.poulain@nokia.com>

Reviewed by Kenneth Rohde Christiansen.

[Qt] LayoutTestController needs to implement numberOfPendingGeolocationPermissionRequests
https://bugs.webkit.org/show_bug.cgi?id=56086

  • platform/qt/Skipped: Remove the skipped test which required numberOfPendingGeolocationPermissionRequests.

2011-04-06 Benjamin Poulain <benjamin.poulain@nokia.com>

Reviewed by Kenneth Rohde Christiansen.

[Qt] LayoutTestController needs to implement numberOfPendingGeolocationPermissionRequests
https://bugs.webkit.org/show_bug.cgi?id=56086

Add the accessor numberOfPendingGeolocationPermissionRequests to call GeolocationClientMock::numberOfPendingPermissionRequests()
from the LayoutTestController.

  • WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::numberOfPendingGeolocationPermissionRequests):
  • WebCoreSupport/DumpRenderTreeSupportQt.h:

2011-04-06 Benjamin Poulain <benjamin.poulain@nokia.com>

Reviewed by Kenneth Rohde Christiansen.

[Qt] LayoutTestController needs to implement numberOfPendingGeolocationPermissionRequests
https://bugs.webkit.org/show_bug.cgi?id=56086

Add the missing method.

  • DumpRenderTree/qt/DumpRenderTreeQt.cpp: (WebCore::DumpRenderTree::getAllPages): Add a method to return all the pages allocated for the current test.
  • DumpRenderTree/qt/DumpRenderTreeQt.h:
  • DumpRenderTree/qt/LayoutTestControllerQt.cpp: (LayoutTestController::numberOfPendingGeolocationPermissionRequests):
Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r83136 r83137  
     12011-04-06  Benjamin Poulain  <benjamin.poulain@nokia.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] LayoutTestController needs to implement numberOfPendingGeolocationPermissionRequests
     6        https://bugs.webkit.org/show_bug.cgi?id=56086
     7
     8        * platform/qt/Skipped: Remove the skipped test which required numberOfPendingGeolocationPermissionRequests.
     9
    1102011-04-06  Kent Tamura  <tkent@chromium.org>
    211
  • trunk/LayoutTests/platform/qt/Skipped

    r83100 r83137  
    31983198fast/dom/Geolocation/window-close-crash.html
    31993199
    3200 # [Qt] LayoutTestController needs to implement numberOfPendingGeolocationPermissionRequests
    3201 # https://bugs.webkit.org/show_bug.cgi?id=56086
    3202 fast/dom/Geolocation/page-reload-cancel-permission-requests.html
    3203 
    32043200# [Qt] Two http auth tests fail with Qt 4.7.2
    32053201# https://bugs.webkit.org/show_bug.cgi?id=55767
  • trunk/Source/WebKit/qt/ChangeLog

    r83125 r83137  
     12011-04-06  Benjamin Poulain  <benjamin.poulain@nokia.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] LayoutTestController needs to implement numberOfPendingGeolocationPermissionRequests
     6        https://bugs.webkit.org/show_bug.cgi?id=56086
     7
     8        Add the accessor numberOfPendingGeolocationPermissionRequests to call GeolocationClientMock::numberOfPendingPermissionRequests()
     9        from the LayoutTestController.
     10
     11        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
     12        (DumpRenderTreeSupportQt::numberOfPendingGeolocationPermissionRequests):
     13        * WebCoreSupport/DumpRenderTreeSupportQt.h:
     14
    1152011-04-06  Anders Bakken  <agbakken@gmail.com>
    216
  • trunk/Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp

    r83108 r83137  
    823823}
    824824
     825int DumpRenderTreeSupportQt::numberOfPendingGeolocationPermissionRequests(QWebPage* page)
     826{
     827#if ENABLE(CLIENT_BASED_GEOLOCATION)
     828    Page* corePage = QWebPagePrivate::core(page);
     829    GeolocationClientMock* mockClient = toGeolocationClientMock(corePage->geolocationController()->client());
     830    return mockClient->numberOfPendingPermissionRequests();
     831#else
     832    return -1;
     833#endif
     834}
     835
    825836bool DumpRenderTreeSupportQt::isTargetItem(const QWebHistoryItem& historyItem)
    826837{
  • trunk/Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h

    r82489 r83137  
    148148    static void setMockGeolocationPosition(QWebPage*, double latitude, double longitude, double accuracy);
    149149    static void setMockGeolocationError(QWebPage*, int errorCode, const QString& message);
     150    static int numberOfPendingGeolocationPermissionRequests(QWebPage*);
    150151
    151152    static int workerThreadCount();
  • trunk/Tools/ChangeLog

    r83133 r83137  
     12011-04-06  Benjamin Poulain  <benjamin.poulain@nokia.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] LayoutTestController needs to implement numberOfPendingGeolocationPermissionRequests
     6        https://bugs.webkit.org/show_bug.cgi?id=56086
     7
     8        Add the missing method.
     9
     10        * DumpRenderTree/qt/DumpRenderTreeQt.cpp:
     11        (WebCore::DumpRenderTree::getAllPages): Add a method to return all the pages allocated for the current test.
     12        * DumpRenderTree/qt/DumpRenderTreeQt.h:
     13        * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
     14        (LayoutTestController::numberOfPendingGeolocationPermissionRequests):
     15
    1162011-04-06  Dai Mikurube  <dmikurube@chromium.org>
    217
  • trunk/Tools/DumpRenderTree/qt/DumpRenderTreeQt.cpp

    r82489 r83137  
    11371137}
    11381138
     1139QList<WebPage*> DumpRenderTree::getAllPages() const
     1140{
     1141    QList<WebPage*> pages;
     1142    pages.append(m_page);
     1143    foreach (QObject* widget, windows) {
     1144        if (WebPage* page = widget->findChild<WebPage*>())
     1145            pages.append(page);
     1146    }
     1147    return pages;
     1148}
     1149
    11391150#if defined(Q_WS_X11)
    11401151void DumpRenderTree::initializeFonts()
  • trunk/Tools/DumpRenderTree/qt/DumpRenderTreeQt.h

    r82489 r83137  
    101101
    102102    WebPage *webPage() const { return m_page; }
     103    QList<WebPage*> getAllPages() const;
    103104
    104105#if defined(Q_WS_X11)
  • trunk/Tools/DumpRenderTree/qt/LayoutTestControllerQt.cpp

    r82489 r83137  
    783783int LayoutTestController::numberOfPendingGeolocationPermissionRequests()
    784784{
    785     // FIXME: Implement for Geolocation layout tests.
    786     return -1;
     785    int pendingPermissionCount = 0;
     786    QList<WebCore::WebPage*> pages = m_drt->getAllPages();
     787    foreach (WebCore::WebPage* page, pages)
     788        pendingPermissionCount += DumpRenderTreeSupportQt::numberOfPendingGeolocationPermissionRequests(page);
     789
     790    return pendingPermissionCount;
    787791}
    788792
Note: See TracChangeset for help on using the changeset viewer.