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):

git-svn-id: svn://svn.chromium.org/blink/trunk@83137 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent cac4e2ff
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 Kent Tamura <tkent@chromium.org> 2011-04-06 Kent Tamura <tkent@chromium.org>
[Chromium] Update expectations for Geeza Pro and so on. [Chromium] Update expectations for Geeza Pro and so on.
...@@ -3197,10 +3197,6 @@ http/tests/xmlviewer/dumpAsText/xul.xml ...@@ -3197,10 +3197,6 @@ http/tests/xmlviewer/dumpAsText/xul.xml
# [Qt] geolocation case failing as needs implementation in DumpRenderTree : TODO bug # [Qt] geolocation case failing as needs implementation in DumpRenderTree : TODO bug
fast/dom/Geolocation/window-close-crash.html fast/dom/Geolocation/window-close-crash.html
# [Qt] LayoutTestController needs to implement numberOfPendingGeolocationPermissionRequests
# https://bugs.webkit.org/show_bug.cgi?id=56086
fast/dom/Geolocation/page-reload-cancel-permission-requests.html
# [Qt] Two http auth tests fail with Qt 4.7.2 # [Qt] Two http auth tests fail with Qt 4.7.2
# https://bugs.webkit.org/show_bug.cgi?id=55767 # https://bugs.webkit.org/show_bug.cgi?id=55767
http/tests/appcache/auth.html http/tests/appcache/auth.html
......
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 Anders Bakken <agbakken@gmail.com> 2011-04-06 Anders Bakken <agbakken@gmail.com>
Reviewed by Kenneth Rohde Christiansen. Reviewed by Kenneth Rohde Christiansen.
......
...@@ -822,6 +822,17 @@ void DumpRenderTreeSupportQt::setMockGeolocationError(QWebPage* page, int errorC ...@@ -822,6 +822,17 @@ void DumpRenderTreeSupportQt::setMockGeolocationError(QWebPage* page, int errorC
#endif #endif
} }
int DumpRenderTreeSupportQt::numberOfPendingGeolocationPermissionRequests(QWebPage* page)
{
#if ENABLE(CLIENT_BASED_GEOLOCATION)
Page* corePage = QWebPagePrivate::core(page);
GeolocationClientMock* mockClient = toGeolocationClientMock(corePage->geolocationController()->client());
return mockClient->numberOfPendingPermissionRequests();
#else
return -1;
#endif
}
bool DumpRenderTreeSupportQt::isTargetItem(const QWebHistoryItem& historyItem) bool DumpRenderTreeSupportQt::isTargetItem(const QWebHistoryItem& historyItem)
{ {
QWebHistoryItem it = historyItem; QWebHistoryItem it = historyItem;
......
...@@ -147,6 +147,7 @@ public: ...@@ -147,6 +147,7 @@ public:
static void setMockGeolocationPermission(QWebPage*, bool allowed); static void setMockGeolocationPermission(QWebPage*, bool allowed);
static void setMockGeolocationPosition(QWebPage*, double latitude, double longitude, double accuracy); static void setMockGeolocationPosition(QWebPage*, double latitude, double longitude, double accuracy);
static void setMockGeolocationError(QWebPage*, int errorCode, const QString& message); static void setMockGeolocationError(QWebPage*, int errorCode, const QString& message);
static int numberOfPendingGeolocationPermissionRequests(QWebPage*);
static int workerThreadCount(); static int workerThreadCount();
......
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):
2011-04-06 Dai Mikurube <dmikurube@chromium.org> 2011-04-06 Dai Mikurube <dmikurube@chromium.org>
Reviewed by David Levin. Reviewed by David Levin.
......
...@@ -1136,6 +1136,17 @@ void DumpRenderTree::switchFocus(bool focused) ...@@ -1136,6 +1136,17 @@ void DumpRenderTree::switchFocus(bool focused)
} }
QList<WebPage*> DumpRenderTree::getAllPages() const
{
QList<WebPage*> pages;
pages.append(m_page);
foreach (QObject* widget, windows) {
if (WebPage* page = widget->findChild<WebPage*>())
pages.append(page);
}
return pages;
}
#if defined(Q_WS_X11) #if defined(Q_WS_X11)
void DumpRenderTree::initializeFonts() void DumpRenderTree::initializeFonts()
{ {
......
...@@ -100,6 +100,7 @@ public: ...@@ -100,6 +100,7 @@ public:
void switchFocus(bool focused); void switchFocus(bool focused);
WebPage *webPage() const { return m_page; } WebPage *webPage() const { return m_page; }
QList<WebPage*> getAllPages() const;
#if defined(Q_WS_X11) #if defined(Q_WS_X11)
static void initializeFonts(); static void initializeFonts();
......
...@@ -782,8 +782,12 @@ void LayoutTestController::setGeolocationPermission(bool allow) ...@@ -782,8 +782,12 @@ void LayoutTestController::setGeolocationPermission(bool allow)
int LayoutTestController::numberOfPendingGeolocationPermissionRequests() int LayoutTestController::numberOfPendingGeolocationPermissionRequests()
{ {
// FIXME: Implement for Geolocation layout tests. int pendingPermissionCount = 0;
return -1; QList<WebCore::WebPage*> pages = m_drt->getAllPages();
foreach (WebCore::WebPage* page, pages)
pendingPermissionCount += DumpRenderTreeSupportQt::numberOfPendingGeolocationPermissionRequests(page);
return pendingPermissionCount;
} }
void LayoutTestController::setGeolocationPermissionCommon(bool allow) void LayoutTestController::setGeolocationPermissionCommon(bool allow)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment