From 9d0d7c8f35b8f3063d33a41186ea677d01748e45 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Mon, 20 Nov 2017 19:32:50 +0000 Subject: Add regression tests for issues with correctly removing hyphens There was a regression due to a refactor, where the public API was no longer removing soft hyphens for line broken words. This was causing issues with find and copy/paste operations that depend on selecting a region of text. This change is covered by FPDFTextEmbeddertest.GetTextWithHyphen. FPDFTextEmbeddertest.bug_782596 is a regression test for a bug that was introduced by the original fix. It only fails when running the test under ASAN. BUG=pdfium:935 Change-Id: I26096583c35f9246a3662e702f89b742f1146780 Reviewed-on: https://pdfium-review.googlesource.com/18610 Reviewed-by: Lei Zhang Reviewed-by: dsinclair Commit-Queue: Ryan Harrison --- testing/resources/bug_781804.pdf | Bin 0 -> 15690 bytes testing/resources/bug_782596.pdf | Bin 0 -> 93 bytes 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 testing/resources/bug_781804.pdf create mode 100644 testing/resources/bug_782596.pdf (limited to 'testing') diff --git a/testing/resources/bug_781804.pdf b/testing/resources/bug_781804.pdf new file mode 100644 index 0000000000..29304f157e Binary files /dev/null and b/testing/resources/bug_781804.pdf differ diff --git a/testing/resources/bug_782596.pdf b/testing/resources/bug_782596.pdf new file mode 100644 index 0000000000..e28d897ada Binary files /dev/null and b/testing/resources/bug_782596.pdf differ -- cgit v1.2.3