summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-06-25 06:30:59 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-06-25 06:30:59 (GMT)
commitc91030e308f8cd9ad66e7de127a1f9dbbedd11d3 (patch)
treebe2e732f4a58151bbdaf7af54bbe4eac41dd3636 /tests
parenta0d4f94c0eb3f724df979d9d22c4c944f34d547a (diff)
downloadQt-c91030e308f8cd9ad66e7de127a1f9dbbedd11d3.zip
Qt-c91030e308f8cd9ad66e7de127a1f9dbbedd11d3.tar.gz
Qt-c91030e308f8cd9ad66e7de127a1f9dbbedd11d3.tar.bz2
Test only on X11, not only on Linux (which includes embedded).
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative/qdeclarativetext/tst_qdeclarativetext.cpp4
-rw-r--r--tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/declarative/qdeclarativetext/tst_qdeclarativetext.cpp b/tests/auto/declarative/qdeclarativetext/tst_qdeclarativetext.cpp
index dc92f07..8a4f152 100644
--- a/tests/auto/declarative/qdeclarativetext/tst_qdeclarativetext.cpp
+++ b/tests/auto/declarative/qdeclarativetext/tst_qdeclarativetext.cpp
@@ -424,7 +424,7 @@ void tst_qdeclarativetext::alignments()
QFETCH(int, vAlign);
QFETCH(QString, expectfile);
-#ifdef Q_OS_LINUX
+#ifdef Q_WS_X11
// Font-specific, but not likely platform-specific, so only test on one platform
QFont fn;
fn.setRawName("-misc-fixed-medium-r-*-*-8-*-*-*-*-*-*-*");
@@ -450,7 +450,7 @@ void tst_qdeclarativetext::alignments()
QImage expect(expectfile);
-#ifdef Q_OS_LINUX
+#ifdef Q_WS_X11
// Font-specific, but not likely platform-specific, so only test on one platform
QCOMPARE(actual,expect);
#endif
diff --git a/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp b/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
index adf8348..f1a367f 100644
--- a/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
+++ b/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
@@ -325,7 +325,7 @@ void tst_qdeclarativetextedit::alignments()
QFETCH(int, vAlign);
QFETCH(QString, expectfile);
-#ifdef Q_OS_LINUX
+#ifdef Q_WS_X11
// Font-specific, but not likely platform-specific, so only test on one platform
QFont fn;
fn.setRawName("-misc-fixed-medium-r-*-*-8-*-*-*-*-*-*-*");
@@ -351,7 +351,7 @@ void tst_qdeclarativetextedit::alignments()
QImage expect(expectfile);
-#ifdef Q_OS_LINUX
+#ifdef Q_WS_X11
// Font-specific, but not likely platform-specific, so only test on one platform
QCOMPARE(actual,expect);
#endif