diff options
Diffstat (limited to 'Source/WebKit/qt/tests/util.h')
| -rw-r--r-- | Source/WebKit/qt/tests/util.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/Source/WebKit/qt/tests/util.h b/Source/WebKit/qt/tests/util.h index cfa22eb08..2869440cb 100644 --- a/Source/WebKit/qt/tests/util.h +++ b/Source/WebKit/qt/tests/util.h @@ -53,37 +53,4 @@ static bool waitForSignal(QObject* obj, const char* signal, int timeout = 10000) return timeoutSpy.isEmpty(); } -#if !(defined(HAVE_QT5) && HAVE_QT5) -// Will try to wait for the condition while allowing event processing -#define QTRY_VERIFY(__expr) \ - do { \ - const int __step = 50; \ - const int __timeout = 5000; \ - if (!(__expr)) { \ - QTest::qWait(0); \ - } \ - for (int __i = 0; __i < __timeout && !(__expr); __i+=__step) { \ - QTest::qWait(__step); \ - } \ - QVERIFY(__expr); \ - } while(0) - -// Will try to wait for the condition while allowing event processing -#define QTRY_COMPARE(__expr, __expected) \ - do { \ - const int __step = 50; \ - const int __timeout = 5000; \ - if ((__expr) != (__expected)) { \ - QTest::qWait(0); \ - } \ - for (int __i = 0; __i < __timeout && ((__expr) != (__expected)); __i+=__step) { \ - QTest::qWait(__step); \ - } \ - QCOMPARE(__expr, __expected); \ - } while(0) - -// Compatibility for Qt5 -#define W_QSKIP(a, b) QSKIP(a, b) -#else #define W_QSKIP(a, b) QSKIP(a) -#endif |
