From 454bedce14728e4f0575aadea6c454717c95d3fe Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Wed, 23 Sep 2009 18:43:59 +0200 Subject: Fix Q3TextBrowser It seems that the test machine has some different font configuration which makes the font weight different from the default one. Fixed the problem by resolving the font before comparing. Reviewed-by: Peter Hartmann --- tests/auto/q3textbrowser/tst_q3textbrowser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/auto/q3textbrowser/tst_q3textbrowser.cpp b/tests/auto/q3textbrowser/tst_q3textbrowser.cpp index 9a9f55c..b4c7e0d 100644 --- a/tests/auto/q3textbrowser/tst_q3textbrowser.cpp +++ b/tests/auto/q3textbrowser/tst_q3textbrowser.cpp @@ -97,6 +97,7 @@ void tst_Q3TextBrowser::setFont() { QFont f("Courier", 6); testWidget->setFont(f); + f = f.resolve(testWidget->font()); QVERIFY(testWidget->font() == f); } -- cgit v0.12