diff options
Diffstat (limited to 'tests/auto/quick/qquickwindow/tst_qquickwindow.cpp')
-rw-r--r-- | tests/auto/quick/qquickwindow/tst_qquickwindow.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp b/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp index eed81389f6..0e4ad86260 100644 --- a/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp +++ b/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp @@ -1240,9 +1240,10 @@ void tst_qquickwindow::headless() QSignalSpy initialized(window, SIGNAL(sceneGraphInitialized())); QSignalSpy invalidated(window, SIGNAL(sceneGraphInvalidated())); +#ifndef QT_NO_OPENGL // Verify that the window is alive and kicking QVERIFY(window->openglContext() != 0); - +#endif // Store the visual result QImage originalContent = window->grabWindow(); @@ -1270,7 +1271,9 @@ void tst_qquickwindow::headless() if (threaded) QTRY_COMPARE(initialized.size(), 1); +#ifndef QT_NO_OPENGL QVERIFY(window->openglContext() != 0); +#endif // Verify that the visual output is the same QImage newContent = window->grabWindow(); @@ -1643,7 +1646,9 @@ void tst_qquickwindow::hideThenDelete() } QVERIFY(sgInvalidated->size() > 0); +#ifndef QT_NO_OPENGL QVERIFY(openglDestroyed->size() > 0); +#endif } void tst_qquickwindow::showHideAnimate() |