summaryrefslogtreecommitdiffstats
path: root/tests/auto/qcssparser
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-08-06 10:00:28 +0200
committerOlivier Goffart <ogoffart@trolltech.com>2009-08-06 10:03:39 +0200
commitde63f4572096b652cd8d445ae0ea0c880197b6d3 (patch)
tree99960c27663db6ba0a089c499a2e8df97ce4e811 /tests/auto/qcssparser
parent34e2cd4e715a9760b2829cff13fd2526f6a290ec (diff)
Resolved tst_QCssParser::extractFontFamily_data on jackychan
That machine has no 'Times New Roman' the test was reliying in
Diffstat (limited to 'tests/auto/qcssparser')
-rw-r--r--tests/auto/qcssparser/tst_qcssparser.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/auto/qcssparser/tst_qcssparser.cpp b/tests/auto/qcssparser/tst_qcssparser.cpp
index c3bcdf2791..be1a2121df 100644
--- a/tests/auto/qcssparser/tst_qcssparser.cpp
+++ b/tests/auto/qcssparser/tst_qcssparser.cpp
@@ -1139,8 +1139,8 @@ void tst_QCssParser::specificity()
QVERIFY(parser.parse(&sheet));
QCOMPARE(sheet.styleRules.count() + sheet.nameIndex.count() + sheet.idIndex.count() , 1);
- QCss::StyleRule rule = (!sheet.styleRules.isEmpty()) ? sheet.styleRules.at(0)
- : (!sheet.nameIndex.isEmpty()) ? *sheet.nameIndex.begin()
+ QCss::StyleRule rule = (!sheet.styleRules.isEmpty()) ? sheet.styleRules.at(0)
+ : (!sheet.nameIndex.isEmpty()) ? *sheet.nameIndex.begin()
: *sheet.idIndex.begin();
QCOMPARE(rule.selectors.count(), 1);
QTEST(rule.selectors.at(0).specificity(), "specificity");
@@ -1508,6 +1508,9 @@ void tst_QCssParser::gradient()
void tst_QCssParser::extractFontFamily_data()
{
+ if (QFontInfo(QFont("Times New Roman")).family() != "Times New Roman")
+ QSKIP("'Times New Roman' font not found ", SkipAll);
+
QTest::addColumn<QString>("css");
QTest::addColumn<QString>("expectedFamily");