diff options
author | Norwegian Rock Cat <qt-info@nokia.com> | 2009-06-02 15:48:27 +0200 |
---|---|---|
committer | Norwegian Rock Cat <qt-info@nokia.com> | 2009-06-02 16:13:11 +0200 |
commit | d7700105933b3c4071f8df524915dbaa2092d82b (patch) | |
tree | 8df951cc12c1b33e3ca1ff20857661367a17fc7e /tests/auto | |
parent | 7a095c52057633e9050e74622f8a990738c2741b (diff) | |
download | qt4-tools-d7700105933b3c4071f8df524915dbaa2092d82b.tar.gz |
Correct invalid font.
QFont() returns the app font, not an invalid font.
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qcssparser/tst_cssparser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qcssparser/tst_cssparser.cpp b/tests/auto/qcssparser/tst_cssparser.cpp index 7c4fac167a..b41a7451ed 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"); |