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 --- .../javascript/xfa_specific/resolve_nodes_1.evt | 3 +++ .../javascript/xfa_specific/resolve_nodes_1.pdf | Bin 0 -> 213700 bytes .../xfa_specific/resolve_nodes_1_expected.txt | 1 + .../javascript/xfa_specific/resolve_nodes_2.evt | 3 +++ .../javascript/xfa_specific/resolve_nodes_2.pdf | Bin 0 -> 213700 bytes .../xfa_specific/resolve_nodes_2_expected.txt | 1 + 6 files changed, 8 insertions(+) create mode 100644 testing/resources/javascript/xfa_specific/resolve_nodes_1.evt create mode 100644 testing/resources/javascript/xfa_specific/resolve_nodes_1.pdf create mode 100644 testing/resources/javascript/xfa_specific/resolve_nodes_1_expected.txt create mode 100644 testing/resources/javascript/xfa_specific/resolve_nodes_2.evt create mode 100644 testing/resources/javascript/xfa_specific/resolve_nodes_2.pdf create mode 100644 testing/resources/javascript/xfa_specific/resolve_nodes_2_expected.txt (limited to 'testing/resources/javascript/xfa_specific') diff --git a/testing/resources/javascript/xfa_specific/resolve_nodes_1.evt b/testing/resources/javascript/xfa_specific/resolve_nodes_1.evt new file mode 100644 index 0000000000..baef0b419f --- /dev/null +++ b/testing/resources/javascript/xfa_specific/resolve_nodes_1.evt @@ -0,0 +1,3 @@ +mousedown,left,400,30 +mouseup,left,400,30 + diff --git a/testing/resources/javascript/xfa_specific/resolve_nodes_1.pdf b/testing/resources/javascript/xfa_specific/resolve_nodes_1.pdf new file mode 100644 index 0000000000..9694f7fe50 Binary files /dev/null and b/testing/resources/javascript/xfa_specific/resolve_nodes_1.pdf differ diff --git a/testing/resources/javascript/xfa_specific/resolve_nodes_1_expected.txt b/testing/resources/javascript/xfa_specific/resolve_nodes_1_expected.txt new file mode 100644 index 0000000000..d4cc4424d3 --- /dev/null +++ b/testing/resources/javascript/xfa_specific/resolve_nodes_1_expected.txt @@ -0,0 +1 @@ +: \Find 1 items diff --git a/testing/resources/javascript/xfa_specific/resolve_nodes_2.evt b/testing/resources/javascript/xfa_specific/resolve_nodes_2.evt new file mode 100644 index 0000000000..906fdcd905 --- /dev/null +++ b/testing/resources/javascript/xfa_specific/resolve_nodes_2.evt @@ -0,0 +1,3 @@ +mousedown,left,43,94 +mouseup,left,43,94 + diff --git a/testing/resources/javascript/xfa_specific/resolve_nodes_2.pdf b/testing/resources/javascript/xfa_specific/resolve_nodes_2.pdf new file mode 100644 index 0000000000..9694f7fe50 Binary files /dev/null and b/testing/resources/javascript/xfa_specific/resolve_nodes_2.pdf differ diff --git a/testing/resources/javascript/xfa_specific/resolve_nodes_2_expected.txt b/testing/resources/javascript/xfa_specific/resolve_nodes_2_expected.txt new file mode 100644 index 0000000000..251a6ef43f --- /dev/null +++ b/testing/resources/javascript/xfa_specific/resolve_nodes_2_expected.txt @@ -0,0 +1 @@ +: field -- cgit v1.2.3