From e30f07a3278669c6d62c4e857c3d5402cb7a04d3 Mon Sep 17 00:00:00 2001 From: Nicolas Pena Date: Thu, 18 May 2017 18:37:46 -0400 Subject: Add pixel test for bug 113910 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: chromium:113910 Change-Id: I52d712828a0adde02b1e867421ee06f1ca8be1e2 Reviewed-on: https://pdfium-review.googlesource.com/5636 Reviewed-by: Tom Sepez Commit-Queue: Nicolás Peña --- samples/pdfium_test.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'samples') diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc index fa57d65b9e..e33ceadabf 100644 --- a/samples/pdfium_test.cc +++ b/samples/pdfium_test.cc @@ -607,7 +607,14 @@ void SendPageEvents(const FPDF_FORMHANDLE& form, if (command[0].empty()) continue; auto tokens = StringSplit(command[0], ','); - if (tokens[0] == "keycode") { + if (tokens[0] == "charcode") { + if (tokens.size() == 2) { + int keycode = atoi(tokens[1].c_str()); + FORM_OnChar(form, page, keycode, 0); + } else { + fprintf(stderr, "charcode: bad args\n"); + } + } else if (tokens[0] == "keycode") { if (tokens.size() == 2) { int keycode = atoi(tokens[1].c_str()); FORM_OnKeyDown(form, page, keycode, 0); -- cgit v1.2.3