summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-06-25 00:51:56 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-06-25 00:54:45 (GMT)
commita0d4f94c0eb3f724df979d9d22c4c944f34d547a (patch)
tree80844e0148e65c303ffc756ee24e80b8adedf5ca /tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
parentf4e82d86ce597e84d5e58abb3d69c898b9be4b31 (diff)
downloadQt-a0d4f94c0eb3f724df979d9d22c4c944f34d547a.zip
Qt-a0d4f94c0eb3f724df979d9d22c4c944f34d547a.tar.gz
Qt-a0d4f94c0eb3f724df979d9d22c4c944f34d547a.tar.bz2
Force font selection (and so ensure visual test passes).
Diffstat (limited to 'tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp')
-rw-r--r--tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp b/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
index 009d354..adf8348 100644
--- a/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
+++ b/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
@@ -325,6 +325,13 @@ void tst_qdeclarativetextedit::alignments()
QFETCH(int, vAlign);
QFETCH(QString, expectfile);
+#ifdef Q_OS_LINUX
+ // Font-specific, but not likely platform-specific, so only test on one platform
+ QFont fn;
+ fn.setRawName("-misc-fixed-medium-r-*-*-8-*-*-*-*-*-*-*");
+ QApplication::setFont(fn);
+#endif
+
QDeclarativeView *canvas = createView(SRCDIR "/data/alignments.qml");
canvas->show();