From 2c457887402151cfde8ac4842af0c2248eb840a9 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Thu, 7 Jun 2018 20:36:23 +0000 Subject: Convert resolve_nodes.pdf into 3 test cases There are 3 elements in the PDF that can be interacted with that cause testable output. This CL creates test cases for each of these elements. 2 of them work correctly, and a new bug, pdfium:1106, has been filed for the third. BUG=pdfium:1020 Change-Id: I524911d03927a0eeeee1d1479e1a855f90269e8e Reviewed-on: https://pdfium-review.googlesource.com/34370 Reviewed-by: Henrique Nakashima Commit-Queue: Ryan Harrison --- testing/resources/pixel/xfa_specific/resolve_nodes.pdf | Bin 213700 -> 0 bytes .../resources/pixel/xfa_specific/resolve_nodes_0.evt | 3 +++ .../resources/pixel/xfa_specific/resolve_nodes_0.pdf | Bin 0 -> 213700 bytes .../xfa_specific/resolve_nodes_0_expected.pdf.0.png | Bin 0 -> 75004 bytes 4 files changed, 3 insertions(+) delete mode 100644 testing/resources/pixel/xfa_specific/resolve_nodes.pdf create mode 100644 testing/resources/pixel/xfa_specific/resolve_nodes_0.evt create mode 100644 testing/resources/pixel/xfa_specific/resolve_nodes_0.pdf create mode 100644 testing/resources/pixel/xfa_specific/resolve_nodes_0_expected.pdf.0.png (limited to 'testing/resources/pixel/xfa_specific') diff --git a/testing/resources/pixel/xfa_specific/resolve_nodes.pdf b/testing/resources/pixel/xfa_specific/resolve_nodes.pdf deleted file mode 100644 index 9694f7fe50..0000000000 Binary files a/testing/resources/pixel/xfa_specific/resolve_nodes.pdf and /dev/null differ diff --git a/testing/resources/pixel/xfa_specific/resolve_nodes_0.evt b/testing/resources/pixel/xfa_specific/resolve_nodes_0.evt new file mode 100644 index 0000000000..e8518ab82c --- /dev/null +++ b/testing/resources/pixel/xfa_specific/resolve_nodes_0.evt @@ -0,0 +1,3 @@ +mousedown,left,550,30 +mouseup,left,550,30 + diff --git a/testing/resources/pixel/xfa_specific/resolve_nodes_0.pdf b/testing/resources/pixel/xfa_specific/resolve_nodes_0.pdf new file mode 100644 index 0000000000..9694f7fe50 Binary files /dev/null and b/testing/resources/pixel/xfa_specific/resolve_nodes_0.pdf differ diff --git a/testing/resources/pixel/xfa_specific/resolve_nodes_0_expected.pdf.0.png b/testing/resources/pixel/xfa_specific/resolve_nodes_0_expected.pdf.0.png new file mode 100644 index 0000000000..d7f1de629e Binary files /dev/null and b/testing/resources/pixel/xfa_specific/resolve_nodes_0_expected.pdf.0.png differ -- cgit v1.2.3