summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2018-06-06 13:36:48 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-06 13:36:48 +0000
commit74ed5542fdde125d62b040dd63b0f6c69e7ae234 (patch)
tree141a390c759ab176be51e6e7e39dd3761dcbbe19
parenteababa10789bc0d73a325291e2854090ee3896cd (diff)
downloadpdfium-74ed5542fdde125d62b040dd63b0f6c69e7ae234.tar.xz
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 <rharrison@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
-rw-r--r--testing/SUPPRESSIONS1
-rw-r--r--testing/resources/pixel/xfa_specific/barcode_test.evt10
-rw-r--r--testing/resources/pixel/xfa_specific/barcode_test_expected.pdf.0.pngbin0 -> 10547 bytes
3 files changed, 10 insertions, 1 deletions
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
--- /dev/null
+++ b/testing/resources/pixel/xfa_specific/barcode_test_expected.pdf.0.png
Binary files differ