diff options
author | Norwegian Rock Cat <qt-info@nokia.com> | 2009-06-02 13:48:27 (GMT) |
---|---|---|
committer | Norwegian Rock Cat <qt-info@nokia.com> | 2009-06-02 14:13:11 (GMT) |
commit | d7700105933b3c4071f8df524915dbaa2092d82b (patch) | |
tree | 8df951cc12c1b33e3ca1ff20857661367a17fc7e /tests | |
parent | 7a095c52057633e9050e74622f8a990738c2741b (diff) | |
download | Qt-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.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 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"); |