okular/autotests
Nicolas Fella 80afe26873 Implement event.change
This represents the newly entered data for each keystroke. This is often a single added character, but for cases like pasting text it can be more complex.

The PDF API reference doesn't specify any algorithm to use.

The algorithm used here works by iterating through both strings from the start until the first different character is encountered. Then the rest of the new text is considered the difference.

This doesn't produce the theoretically optimal/minimal diff, but seems to work well enough for practical application.

When text is removed the diff is empty
2022-09-13 21:51:15 +00:00
..
data Markdown: Fix images with special chars in URLs not loaded 2022-04-03 16:02:44 +00:00
addremoveannotationtest.cpp slots -> Q_SLOTS 2022-03-19 10:58:47 +00:00
annotationstest.cpp Port a few more QLinkedList to QList 2022-03-31 17:08:01 +02:00
annotationtoolbartest.cpp slots -> Q_SLOTS 2022-03-19 10:58:47 +00:00
calculatetexttest.cpp Port away from more QLinkedLists 2022-03-22 12:58:59 +01:00
closedialoghelper.cpp Run clang-format 2020-07-11 09:17:33 +02:00
closedialoghelper.h slots -> Q_SLOTS 2022-03-19 10:58:47 +00:00
CMakeLists.txt Try to fix randomly failing jenkins 2022-04-08 10:46:46 +02:00
documenttest.cpp Implement event.change 2022-09-13 21:51:15 +00:00
editannotationcontentstest.cpp slots -> Q_SLOTS 2022-03-19 10:58:47 +00:00
editdrawingtooldialogtest.cpp Convert license headers to SPDX 2021-06-10 08:11:56 +00:00
editdrawingtooldialogtest.h Convert license headers to SPDX 2021-06-10 08:11:56 +00:00
editformstest.cpp Port away from more QLinkedLists 2022-03-22 12:58:59 +01:00
formattest.cpp Use the poppler version includes instead of check_cxx_source_compiles 2022-05-04 01:16:35 +02:00
generatorstest.cpp foreach -> for 2022-03-19 10:58:47 +00:00
keystroketest.cpp Use the poppler version includes instead of check_cxx_source_compiles 2022-05-04 01:16:35 +02:00
kjsfunctionstest.cpp Use the poppler version includes instead of check_cxx_source_compiles 2022-05-04 01:16:35 +02:00
mainshelltest.cpp slots -> Q_SLOTS 2022-03-19 10:58:47 +00:00
markdowntest.cpp Markdown: Fix images with special chars in URLs not loaded 2022-04-03 16:02:44 +00:00
modifyannotationpropertiestest.cpp slots -> Q_SLOTS 2022-03-19 10:58:47 +00:00
parttest.cpp Use the poppler version includes instead of check_cxx_source_compiles 2022-05-04 01:16:35 +02:00
searchtest.cpp slots -> Q_SLOTS 2022-03-19 10:58:47 +00:00
shelltest.cpp slots -> Q_SLOTS 2022-03-19 10:58:47 +00:00
signatureformtest.cpp Port away from more QLinkedLists 2022-03-22 12:58:59 +01:00
signunsignedfieldtest.cpp Add a few definitions that will come with ECM 5.85 2022-04-07 23:02:12 +00:00
testingutils.cpp Port a few QLinkedList to QList 2022-03-19 11:22:55 +00:00
testingutils.h Port a few QLinkedList to QList 2022-03-19 11:22:55 +00:00
toggleactionmenutest.cpp Convert license headers to SPDX 2021-06-10 08:11:56 +00:00
translateannotationtest.cpp Port a few QLinkedList to QList 2022-03-19 11:22:55 +00:00
urldetecttest.cpp Convert license headers to SPDX 2021-06-10 08:11:56 +00:00
visibilitytest.cpp Use the poppler version includes instead of check_cxx_source_compiles 2022-05-04 01:16:35 +02:00