Changeset 75479 in webkit


Ignore:
Timestamp:
Jan 11, 2011 2:08:06 AM (13 years ago)
Author:
benjamin.poulain@nokia.com
Message:

2011-01-11 Benjamin Poulain <benjamin.poulain@nokia.com>

Reviewed by Kenneth Rohde Christiansen.

[Qt] Fix tst_QWebPage::geolocationRequestJS()
https://bugs.webkit.org/show_bug.cgi?id=46814

Skip the test when WebKit is compiled without geolocation.

  • tests/qwebpage/tst_qwebpage.cpp: (tst_QWebPage::geolocationRequestJS):
Location:
trunk/WebKit/qt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/ChangeLog

    r75467 r75479  
     12011-01-11  Benjamin Poulain  <benjamin.poulain@nokia.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] Fix tst_QWebPage::geolocationRequestJS()
     6        https://bugs.webkit.org/show_bug.cgi?id=46814
     7
     8        Skip the test when WebKit is compiled without geolocation.
     9
     10        * tests/qwebpage/tst_qwebpage.cpp:
     11        (tst_QWebPage::geolocationRequestJS):
     12
    1132011-01-10  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
    214
  • trunk/WebKit/qt/tests/qwebpage/tst_qwebpage.cpp

    r75467 r75479  
    260260{
    261261    JSTestPage* newPage = new JSTestPage(m_view);
     262
     263    if (newPage->mainFrame()->evaluateJavaScript(QLatin1String("!navigator.geolocation")).toBool()) {
     264        delete newPage;
     265        QSKIP("Geolocation is not supported.", SkipSingle);
     266    }
     267
    262268    connect(newPage, SIGNAL(featurePermissionRequested(QWebFrame*, QWebPage::Feature)),
    263269            newPage, SLOT(requestPermission(QWebFrame*, QWebPage::Feature)));
Note: See TracChangeset for help on using the changeset viewer.