qtbase/tests
Shawn Rutledge 183ee5c177 QTextMarkdownWriter: Avoid omitting or misplacing ending indicators
If we need to word-wrap a paragraph after a long formatted span,
write any ending markers before the newline (amends
280d679c55 ).

Break before a fragment if the whole thing is past the column limit;
in that case, write out any ending format markers before the newline.

And now we have test coverage: prepend characters one-at-a-time to a
line that already has a two-word formatted span at the end, and watch
it successively break after the span, in the middle, and then before,
while never putting a newline before the ending markers or failing to
write them.

Fixes: QTBUG-116927
Change-Id: I140e10d19a491cb599bf7ecf8514af866b5383f3
Pick-to: 6.6 6.5
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
(cherry picked from commit 908fc2e72b)
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2024-02-14 12:02:27 -07:00
..
auto QTextMarkdownWriter: Avoid omitting or misplacing ending indicators 2024-02-14 12:02:27 -07:00
baseline Change license for tests files 2024-02-09 10:50:13 +01:00
benchmarks Change license for tests files 2024-02-09 10:50:13 +01:00
global
libfuzzer Change license for tests files 2024-02-09 10:50:13 +01:00
manual Change license for tests files 2024-02-09 10:50:13 +01:00
shared Change license for tests files 2024-02-09 10:50:13 +01:00
testserver
CMakeLists.txt Rid of 'special case' markers 2023-04-13 18:30:58 +02:00
README

README

This directory contains autotests and benchmarks based on Qt Test. In order
to run the autotests reliably, you need to configure a desktop to match the
test environment that these tests are written for.

Linux X11:

   * The user must be logged in to an active desktop; you can't run the
     autotests without a valid DISPLAY that allows X11 connections.

   * The tests are run against a KDE3 or KDE4 desktop.

   * Window manager uses "click to focus", and not "focus follows mouse". Many
     tests move the mouse cursor around and expect this to not affect focus
     and activation.

   * Disable "click to activate", i.e., when a window is opened, the window
     manager should automatically activate it (give it input focus) and not
     wait for the user to click the window.