⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 100053 in webkit


Ignore:
Timestamp:
Nov 11, 2011, 5:38:02 PM (15 years ago)
Author:
commit-queue@webkit.org
Message:

[Qt] Skip tests when no network is present
https://bugs.webkit.org/show_bug.cgi?id=72031

Patch by Bruno de Oliveira Abinader <Bruno de Oliveira Abinader> on 2011-11-11
Reviewed by Simon Hausmann.

Some benchmark tests requires network connection (they fetch data from
external URL's) and so they fail if no network is present. These tests
should be skipped instead.

  • tests/benchmarks/loading/tst_loading.cpp:

(tst_Loading::load): Skip test if no network is present.

  • tests/benchmarks/painting/tst_painting.cpp:

(tst_Painting::paint): Skip test if no network is present.

Location:
trunk/Source/WebKit/qt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/qt/ChangeLog

    r99968 r100053  
     12011-11-11  Bruno de Oliveira Abinader  <bruno.abinader@basyskom.com>
     2
     3        [Qt] Skip tests when no network is present
     4        https://bugs.webkit.org/show_bug.cgi?id=72031
     5
     6        Reviewed by Simon Hausmann.
     7
     8        Some benchmark tests requires network connection (they fetch data from
     9        external URL's) and so they fail if no network is present. These tests
     10        should be skipped instead.
     11
     12        * tests/benchmarks/loading/tst_loading.cpp:
     13        (tst_Loading::load): Skip test if no network is present.
     14        * tests/benchmarks/painting/tst_painting.cpp:
     15        (tst_Painting::paint): Skip test if no network is present.
     16
    1172011-11-11  Sheriff Bot  <webkit.review.bot@gmail.com>
    218
  • trunk/Source/WebKit/qt/tests/benchmarks/loading/tst_loading.cpp

    r46152 r100053  
    1717 * Boston, MA 02110-1301, USA.
    1818 */
     19
     20#include <QNetworkConfigurationManager>
    1921
    2022#include <QtTest/QtTest>
     
    6264
    6365private:
     66    QNetworkConfigurationManager m_manager;
    6467    QWebView* m_view;
    6568    QWebPage* m_page;
     
    9396    QFETCH(QUrl, url);
    9497
     98    if (!m_manager.isOnline())
     99        QSKIP("This test requires an active network connection", SkipSingle);
    95100
    96101    QBENCHMARK {
  • trunk/Source/WebKit/qt/tests/benchmarks/painting/tst_painting.cpp

    r56343 r100053  
    1717 * Boston, MA 02110-1301, USA.
    1818 */
     19
     20#include <QNetworkConfigurationManager>
    1921
    2022#include <QtTest/QtTest>
     
    6466
    6567private:
     68    QNetworkConfigurationManager m_manager;
    6669    QWebView* m_view;
    6770    QWebPage* m_page;
     
    9295{
    9396    QFETCH(QUrl, url);
     97
     98    if (!m_manager.isOnline())
     99        QSKIP("This test requires an active network connection", SkipSingle);
    94100
    95101    m_view->load(url);
Note: See TracChangeset for help on using the changeset viewer.