office-gobmx/sw/qa
Miklos Vajna cfc851da55 crashtesting: fix DOCX export of forum-mso-en-11199.docx
This went wrong in a4432eb094 (tdf#104823:
support for sdt plain text fields, 2021-11-24), when we started to turn
cell SDTs into a field containing the cell text, which now needs to work
with redlining, even if the original DOCX file had no fields.

The root cause was introduced earlier, in
0c84c60f48 (tdf#77419 DOCX table import:
ignore right white space, 2020-01-21), which assumed that goRight(2,
select=false) is the opposite of goLeft(1, false) + goLeft(1, true),
which is not true for input fields where an input field with 2 chars
will select 5 chars (not 1) when you do goLeft(1, true) with a cursor at
the right edge of the field (2 chars of content +
CH_TXT_ATR_INPUTFIELDSTART + CH_TXT_ATR_INPUTFIELDEND + the field's
dummy character itself), as "going left" selects the entire field, not
just 1 character.

Fix the problem by replacing goRight() with re-positioning the cursor
the way it was positioned before trimming whitespace a few lines above.

Change-Id: Iaae8878e9801df95d3bc7465d3e8ad12c724a888
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139469
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2022-09-06 10:05:24 +02:00
..
api
complex/indeterminateState
core use more SwPosition::Assign 2022-08-31 13:13:27 +02:00
extras crashtesting: fix DOCX export of forum-mso-en-11199.docx 2022-09-06 10:05:24 +02:00
filter sw XHTML import: fix lost empty paragraphs 2022-09-05 21:00:44 +02:00
inc turn off font combobox preview if SAL_ABORT_ON_NON_APPLICATION_FONT_USE set 2022-08-11 21:48:15 +02:00
python
uibase sw: fix missing cache invalidation when switching between images 2022-08-23 16:35:33 +02:00
uitest tdf#150457 Fix crash on hovering removed footnote reference 2022-08-27 00:53:55 +02:00
unit turn off font combobox preview if SAL_ABORT_ON_NON_APPLICATION_FONT_USE set 2022-08-11 21:48:15 +02:00
unoapi
README

You can find different types of Writer tests here, the following directories
are available:

- core:
  - filters-test: loads different file types (see SwFiltersTest::testCVEs() for
    the list of supported filter types), and only makes sure Writer does not
    crash. To add new tests, you just need to drop in the test files to the
    relevant directory, no code change is necessary.
  - uwriter: this test has access to private Writer symbols, add new tests here
    if you need that.
- extras:
  - see its own README -- executes import and export filters and asserts the
    UNO model to verify the resulting document is the expected one.
  - also, any new C++ test that links to libsw (but does not need access to
    private Writer symbols) should go in this directory, whether using the UNO
    API or the internal one.
- complex: JUnit-based tests using the UNO API
- unoapi: JUnit-based test trying to get/set every UNO property, etc.