Changeset 86049 in webkit


Ignore:
Timestamp:
May 9, 2011 4:22:56 AM (13 years ago)
Author:
mahesh.kulkarni@nokia.com
Message:

2011-05-09 Mahesh Kulkarni <mahesh.kulkarni@nokia.com>

Reviewed by Andreas Kling.

[Qt] fix fast/dom/Geolocation/window-close-crash.html
https://bugs.webkit.org/show_bug.cgi?id=60458

Update all pages with Mock position/error/permission.

  • DumpRenderTree/qt/LayoutTestControllerQt.cpp: (LayoutTestController::setGeolocationPermission): (LayoutTestController::setMockGeolocationError): (LayoutTestController::setMockGeolocationPosition):

2011-05-09 Mahesh Kulkarni <mahesh.kulkarni@nokia.com>

Reviewed by Andreas Kling.

[Qt] fix fast/dom/Geolocation/window-close-crash.html
https://bugs.webkit.org/show_bug.cgi?id=60458

Unskipping fast/dom/Geolocation/window-close-crash.html.

  • platform/qt/Skipped:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r86048 r86049  
     12011-05-09  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>
     2
     3        Reviewed by Andreas Kling.
     4
     5        [Qt] fix fast/dom/Geolocation/window-close-crash.html
     6        https://bugs.webkit.org/show_bug.cgi?id=60458
     7
     8        Unskipping fast/dom/Geolocation/window-close-crash.html.
     9
     10        * platform/qt/Skipped:
     11
    1122011-05-09  Srinivasulu Chereddy  <srinivasulu.chereddy@nokia.com>
    213
  • trunk/LayoutTests/platform/qt/Skipped

    r86048 r86049  
    23602360http/tests/xmlviewer/dumpAsText/xul.xml
    23612361
    2362 # [Qt] geolocation case failing as needs implementation in DumpRenderTree : TODO bug
    2363 fast/dom/Geolocation/window-close-crash.html
    2364 
    23652362# [Qt] Two http auth tests fail with Qt 4.7.2
    23662363# https://bugs.webkit.org/show_bug.cgi?id=55767
  • trunk/Tools/ChangeLog

    r86047 r86049  
     12011-05-09  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>
     2
     3        Reviewed by Andreas Kling.
     4
     5        [Qt] fix fast/dom/Geolocation/window-close-crash.html
     6        https://bugs.webkit.org/show_bug.cgi?id=60458
     7
     8        Update all pages with Mock position/error/permission.
     9
     10        * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
     11        (LayoutTestController::setGeolocationPermission):
     12        (LayoutTestController::setMockGeolocationError):
     13        (LayoutTestController::setMockGeolocationPosition):
     14
    1152011-05-09  Shishir Agrawal  <shishir@chromium.org>
    216
  • trunk/Tools/DumpRenderTree/qt/LayoutTestControllerQt.cpp

    r85925 r86049  
    779779}
    780780
     781QVariant LayoutTestController::shadowRoot(const QWebElement& element)
     782{
     783    return DumpRenderTreeSupportQt::shadowRoot(element);
     784}
     785
     786QVariant LayoutTestController::ensureShadowRoot(const QWebElement& element)
     787{
     788    return DumpRenderTreeSupportQt::ensureShadowRoot(element);
     789}
     790
     791void LayoutTestController::removeShadowRoot(const QWebElement& element)
     792{
     793    DumpRenderTreeSupportQt::removeShadowRoot(element);
     794}
     795
     796QString LayoutTestController::shadowPseudoId(const QWebElement& element)
     797{
     798    return DumpRenderTreeSupportQt::shadowPseudoId(element);
     799}
     800
    781801void LayoutTestController::setGeolocationPermission(bool allow)
    782802{
    783803    setGeolocationPermissionCommon(allow);
    784     DumpRenderTreeSupportQt::setMockGeolocationPermission(m_drt->webPage(), allow);
    785 }
    786 
    787 QVariant LayoutTestController::shadowRoot(const QWebElement& element)
    788 {
    789     return DumpRenderTreeSupportQt::shadowRoot(element);
    790 }
    791 
    792 QVariant LayoutTestController::ensureShadowRoot(const QWebElement& element)
    793 {
    794     return DumpRenderTreeSupportQt::ensureShadowRoot(element);
    795 }
    796 
    797 void LayoutTestController::removeShadowRoot(const QWebElement& element)
    798 {
    799     DumpRenderTreeSupportQt::removeShadowRoot(element);
    800 }
    801 
    802 QString LayoutTestController::shadowPseudoId(const QWebElement& element)
    803 {
    804     return DumpRenderTreeSupportQt::shadowPseudoId(element);
     804    QList<WebCore::WebPage*> pages = m_drt->getAllPages();
     805    foreach (WebCore::WebPage* page, pages)
     806        DumpRenderTreeSupportQt::setMockGeolocationPermission(page, allow);
    805807}
    806808
     
    823825void LayoutTestController::setMockGeolocationError(int code, const QString& message)
    824826{
    825     DumpRenderTreeSupportQt::setMockGeolocationError(m_drt->webPage(), code, message);
     827    QList<WebCore::WebPage*> pages = m_drt->getAllPages();
     828    foreach (WebCore::WebPage* page, pages)
     829        DumpRenderTreeSupportQt::setMockGeolocationError(page, code, message);
    826830}
    827831
    828832void LayoutTestController::setMockGeolocationPosition(double latitude, double longitude, double accuracy)
    829833{
    830     DumpRenderTreeSupportQt::setMockGeolocationPosition(m_drt->webPage(), latitude, longitude, accuracy);
     834    QList<WebCore::WebPage*> pages = m_drt->getAllPages();
     835    foreach (WebCore::WebPage* page, pages)
     836        DumpRenderTreeSupportQt::setMockGeolocationPosition(page, latitude, longitude, accuracy);
    831837}
    832838
Note: See TracChangeset for help on using the changeset viewer.