Fix expected failure in TextInput and TextEdit positionAt test.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Wed, 9 Nov 2011 03:26:36 +0000 (13:26 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 10 Nov 2011 09:42:06 +0000 (10:42 +0100)
commitd71a898a2afbd8ca198b41d4ee553cc85998e31e
tree7b6466f80f37d7a9350213ac51f282ca15b218e5
parent32bbe6d4d1ff53c7b2617a4bcbaf855731d8f8e7
Fix expected failure in TextInput and TextEdit positionAt test.

Test the mid point of the text input falls between the positions of the
cursors before and after that point rather trying to test a minimum
distance that can vary with font size.

Change-Id: Ie3270b4bfb0c579b8b4d5bb47b784d6926521f49
Reviewed-by: Martin Jones <martin.jones@nokia.com>
tests/auto/declarative/qquicktextedit/tst_qquicktextedit.cpp
tests/auto/declarative/qquicktextinput/tst_qquicktextinput.cpp