Android: unblacklist tst_QPlainTextEdit tests

Most of the blacklisted tests were already fixed earlier.

The tst_QPlainTextEdit::adjustScrollbars() test needed a small fix
to show the window non-fullscreen, so that the scrollbar could appear.

Task-number: QTBUG-87423
Task-number: QTBUG-89402
Change-Id: I849f411a5798053742323fc4db3fe30f2b690a8b
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
(cherry picked from commit 79dcb2657c8ec37215f1f4306640f436e5874242)
This commit is contained in:
Ivan Solovev 2022-03-02 17:17:01 +01:00
parent 49a64fad52
commit 425addb2a9
2 changed files with 3 additions and 16 deletions

View File

@ -1,15 +0,0 @@
# QTBUG-87423
[copyAvailable]
android
[adjustScrollbars]
android
# QTBUG-89402
[undoAvailableAfterPaste]
android
[copyAndSelectAllInReadonly]
android
[canPaste]
android
[updateCursorPositionAfterEdit]
android

View File

@ -1378,7 +1378,9 @@ void tst_QPlainTextEdit::adjustScrollbars()
ed->setFont(ff);
ed->setMinimumSize(140, 100);
ed->setMaximumSize(140, 100);
ed->show();
// We use showNormal() here, because otherwise on Android the widget will
// be shown fullscreen, and the scrollbar will not appear.
ed->showNormal();
QLatin1String txt("\nabc def ghi jkl mno pqr stu vwx");
ed->setPlainText(txt + txt + txt + txt);