From b1c43b072fd750b8cc52ae82cd6907e3c9c01dac Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Tue, 10 Feb 2015 17:49:10 +0100 Subject: [PATCH] Fix tst_qaccessibility::textEditTest for some screen resolutions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On a high resolution display the test will potentially create a text edit that introduces line breaks and these make it fail then. Change-Id: Ie82cc4b4139fe0f51ddca219c5c911957fa715b7 Reviewed-by: Boris Dušek Reviewed-by: Jan Arve Sæther --- tests/auto/other/qaccessibility/tst_qaccessibility.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp index 98cbfa00f3..c15ec44bb8 100644 --- a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp +++ b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp @@ -1748,6 +1748,7 @@ void tst_QAccessibility::textEditTest() for (int pass = 0; pass < 2; ++pass) { { QTextEdit edit; + edit.setMinimumSize(600, 400); setFrameless(&edit); int startOffset; int endOffset;