Fix test failures due to invalid font metrics.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Mon, 5 Dec 2011 01:01:15 +0000 (11:01 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 5 Dec 2011 01:44:07 +0000 (02:44 +0100)
commit50772544c6aa62b43a2c2826186f4110dbfd5c3f
treed151dbddb403e512c2d2394700db1c8ec92f8d19
parent94628677aea5de5c28dd6b23fc559d2b49841529
Fix test failures due to invalid font metrics.

Don't use QFontMetrics to determine expected text dimensions or
cursor positions in TextInput and TextEdit tests.  Instead Layout the
text with the same options as used by the item so the only error should
be due to error.

Task-number: QTBUG-21689
Change-Id: I7ba008d92f1ebb14c37ae7df06fdb11465c3225d
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
tests/auto/qtquick2/qquicktextedit/tst_qquicktextedit.cpp
tests/auto/qtquick2/qquicktextinput/tst_qquicktextinput.cpp