diff options
author | Diana Gage <drgage@google.com> | 2017-07-28 17:07:39 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-07-31 21:43:06 +0000 |
commit | ab3909796cf2e9fa192040bcd7cb9da7bb3328a5 (patch) | |
tree | c4b3d336aa8d3539794ec0a9740cb9d78a7b0af8 /testing/resources/text_form_multiple.in | |
parent | 47c9e6d1a151c7c8b0649712a91e04f12177b7b9 (diff) | |
download | pdfium-ab3909796cf2e9fa192040bcd7cb9da7bb3328a5.tar.xz |
Add FORM_ReplaceSelection() and embedder tests.
This method replaces the selected text in a user-editable form text
area with another text string (which can be empty or non-empty). If
there is no selected text, FORM_ReplaceSelection() will append the
replacement text after the current caret position.
BUG=chromium:59266
Change-Id: I76448ef757d107888c33ebd5656457ebac93b952
Reviewed-on: https://pdfium-review.googlesource.com/8812
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Diana Gage <drgage@google.com>
Diffstat (limited to 'testing/resources/text_form_multiple.in')
-rw-r--r-- | testing/resources/text_form_multiple.in | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/testing/resources/text_form_multiple.in b/testing/resources/text_form_multiple.in index 43919eb200..576e15597c 100644 --- a/testing/resources/text_form_multiple.in +++ b/testing/resources/text_form_multiple.in @@ -3,7 +3,7 @@ << /Type /Catalog /Pages 2 0 R - /AcroForm << /Fields [ 4 0 R 9 0 R ] /DR 5 0 R >> + /AcroForm << /Fields [ 4 0 R 9 0 R 10 0 R ] /DR 5 0 R >> >> endobj {{object 2 0}} @@ -16,7 +16,7 @@ endobj /Resources 5 0 R /MediaBox [ 0 0 300 300 ] /Contents 8 0 R - /Annots [ 4 0 R 9 0 R ] + /Annots [ 4 0 R 9 0 R 10 0 R ] >> endobj {{object 4 0}} @@ -63,6 +63,18 @@ endobj /Subtype /Widget >> endobj +{{object 10 0}} +<< + /Type /Annot + /FT /Tx + /T (CharLimit) + /MaxLen 10 + /DA (0 0 0 rg /F1 12 Tf) + /V (Elephant) + /Rect [ 100 50 200 75 ] + /Subtype /Widget +>> +endobj {{xref}} {{trailer}} {{startxref}} |