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
Pick-to: 6.3
Change-Id: I849f411a5798053742323fc4db3fe30f2b690a8b
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
Ivan Solovev 2022-03-02 17:17:01 +01:00
parent e0023ae353
commit 79dcb2657c
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

@ -1371,7 +1371,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);