summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNorwegian Rock Cat <qt-info@nokia.com>2009-06-02 13:48:27 (GMT)
committerNorwegian Rock Cat <qt-info@nokia.com>2009-06-02 14:13:11 (GMT)
commitd7700105933b3c4071f8df524915dbaa2092d82b (patch)
tree8df951cc12c1b33e3ca1ff20857661367a17fc7e /tests
parent7a095c52057633e9050e74622f8a990738c2741b (diff)
downloadQt-d7700105933b3c4071f8df524915dbaa2092d82b.zip
Qt-d7700105933b3c4071f8df524915dbaa2092d82b.tar.gz
Qt-d7700105933b3c4071f8df524915dbaa2092d82b.tar.bz2
Correct invalid font.
QFont() returns the app font, not an invalid font.
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qcssparser/tst_cssparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qcssparser/tst_cssparser.cpp b/tests/auto/qcssparser/tst_cssparser.cpp
index 7c4fac1..b41a745 100644
--- a/tests/auto/qcssparser/tst_cssparser.cpp
+++ b/tests/auto/qcssparser/tst_cssparser.cpp
@@ -1475,7 +1475,7 @@ void tst_CssParser::extractFontFamily_data()
QTest::newRow("unquoted-family-name2") << "font-family: Times New Roman" << QString("Times New Roman");
QTest::newRow("multiple") << "font-family: Times New Roman , foobar, 'baz'" << QString("Times New Roman");
QTest::newRow("multiple2") << "font-family: invalid, Times New Roman " << QString("Times New Roman");
- QTest::newRow("invalid") << "font-family: invalid" << QFont().family();
+ QTest::newRow("invalid") << "font-family: invalid" << QFontInfo(QFont("invalid font")).family();
QTest::newRow("shorthand") << "font: 12pt Times New Roman" << QString("Times New Roman");
QTest::newRow("shorthand multiple quote") << "font: 12pt invalid, \"Times New Roman\" " << QString("Times New Roman");
QTest::newRow("shorthand multiple") << "font: 12pt invalid, Times New Roman " << QString("Times New Roman");