From 74ed5542fdde125d62b040dd63b0f6c69e7ae234 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Wed, 6 Jun 2018 13:36:48 +0000 Subject: Create events and expectation for barcode_test.pdf This adds a test where a known value is used as a seed for generating a barcode and confirming that the generated barcode is consistent. BUG=pdfium:1020 Change-Id: I61ed37a8591f0efe40a8d4ab1d6024bb1489ef25 Reviewed-on: https://pdfium-review.googlesource.com/34030 Commit-Queue: Ryan Harrison Reviewed-by: Henrique Nakashima Reviewed-by: Lei Zhang --- testing/SUPPRESSIONS | 1 - testing/resources/pixel/xfa_specific/barcode_test.evt | 10 ++++++++++ .../pixel/xfa_specific/barcode_test_expected.pdf.0.png | Bin 0 -> 10547 bytes 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 testing/resources/pixel/xfa_specific/barcode_test.evt create mode 100644 testing/resources/pixel/xfa_specific/barcode_test_expected.pdf.0.png diff --git a/testing/SUPPRESSIONS b/testing/SUPPRESSIONS index cb6b9bfbe3..e6fb75072d 100644 --- a/testing/SUPPRESSIONS +++ b/testing/SUPPRESSIONS @@ -325,7 +325,6 @@ bug_492.in * nov8 * # xfa_specific # TODO(rharrison): Create expectations for existing files. -barcode_test.pdf * * * dynamic_list_box_allow_multiple_selection.pdf * * * dynamic_password_field_background_fill.pdf * * * resolve_nodes.pdf * * * diff --git a/testing/resources/pixel/xfa_specific/barcode_test.evt b/testing/resources/pixel/xfa_specific/barcode_test.evt new file mode 100644 index 0000000000..0844042851 --- /dev/null +++ b/testing/resources/pixel/xfa_specific/barcode_test.evt @@ -0,0 +1,10 @@ +mousedown,left,200,95 +mouseup,left,200,95 +charcode,72 +charcode,101 +charcode,108 +charcode,108 +charcode,111 +charcode,33 +mousedown,left,500,95 +mouseup,left,500,95 diff --git a/testing/resources/pixel/xfa_specific/barcode_test_expected.pdf.0.png b/testing/resources/pixel/xfa_specific/barcode_test_expected.pdf.0.png new file mode 100644 index 0000000000..2e668afc9a Binary files /dev/null and b/testing/resources/pixel/xfa_specific/barcode_test_expected.pdf.0.png differ -- cgit v1.2.3