diff options
author | Jiang Jiang <jiang.jiang@nokia.com> | 2011-04-29 14:46:33 (GMT) |
---|---|---|
committer | Jiang Jiang <jiang.jiang@nokia.com> | 2011-04-29 14:54:34 (GMT) |
commit | 78821cd51c69757a7b4e711c495e702adf97d682 (patch) | |
tree | 4cab76ba9f2a522af156280de7e01c27018478c4 /tests/auto/qtextblock | |
parent | 1de8a46d1e11a5fe0eec80ada7592b0f16c17d06 (diff) | |
download | Qt-78821cd51c69757a7b4e711c495e702adf97d682.zip Qt-78821cd51c69757a7b4e711c495e702adf97d682.tar.gz Qt-78821cd51c69757a7b4e711c495e702adf97d682.tar.bz2 |
Revert symbol addition in b033bb9
Because it breaks forward compatibility. We will use the original
fix in 4.8. In 4.7 we just make sure it doesn't crash in
QTextBlock::next().
Reviewed-by: Thiago Macieira
Diffstat (limited to 'tests/auto/qtextblock')
-rw-r--r-- | tests/auto/qtextblock/tst_qtextblock.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/auto/qtextblock/tst_qtextblock.cpp b/tests/auto/qtextblock/tst_qtextblock.cpp index 748d921..cec3a6a 100644 --- a/tests/auto/qtextblock/tst_qtextblock.cpp +++ b/tests/auto/qtextblock/tst_qtextblock.cpp @@ -76,7 +76,6 @@ private slots: void excludeParagraphSeparatorFragment(); void backwardsBlockIterator(); void previousBlock_qtbug18026(); - void removedBlock_qtbug18500(); private: QTextDocument *doc; @@ -182,16 +181,5 @@ void tst_QTextBlock::previousBlock_qtbug18026() QVERIFY(last.isValid()); } -void tst_QTextBlock::removedBlock_qtbug18500() -{ - cursor.insertText("line 1\nline 2\nline 3 \nline 4\n"); - cursor.setPosition(7); - QTextBlock block = cursor.block(); - cursor.setPosition(21, QTextCursor::KeepAnchor); - - cursor.removeSelectedText(); - QVERIFY(!block.isValid()); -} - QTEST_MAIN(tst_QTextBlock) #include "tst_qtextblock.moc" |