summaryrefslogtreecommitdiff
path: root/tests/auto/qx11info/tst_qx11info.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qx11info/tst_qx11info.cpp')
-rw-r--r--tests/auto/qx11info/tst_qx11info.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/qx11info/tst_qx11info.cpp b/tests/auto/qx11info/tst_qx11info.cpp
index b680834..ab741be 100644
--- a/tests/auto/qx11info/tst_qx11info.cpp
+++ b/tests/auto/qx11info/tst_qx11info.cpp
@@ -52,6 +52,7 @@ class tst_QX11Info : public QObject
private slots:
void staticFunctionsBeforeQApplication();
+ void isPlatformX11();
void appTime();
};
@@ -120,6 +121,14 @@ void tst_QX11Info::staticFunctionsBeforeQApplication()
QCOMPARE(appTime, 0ul);
}
+void tst_QX11Info::isPlatformX11()
+{
+ int argc = 0;
+ QApplication app(argc, 0);
+
+ QVERIFY(QX11Info::isPlatformX11());
+}
+
void tst_QX11Info::appTime()
{
int argc = 0;