diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-07-13 15:07:42 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-07-13 15:19:50 (GMT) |
commit | 9db4b800a2c8da5916a6d5da9e37a17d185cdc5e (patch) | |
tree | 42adeb7d7a8d658cb26453349e7b5a1a8897fbfe /tests/auto/qtextdocumentfragment | |
parent | e15d415acbd426e58fb1e967eb331fe41488dfff (diff) | |
download | Qt-9db4b800a2c8da5916a6d5da9e37a17d185cdc5e.zip Qt-9db4b800a2c8da5916a6d5da9e37a17d185cdc5e.tar.gz Qt-9db4b800a2c8da5916a6d5da9e37a17d185cdc5e.tar.bz2 |
More tests for list numbering
Diffstat (limited to 'tests/auto/qtextdocumentfragment')
-rw-r--r-- | tests/auto/qtextdocumentfragment/tst_qtextdocumentfragment.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/qtextdocumentfragment/tst_qtextdocumentfragment.cpp b/tests/auto/qtextdocumentfragment/tst_qtextdocumentfragment.cpp index 56f5e7a..4559daa 100644 --- a/tests/auto/qtextdocumentfragment/tst_qtextdocumentfragment.cpp +++ b/tests/auto/qtextdocumentfragment/tst_qtextdocumentfragment.cpp @@ -2758,6 +2758,16 @@ void tst_QTextDocumentFragment::css_listStyleType() QVERIFY(cursor.currentList()); QVERIFY(cursor.currentList()->format().style() == QTextListFormat::ListUpperAlpha); + doc->setHtml("<ul style=\"list-style-type: upper-roman\"><li>Blah</li></ul>"); + cursor.movePosition(QTextCursor::End); + QVERIFY(cursor.currentList()); + QVERIFY(cursor.currentList()->format().style() == QTextListFormat::ListUpperRoman); + + doc->setHtml("<ul style=\"list-style-type: lower-roman\"><li>Blah</li></ul>"); + cursor.movePosition(QTextCursor::End); + QVERIFY(cursor.currentList()); + QVERIFY(cursor.currentList()->format().style() == QTextListFormat::ListLowerRoman); + // ignore the unsupported list-style-position inside the list-style shorthand property doc->setHtml("<ul style=\"list-style: outside decimal\"><li>Blah</li></ul>"); cursor.movePosition(QTextCursor::End); |