qt6-bb10/tests/auto/gui/text/qstatictext
Eskil Abrahamsen Blomfeldt 3279c8e7d7 Move some flaky text tests into Lancelot
There are some slight differences between normal drawText()
and QGlyphRuns/QStaticText for decoration widths in certain
fonts. We decided to accept this and tried working around it
in the test by using ForceIntegerMetrics (since the difference
is < 0.5 pixel). This enum has been deprecated, so we move
the tests into Lancelot instead, since the idea here is to
test for regressions, not to compare the two painter commands.

Note that there is something off about decorations with
drawGlyphRuns() and drawStaticText() which is exposed
(not caused) by this, perhaps related to using a matrix
for positioning, since that was untested before.

This also takes the liberty of moving the emoji test string
from text.qps, since this was not in the statictext.qps yet.

Change-Id: Ib2d697095cbd11829cdd50b3c0268c85e9607c78
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
2020-06-08 06:45:49 +02:00
..
CMakeLists.txt Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
qstatictext.pro Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00
tst_qstatictext.cpp Move some flaky text tests into Lancelot 2020-06-08 06:45:49 +02:00