Stabilize text tests that grab windows.
authorFriedemann Kleint <Friedemann.Kleint@digia.com>
Mon, 22 Jul 2013 13:52:54 +0000 (15:52 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 25 Jul 2013 18:45:19 +0000 (20:45 +0200)
commit1099b26535fedbaaa134ccb63310362951fce847
tree9858873668de63bfd2143025cf1db6ac9d95e1bb
parenteda210242f2143271515b691b6b21d7ae734f3f0
Stabilize text tests that grab windows.

Add window flags to make sure window stays on top to
tst_qquicktext::hAlignImplicitWidth() and
tst_qquicktextedit::hAlignVisual(). Add diagnostic output.
Determine the section size by checking the font size.
Add more characters to line 2 to make it more discriminative.

Task-number: QTBUG-32540
Change-Id: I19a74a775bf2663027ec211784870fd9f6547b48
Reviewed-by: Simo Fält <simo.falt@digia.com>
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
tests/auto/quick/qquicktext/data/hAlignImplicitWidth.qml
tests/auto/quick/qquicktext/tst_qquicktext.cpp
tests/auto/quick/qquicktextedit/data/hAlignVisual.qml
tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp