Add 2016-04-08 test drop from FX

Review URL: https://codereview.chromium.org/1895993002 .
diff --git a/xfa/fx/test_case_0001/Choose.pdf b/xfa/fx/test_case_0001/Choose.pdf
new file mode 100644
index 0000000..1cbc546
--- /dev/null
+++ b/xfa/fx/test_case_0001/Choose.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0001/Choose_expected.pdf.0.png b/xfa/fx/test_case_0001/Choose_expected.pdf.0.png
new file mode 100644
index 0000000..f84d2fe
--- /dev/null
+++ b/xfa/fx/test_case_0001/Choose_expected.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0001/test_summary.txt b/xfa/fx/test_case_0001/test_summary.txt
new file mode 100644
index 0000000..77cd3c4
--- /dev/null
+++ b/xfa/fx/test_case_0001/test_summary.txt
@@ -0,0 +1,17 @@
+-Test process
+
+1. Test program gives the first text field(the number of choose field) a value of “2”
+
+2. Test program generates a png image
+
+-Pass condition
+
+1. Test program verifies the second text field(result field) has a value of “world” 500ms after the first text field was given the value
+
+AND
+
+2. The test program verifies the output image equals the input test image in every pixel
+
+-Test purpose
+
+1. The “world” is the 2nd member of the list. The output logic is implemented by Adobe FormCalc script(described in Adobe FormCalc User Reference). This test aims to test Pdfium core’s correct interpretation of FormCalc script.
\ No newline at end of file
diff --git a/xfa/fx/test_case_0002/data_binding.pdf b/xfa/fx/test_case_0002/data_binding.pdf
new file mode 100644
index 0000000..b52440f
--- /dev/null
+++ b/xfa/fx/test_case_0002/data_binding.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0002/data_binding_expected.pdf.0.png b/xfa/fx/test_case_0002/data_binding_expected.pdf.0.png
new file mode 100644
index 0000000..47d9de7
--- /dev/null
+++ b/xfa/fx/test_case_0002/data_binding_expected.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0002/test_summary.txt b/xfa/fx/test_case_0002/test_summary.txt
new file mode 100644
index 0000000..4a984de
--- /dev/null
+++ b/xfa/fx/test_case_0002/test_summary.txt
@@ -0,0 +1,17 @@
+-Test process
+
+1. Test program checks the first checkbox
+
+2. Test program generates a png image
+
+-Pass condition
+
+1. Test program verifies the second checkbox is checked 10ms after the first checkbox was checked
+
+AND
+
+2. The test program verifies the output image equals the input test image in every pixel
+
+-Test purpose
+
+1. The first checkbox and the second checkbox are data bonded. When either one is checked, the other one will be checked in turn. The output logic is implemented by Adobe FormCalc script(described in Adobe FormCalc User Reference). This test aims to test Pdfium core’s correct interpretation of FormCalc script.
\ No newline at end of file
diff --git a/xfa/fx/test_case_0003/Date_FormCale.pdf b/xfa/fx/test_case_0003/Date_FormCale.pdf
new file mode 100644
index 0000000..a1d604b
--- /dev/null
+++ b/xfa/fx/test_case_0003/Date_FormCale.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0003/Date_FormCale_expected.pdf.0.png b/xfa/fx/test_case_0003/Date_FormCale_expected.pdf.0.png
new file mode 100644
index 0000000..8593b67
--- /dev/null
+++ b/xfa/fx/test_case_0003/Date_FormCale_expected.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0003/test_summary.txt b/xfa/fx/test_case_0003/test_summary.txt
new file mode 100644
index 0000000..c022284
--- /dev/null
+++ b/xfa/fx/test_case_0003/test_summary.txt
@@ -0,0 +1,19 @@
+-Test process
+
+1. Test program generates a png image
+
+-Pass condition
+
+1. The test program verifies the first text field has a number how many days is today away from 1/1/1900.
+
+AND
+
+2. The second text field contains today’s date.
+
+AND
+
+3. The test program verifies the output image equals the input test image in every pixel
+
+-Test purpose
+
+1. Upon opening, the first text field has a number how many days is today away from 1/1/1900. The second text field contains today’s date. The second value is generated by the first value. The output logic is implemented by Adobe FormCalc script(described in Adobe FormCalc User Reference). This test aims to test Pdfium core’s correct interpretation of FormCalc script.
\ No newline at end of file
diff --git a/xfa/fx/test_case_0004/Line_Stroke.pdf.pdf b/xfa/fx/test_case_0004/Line_Stroke.pdf.pdf
new file mode 100644
index 0000000..6bb04e2
--- /dev/null
+++ b/xfa/fx/test_case_0004/Line_Stroke.pdf.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0004/Line_Stroke_expected.pdf.pdf.0.png b/xfa/fx/test_case_0004/Line_Stroke_expected.pdf.pdf.0.png
new file mode 100644
index 0000000..a91dfd7
--- /dev/null
+++ b/xfa/fx/test_case_0004/Line_Stroke_expected.pdf.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0004/test_summary.txt b/xfa/fx/test_case_0004/test_summary.txt
new file mode 100644
index 0000000..30ca433
--- /dev/null
+++ b/xfa/fx/test_case_0004/test_summary.txt
@@ -0,0 +1,23 @@
+-Test process
+
+1. Test program generates a png image
+
+-Pass condition
+
+1. The test program verifies first line does not equal second line in certain pixels
+
+AND
+
+2. The test program verifies second line does not equal third line in certain pixels
+
+AND
+
+3. The test program verifies third line does not equal fourth line in certain pixels
+
+AND
+
+4. The test program verifies the output image equals the input test image in every pixel
+
+-Test purpose
+
+1. FormCalc language defines lines’ dash patterns. The output logic is implemented by Adobe FormCalc script(described in Adobe FormCalc User Reference). This test aims to test Pdfium core’s correct interpretation of FormCalc script.
\ No newline at end of file
diff --git a/xfa/fx/test_case_0005/MouseEvents.pdf b/xfa/fx/test_case_0005/MouseEvents.pdf
new file mode 100644
index 0000000..fb3ad11
--- /dev/null
+++ b/xfa/fx/test_case_0005/MouseEvents.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0005/MouseEvents_enter.pdf.0.png b/xfa/fx/test_case_0005/MouseEvents_enter.pdf.0.png
new file mode 100644
index 0000000..573049a
--- /dev/null
+++ b/xfa/fx/test_case_0005/MouseEvents_enter.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0005/MouseEvents_exit.pdf.0.png b/xfa/fx/test_case_0005/MouseEvents_exit.pdf.0.png
new file mode 100644
index 0000000..20d741f
--- /dev/null
+++ b/xfa/fx/test_case_0005/MouseEvents_exit.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0005/test_summary.txt b/xfa/fx/test_case_0005/test_summary.txt
new file mode 100644
index 0000000..3db63da
--- /dev/null
+++ b/xfa/fx/test_case_0005/test_summary.txt
@@ -0,0 +1,26 @@
+-Test process
+
+1. Test program simulates a mouseEnter event over the UI combination
+
+2. Test program simulates a mouseLeave event over the UI combination
+
+-Pass condition
+
+1. Test program verifies the external text field has a white background color and the internal text field has a light blue background color upon mouseEnter
+
+AND
+
+2. Test program verifies the external text field has a dark blue background color and the internal text field has a light blue background color upon mouseLeave
+
+AND
+
+
+3. The test program verifies the output image equals the first input test image in every pixel upon mouseEnter
+
+AND
+
+4. The test program verifies the output image equals the second input test image in every pixel upon mouseLeave
+
+-Test purpose
+
+1. The color changes are caused by the mouseEnter and mouseLeave events. This logic is implemented by Adobe FormCalc script(described in Adobe FormCalc User Reference). This test aims to test Pdfium core’s correct interpretation of FormCalc script.
\ No newline at end of file
diff --git a/xfa/fx/test_case_0006/Oneof.pdf b/xfa/fx/test_case_0006/Oneof.pdf
new file mode 100644
index 0000000..d9bbc69
--- /dev/null
+++ b/xfa/fx/test_case_0006/Oneof.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0006/Oneof1.pdf.0.png b/xfa/fx/test_case_0006/Oneof1.pdf.0.png
new file mode 100644
index 0000000..7204a96
--- /dev/null
+++ b/xfa/fx/test_case_0006/Oneof1.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0006/Oneof2.pdf.0.png b/xfa/fx/test_case_0006/Oneof2.pdf.0.png
new file mode 100644
index 0000000..6a36ec4
--- /dev/null
+++ b/xfa/fx/test_case_0006/Oneof2.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0006/Oneof3.pdf.0.png b/xfa/fx/test_case_0006/Oneof3.pdf.0.png
new file mode 100644
index 0000000..f0681e4
--- /dev/null
+++ b/xfa/fx/test_case_0006/Oneof3.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0006/test_summary.txt b/xfa/fx/test_case_0006/test_summary.txt
new file mode 100644
index 0000000..5a274a4
--- /dev/null
+++ b/xfa/fx/test_case_0006/test_summary.txt
@@ -0,0 +1,23 @@
+-Test process
+
+1. The test program inputs 2 in the first text field.
+
+2. The test program inputs 3 in the second text field.
+
+3. The test program inputs 4 in the third text field.
+
+-Pass condition
+
+1. The test program verifies the fourth text field has a value of 0
+
+AND
+
+2. The test program verifies the fourth text field has a value of 1 when the inputs are 2, 2, 4
+
+AND
+
+3. The test program verifies the fourth text field has a value of 1 when the inputs are 3, 3, null
+
+-Test purpose
+
+1. The logic is the first value is 1 only when there are at least 2 identical input values. The output logic is implemented by Adobe FormCalc script(described in Adobe FormCalc User Reference). This test aims to test Pdfium core’s correct interpretation of FormCalc script.
diff --git a/xfa/fx/test_case_0007/PagePosition_any_rest.pdf b/xfa/fx/test_case_0007/PagePosition_any_rest.pdf
new file mode 100644
index 0000000..c252a30
--- /dev/null
+++ b/xfa/fx/test_case_0007/PagePosition_any_rest.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0007/PagePosition_any_rest_expected.pdf.0.png b/xfa/fx/test_case_0007/PagePosition_any_rest_expected.pdf.0.png
new file mode 100644
index 0000000..b304635
--- /dev/null
+++ b/xfa/fx/test_case_0007/PagePosition_any_rest_expected.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0007/PagePosition_any_rest_expected.pdf.1.png b/xfa/fx/test_case_0007/PagePosition_any_rest_expected.pdf.1.png
new file mode 100644
index 0000000..99351f2
--- /dev/null
+++ b/xfa/fx/test_case_0007/PagePosition_any_rest_expected.pdf.1.png
Binary files differ
diff --git a/xfa/fx/test_case_0007/PagePosition_any_rest_expected.pdf.2.png b/xfa/fx/test_case_0007/PagePosition_any_rest_expected.pdf.2.png
new file mode 100644
index 0000000..99351f2
--- /dev/null
+++ b/xfa/fx/test_case_0007/PagePosition_any_rest_expected.pdf.2.png
Binary files differ
diff --git a/xfa/fx/test_case_0007/PagePosition_any_rest_expected.pdf.3.png b/xfa/fx/test_case_0007/PagePosition_any_rest_expected.pdf.3.png
new file mode 100644
index 0000000..99351f2
--- /dev/null
+++ b/xfa/fx/test_case_0007/PagePosition_any_rest_expected.pdf.3.png
Binary files differ
diff --git a/xfa/fx/test_case_0007/PagePosition_any_rest_expected.pdf.4.png b/xfa/fx/test_case_0007/PagePosition_any_rest_expected.pdf.4.png
new file mode 100644
index 0000000..0bd2515
--- /dev/null
+++ b/xfa/fx/test_case_0007/PagePosition_any_rest_expected.pdf.4.png
Binary files differ
diff --git a/xfa/fx/test_case_0007/test_summary.txt b/xfa/fx/test_case_0007/test_summary.txt
new file mode 100644
index 0000000..f1e8852
--- /dev/null
+++ b/xfa/fx/test_case_0007/test_summary.txt
@@ -0,0 +1,27 @@
+-Test process
+
+1. Test program generates png images for all the pdf pages
+
+-Pass condition
+
+1. The test program verifies the first output image equals the first input test image in every pixel
+
+AND
+
+2. The test program verifies the second output image equals the second input test image in every pixel
+
+AND
+
+3. The test program verifies the third output image equals the third input test image in every pixel
+
+AND
+
+4. The test program verifies the forth output image equals the forth input test image in every pixel
+
+AND
+
+5. The test program verifies the fifth output image equals the fifth input test image in every pixel
+
+-Test purpose
+
+1. FormCalc language defines XFA templates. the XFA templates determines the order of page output. The output logic is implemented by Adobe FormCalc script(described in Adobe FormCalc User Reference). This test aims to test Pdfium core’s correct interpretation of FormCalc script.
diff --git a/xfa/fx/test_case_0008/PagePosition_first.pdf b/xfa/fx/test_case_0008/PagePosition_first.pdf
new file mode 100644
index 0000000..f7b81dd
--- /dev/null
+++ b/xfa/fx/test_case_0008/PagePosition_first.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0008/PagePosition_first_expected.pdf.0.png b/xfa/fx/test_case_0008/PagePosition_first_expected.pdf.0.png
new file mode 100644
index 0000000..73cf5f6
--- /dev/null
+++ b/xfa/fx/test_case_0008/PagePosition_first_expected.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0008/PagePosition_first_expected.pdf.1.png b/xfa/fx/test_case_0008/PagePosition_first_expected.pdf.1.png
new file mode 100644
index 0000000..b9d5fc9
--- /dev/null
+++ b/xfa/fx/test_case_0008/PagePosition_first_expected.pdf.1.png
Binary files differ
diff --git a/xfa/fx/test_case_0008/PagePosition_first_expected.pdf.2.png b/xfa/fx/test_case_0008/PagePosition_first_expected.pdf.2.png
new file mode 100644
index 0000000..b9d5fc9
--- /dev/null
+++ b/xfa/fx/test_case_0008/PagePosition_first_expected.pdf.2.png
Binary files differ
diff --git a/xfa/fx/test_case_0008/PagePosition_first_expected.pdf.3.png b/xfa/fx/test_case_0008/PagePosition_first_expected.pdf.3.png
new file mode 100644
index 0000000..b9d5fc9
--- /dev/null
+++ b/xfa/fx/test_case_0008/PagePosition_first_expected.pdf.3.png
Binary files differ
diff --git a/xfa/fx/test_case_0008/PagePosition_first_expected.pdf.4.png b/xfa/fx/test_case_0008/PagePosition_first_expected.pdf.4.png
new file mode 100644
index 0000000..0bd2515
--- /dev/null
+++ b/xfa/fx/test_case_0008/PagePosition_first_expected.pdf.4.png
Binary files differ
diff --git a/xfa/fx/test_case_0008/test_summary.txt b/xfa/fx/test_case_0008/test_summary.txt
new file mode 100644
index 0000000..f1e8852
--- /dev/null
+++ b/xfa/fx/test_case_0008/test_summary.txt
@@ -0,0 +1,27 @@
+-Test process
+
+1. Test program generates png images for all the pdf pages
+
+-Pass condition
+
+1. The test program verifies the first output image equals the first input test image in every pixel
+
+AND
+
+2. The test program verifies the second output image equals the second input test image in every pixel
+
+AND
+
+3. The test program verifies the third output image equals the third input test image in every pixel
+
+AND
+
+4. The test program verifies the forth output image equals the forth input test image in every pixel
+
+AND
+
+5. The test program verifies the fifth output image equals the fifth input test image in every pixel
+
+-Test purpose
+
+1. FormCalc language defines XFA templates. the XFA templates determines the order of page output. The output logic is implemented by Adobe FormCalc script(described in Adobe FormCalc User Reference). This test aims to test Pdfium core’s correct interpretation of FormCalc script.
diff --git a/xfa/fx/test_case_0009/PagePosition_last.pdf b/xfa/fx/test_case_0009/PagePosition_last.pdf
new file mode 100644
index 0000000..fc51305
--- /dev/null
+++ b/xfa/fx/test_case_0009/PagePosition_last.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0009/PagePosition_last_expected.pdf.0.png b/xfa/fx/test_case_0009/PagePosition_last_expected.pdf.0.png
new file mode 100644
index 0000000..b304635
--- /dev/null
+++ b/xfa/fx/test_case_0009/PagePosition_last_expected.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0009/PagePosition_last_expected.pdf.1.png b/xfa/fx/test_case_0009/PagePosition_last_expected.pdf.1.png
new file mode 100644
index 0000000..b9d5fc9
--- /dev/null
+++ b/xfa/fx/test_case_0009/PagePosition_last_expected.pdf.1.png
Binary files differ
diff --git a/xfa/fx/test_case_0009/PagePosition_last_expected.pdf.2.png b/xfa/fx/test_case_0009/PagePosition_last_expected.pdf.2.png
new file mode 100644
index 0000000..b9d5fc9
--- /dev/null
+++ b/xfa/fx/test_case_0009/PagePosition_last_expected.pdf.2.png
Binary files differ
diff --git a/xfa/fx/test_case_0009/PagePosition_last_expected.pdf.3.png b/xfa/fx/test_case_0009/PagePosition_last_expected.pdf.3.png
new file mode 100644
index 0000000..b9d5fc9
--- /dev/null
+++ b/xfa/fx/test_case_0009/PagePosition_last_expected.pdf.3.png
Binary files differ
diff --git a/xfa/fx/test_case_0009/PagePosition_last_expected.pdf.4.png b/xfa/fx/test_case_0009/PagePosition_last_expected.pdf.4.png
new file mode 100644
index 0000000..0bd2515
--- /dev/null
+++ b/xfa/fx/test_case_0009/PagePosition_last_expected.pdf.4.png
Binary files differ
diff --git a/xfa/fx/test_case_0009/test_summary.txt b/xfa/fx/test_case_0009/test_summary.txt
new file mode 100644
index 0000000..f1e8852
--- /dev/null
+++ b/xfa/fx/test_case_0009/test_summary.txt
@@ -0,0 +1,27 @@
+-Test process
+
+1. Test program generates png images for all the pdf pages
+
+-Pass condition
+
+1. The test program verifies the first output image equals the first input test image in every pixel
+
+AND
+
+2. The test program verifies the second output image equals the second input test image in every pixel
+
+AND
+
+3. The test program verifies the third output image equals the third input test image in every pixel
+
+AND
+
+4. The test program verifies the forth output image equals the forth input test image in every pixel
+
+AND
+
+5. The test program verifies the fifth output image equals the fifth input test image in every pixel
+
+-Test purpose
+
+1. FormCalc language defines XFA templates. the XFA templates determines the order of page output. The output logic is implemented by Adobe FormCalc script(described in Adobe FormCalc User Reference). This test aims to test Pdfium core’s correct interpretation of FormCalc script.
diff --git a/xfa/fx/test_case_0010/PagePosition_no_any.pdf b/xfa/fx/test_case_0010/PagePosition_no_any.pdf
new file mode 100644
index 0000000..8371367
--- /dev/null
+++ b/xfa/fx/test_case_0010/PagePosition_no_any.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0010/PagePosition_no_any_expected.pdf.0.png b/xfa/fx/test_case_0010/PagePosition_no_any_expected.pdf.0.png
new file mode 100644
index 0000000..73cf5f6
--- /dev/null
+++ b/xfa/fx/test_case_0010/PagePosition_no_any_expected.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0010/PagePosition_no_any_expected.pdf.1.png b/xfa/fx/test_case_0010/PagePosition_no_any_expected.pdf.1.png
new file mode 100644
index 0000000..bdff09d
--- /dev/null
+++ b/xfa/fx/test_case_0010/PagePosition_no_any_expected.pdf.1.png
Binary files differ
diff --git a/xfa/fx/test_case_0010/PagePosition_no_any_expected.pdf.2.png b/xfa/fx/test_case_0010/PagePosition_no_any_expected.pdf.2.png
new file mode 100644
index 0000000..bdff09d
--- /dev/null
+++ b/xfa/fx/test_case_0010/PagePosition_no_any_expected.pdf.2.png
Binary files differ
diff --git a/xfa/fx/test_case_0010/PagePosition_no_any_expected.pdf.3.png b/xfa/fx/test_case_0010/PagePosition_no_any_expected.pdf.3.png
new file mode 100644
index 0000000..0bd2515
--- /dev/null
+++ b/xfa/fx/test_case_0010/PagePosition_no_any_expected.pdf.3.png
Binary files differ
diff --git a/xfa/fx/test_case_0010/test_summary.txt b/xfa/fx/test_case_0010/test_summary.txt
new file mode 100644
index 0000000..b7e46f5
--- /dev/null
+++ b/xfa/fx/test_case_0010/test_summary.txt
@@ -0,0 +1,23 @@
+-Test process
+
+1. Test program generates png images for all the pdf pages
+
+-Pass condition
+
+1. The test program verifies the first output image equals the first input test image in every pixel
+
+AND
+
+2. The test program verifies the second output image equals the second input test image in every pixel
+
+AND
+
+3. The test program verifies the third output image equals the third input test image in every pixel
+
+AND
+
+4. The test program verifies the forth output image equals the forth input test image in every pixel
+
+-Test purpose
+
+1. FormCalc language defines XFA templates. the XFA templates determines the order of page output. The output logic is implemented by Adobe FormCalc script(described in Adobe FormCalc User Reference). This test aims to test Pdfium core’s correct interpretation of FormCalc script.
diff --git a/xfa/fx/test_case_0011/PagePosition_rest.pdf b/xfa/fx/test_case_0011/PagePosition_rest.pdf
new file mode 100644
index 0000000..cdc34be
--- /dev/null
+++ b/xfa/fx/test_case_0011/PagePosition_rest.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0011/PagePosition_rest_expected.pdf.0.png b/xfa/fx/test_case_0011/PagePosition_rest_expected.pdf.0.png
new file mode 100644
index 0000000..b304635
--- /dev/null
+++ b/xfa/fx/test_case_0011/PagePosition_rest_expected.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0011/PagePosition_rest_expected.pdf.1.png b/xfa/fx/test_case_0011/PagePosition_rest_expected.pdf.1.png
new file mode 100644
index 0000000..a58b4c2
--- /dev/null
+++ b/xfa/fx/test_case_0011/PagePosition_rest_expected.pdf.1.png
Binary files differ
diff --git a/xfa/fx/test_case_0011/PagePosition_rest_expected.pdf.2.png b/xfa/fx/test_case_0011/PagePosition_rest_expected.pdf.2.png
new file mode 100644
index 0000000..a58b4c2
--- /dev/null
+++ b/xfa/fx/test_case_0011/PagePosition_rest_expected.pdf.2.png
Binary files differ
diff --git a/xfa/fx/test_case_0011/PagePosition_rest_expected.pdf.3.png b/xfa/fx/test_case_0011/PagePosition_rest_expected.pdf.3.png
new file mode 100644
index 0000000..a58b4c2
--- /dev/null
+++ b/xfa/fx/test_case_0011/PagePosition_rest_expected.pdf.3.png
Binary files differ
diff --git a/xfa/fx/test_case_0011/PagePosition_rest_expected.pdf.4.png b/xfa/fx/test_case_0011/PagePosition_rest_expected.pdf.4.png
new file mode 100644
index 0000000..a58b4c2
--- /dev/null
+++ b/xfa/fx/test_case_0011/PagePosition_rest_expected.pdf.4.png
Binary files differ
diff --git a/xfa/fx/test_case_0011/PagePosition_rest_expected.pdf.5.png b/xfa/fx/test_case_0011/PagePosition_rest_expected.pdf.5.png
new file mode 100644
index 0000000..0bd2515
--- /dev/null
+++ b/xfa/fx/test_case_0011/PagePosition_rest_expected.pdf.5.png
Binary files differ
diff --git a/xfa/fx/test_case_0011/test_summary.txt b/xfa/fx/test_case_0011/test_summary.txt
new file mode 100644
index 0000000..854bb51
--- /dev/null
+++ b/xfa/fx/test_case_0011/test_summary.txt
@@ -0,0 +1,31 @@
+-Test process
+
+1. Test program generates png images for all the pdf pages
+
+-Pass condition
+
+1. The test program verifies the first output image equals the first input test image in every pixel
+
+AND
+
+2. The test program verifies the second output image equals the second input test image in every pixel
+
+AND
+
+3. The test program verifies the third output image equals the third input test image in every pixel
+
+AND
+
+4. The test program verifies the forth output image equals the forth input test image in every pixel
+
+AND
+
+5. The test program verifies the fifth output image equals the fifth input test image in every pixel
+
+AND
+
+6. The test program verifies the sixth output image equals the sixth input test image in every pixel
+
+-Test purpose
+
+1. FormCalc language defines XFA templates. the XFA templates determines the order of page output. The output logic is implemented by Adobe FormCalc script(described in Adobe FormCalc User Reference). This test aims to test Pdfium core’s correct interpretation of FormCalc script.
diff --git a/xfa/fx/test_case_0012/PagePosition_rest_any.pdf b/xfa/fx/test_case_0012/PagePosition_rest_any.pdf
new file mode 100644
index 0000000..1473410
--- /dev/null
+++ b/xfa/fx/test_case_0012/PagePosition_rest_any.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0012/PagePosition_rest_any_expected.pdf.0.png b/xfa/fx/test_case_0012/PagePosition_rest_any_expected.pdf.0.png
new file mode 100644
index 0000000..b304635
--- /dev/null
+++ b/xfa/fx/test_case_0012/PagePosition_rest_any_expected.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0012/PagePosition_rest_any_expected.pdf.1.png b/xfa/fx/test_case_0012/PagePosition_rest_any_expected.pdf.1.png
new file mode 100644
index 0000000..a58b4c2
--- /dev/null
+++ b/xfa/fx/test_case_0012/PagePosition_rest_any_expected.pdf.1.png
Binary files differ
diff --git a/xfa/fx/test_case_0012/PagePosition_rest_any_expected.pdf.2.png b/xfa/fx/test_case_0012/PagePosition_rest_any_expected.pdf.2.png
new file mode 100644
index 0000000..a58b4c2
--- /dev/null
+++ b/xfa/fx/test_case_0012/PagePosition_rest_any_expected.pdf.2.png
Binary files differ
diff --git a/xfa/fx/test_case_0012/PagePosition_rest_any_expected.pdf.3.png b/xfa/fx/test_case_0012/PagePosition_rest_any_expected.pdf.3.png
new file mode 100644
index 0000000..a58b4c2
--- /dev/null
+++ b/xfa/fx/test_case_0012/PagePosition_rest_any_expected.pdf.3.png
Binary files differ
diff --git a/xfa/fx/test_case_0012/PagePosition_rest_any_expected.pdf.4.png b/xfa/fx/test_case_0012/PagePosition_rest_any_expected.pdf.4.png
new file mode 100644
index 0000000..a58b4c2
--- /dev/null
+++ b/xfa/fx/test_case_0012/PagePosition_rest_any_expected.pdf.4.png
Binary files differ
diff --git a/xfa/fx/test_case_0012/PagePosition_rest_any_expected.pdf.5.png b/xfa/fx/test_case_0012/PagePosition_rest_any_expected.pdf.5.png
new file mode 100644
index 0000000..0bd2515
--- /dev/null
+++ b/xfa/fx/test_case_0012/PagePosition_rest_any_expected.pdf.5.png
Binary files differ
diff --git a/xfa/fx/test_case_0012/test_summary.txt b/xfa/fx/test_case_0012/test_summary.txt
new file mode 100644
index 0000000..854bb51
--- /dev/null
+++ b/xfa/fx/test_case_0012/test_summary.txt
@@ -0,0 +1,31 @@
+-Test process
+
+1. Test program generates png images for all the pdf pages
+
+-Pass condition
+
+1. The test program verifies the first output image equals the first input test image in every pixel
+
+AND
+
+2. The test program verifies the second output image equals the second input test image in every pixel
+
+AND
+
+3. The test program verifies the third output image equals the third input test image in every pixel
+
+AND
+
+4. The test program verifies the forth output image equals the forth input test image in every pixel
+
+AND
+
+5. The test program verifies the fifth output image equals the fifth input test image in every pixel
+
+AND
+
+6. The test program verifies the sixth output image equals the sixth input test image in every pixel
+
+-Test purpose
+
+1. FormCalc language defines XFA templates. the XFA templates determines the order of page output. The output logic is implemented by Adobe FormCalc script(described in Adobe FormCalc User Reference). This test aims to test Pdfium core’s correct interpretation of FormCalc script.
diff --git a/xfa/fx/test_case_0013/rotate.pdf b/xfa/fx/test_case_0013/rotate.pdf
new file mode 100644
index 0000000..73912d1
--- /dev/null
+++ b/xfa/fx/test_case_0013/rotate.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0013/rotate_expected.pdf.0.png b/xfa/fx/test_case_0013/rotate_expected.pdf.0.png
new file mode 100644
index 0000000..77d6b62
--- /dev/null
+++ b/xfa/fx/test_case_0013/rotate_expected.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0013/test_summary.txt b/xfa/fx/test_case_0013/test_summary.txt
new file mode 100644
index 0000000..e2a7742
--- /dev/null
+++ b/xfa/fx/test_case_0013/test_summary.txt
@@ -0,0 +1,15 @@
+-Test process
+
+1. Test program generates a png image
+
+-Pass condition
+
+1. Test program verifies rectangle widget's width is smaller than its height
+
+AND
+
+2. The test program verifies the output image equals the input test image in every pixel
+
+-Test purpose
+
+1. The rectangle is rotated right upon the document is opened. The rectangle's rotation logic is implemented by Adobe FormCalc script(described in Adobe FormCalc User Reference). This test aims to test Pdfium core’s correct interpretation of FormCalc script.
diff --git a/xfa/fx/test_case_0014/Sum.pdf b/xfa/fx/test_case_0014/Sum.pdf
new file mode 100644
index 0000000..972c5bb
--- /dev/null
+++ b/xfa/fx/test_case_0014/Sum.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0014/Sum_expected.pdf.0.png b/xfa/fx/test_case_0014/Sum_expected.pdf.0.png
new file mode 100644
index 0000000..d1fbec5
--- /dev/null
+++ b/xfa/fx/test_case_0014/Sum_expected.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0014/test_summary.txt b/xfa/fx/test_case_0014/test_summary.txt
new file mode 100644
index 0000000..e755bbe
--- /dev/null
+++ b/xfa/fx/test_case_0014/test_summary.txt
@@ -0,0 +1,17 @@
+-Test process
+
+1. Test program inputs 2 to the first text field
+
+2. Test program inputs 3 to the second text field
+
+-Pass condition
+
+1. Test program verifies the third text field has a value of 5 500ms after the first 2 inputs
+
+AND
+
+2. The test program verifies the output image equals the input test image in every pixel
+
+-Test purpose
+
+1. This is an addition calculation. The output logic is implemented by Adobe FormCalc script(described in Adobe FormCalc User Reference). This test aims to test Pdfium core’s correct interpretation of FormCalc script.
diff --git a/xfa/fx/test_case_0015/TimeField.pdf b/xfa/fx/test_case_0015/TimeField.pdf
new file mode 100644
index 0000000..863e81c
--- /dev/null
+++ b/xfa/fx/test_case_0015/TimeField.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0015/TimeField_expected.pdf.0.png b/xfa/fx/test_case_0015/TimeField_expected.pdf.0.png
new file mode 100644
index 0000000..7c31d96
--- /dev/null
+++ b/xfa/fx/test_case_0015/TimeField_expected.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0015/test_summary.txt b/xfa/fx/test_case_0015/test_summary.txt
new file mode 100644
index 0000000..fae241f
--- /dev/null
+++ b/xfa/fx/test_case_0015/test_summary.txt
@@ -0,0 +1,11 @@
+-Test process
+
+1. Test program runs.
+
+-Pass condition
+
+1. Test program verifies first text field contains the current system date.
+
+-Test purpose
+
+1. The timing logic is implemented by Adobe FormCalc script(described in Adobe FormCalc User Reference). This test aims to test Pdfium core’s correct interpretation of FormCalc script.
diff --git a/xfa/fx/test_case_0016/Test_CheckBox.pdf b/xfa/fx/test_case_0016/Test_CheckBox.pdf
new file mode 100644
index 0000000..3156ce7
--- /dev/null
+++ b/xfa/fx/test_case_0016/Test_CheckBox.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0016/Test_CheckBox_expected.pdf.0.png b/xfa/fx/test_case_0016/Test_CheckBox_expected.pdf.0.png
new file mode 100644
index 0000000..cc41040
--- /dev/null
+++ b/xfa/fx/test_case_0016/Test_CheckBox_expected.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0016/test_summary.txt b/xfa/fx/test_case_0016/test_summary.txt
new file mode 100644
index 0000000..dda4799
--- /dev/null
+++ b/xfa/fx/test_case_0016/test_summary.txt
@@ -0,0 +1,15 @@
+-Test process
+
+1. Test program checks the first checkbox
+
+2. Test program checks the second checkbox
+
+3. Test program checks the fifth checkbox
+
+-Pass condition
+
+1. The test program verifies the output image equals the input test image in every pixel
+
+-Test purpose
+
+1. This test aims to test XFA document being rendered correctly.
diff --git a/xfa/fx/test_case_0017/Test_DateField_locale_en_CA.pdf b/xfa/fx/test_case_0017/Test_DateField_locale_en_CA.pdf
new file mode 100644
index 0000000..84c33e1
--- /dev/null
+++ b/xfa/fx/test_case_0017/Test_DateField_locale_en_CA.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0017/Test_DateField_locale_en_CA_expected.pdf.0.png b/xfa/fx/test_case_0017/Test_DateField_locale_en_CA_expected.pdf.0.png
new file mode 100644
index 0000000..9e84435
--- /dev/null
+++ b/xfa/fx/test_case_0017/Test_DateField_locale_en_CA_expected.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0017/test_summary.txt b/xfa/fx/test_case_0017/test_summary.txt
new file mode 100644
index 0000000..0cbbeef
--- /dev/null
+++ b/xfa/fx/test_case_0017/test_summary.txt
@@ -0,0 +1,15 @@
+-Test process
+
+1. Test program runs.
+
+-Pass condition
+
+1. Test program verifies first text field contains the current system date.
+
+AND
+
+2. Test program verifies the second line contains the current system date in text
+
+-Test purpose
+
+1. The timing logic is implemented by Adobe FormCalc script(described in Adobe FormCalc User Reference). This test aims to test Pdfium core’s correct interpretation of FormCalc script.
diff --git a/xfa/fx/test_case_0018/Test_DateField_locale_en_GB.pdf b/xfa/fx/test_case_0018/Test_DateField_locale_en_GB.pdf
new file mode 100644
index 0000000..08ee8d9
--- /dev/null
+++ b/xfa/fx/test_case_0018/Test_DateField_locale_en_GB.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0018/Test_DateField_locale_en_GB_expected.pdf.0.png b/xfa/fx/test_case_0018/Test_DateField_locale_en_GB_expected.pdf.0.png
new file mode 100644
index 0000000..d4ab70a
--- /dev/null
+++ b/xfa/fx/test_case_0018/Test_DateField_locale_en_GB_expected.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0018/test_summary.txt b/xfa/fx/test_case_0018/test_summary.txt
new file mode 100644
index 0000000..b159f88
--- /dev/null
+++ b/xfa/fx/test_case_0018/test_summary.txt
@@ -0,0 +1,15 @@
+-Test process
+
+1. Test program runs.
+
+-Pass condition
+
+1. Test program verifies first text field contains the current system date.
+
+AND
+
+2. Test program verifies the second line contains the current system date in text
+
+-Test purpose
+
+1. This document is under the locale of en-GB. The timing logic is implemented by Adobe FormCalc script(described in Adobe FormCalc User Reference). This test aims to test Pdfium core’s correct interpretation of FormCalc script.
diff --git a/xfa/fx/test_case_0019/Test_DateField_locale_en_US.pdf b/xfa/fx/test_case_0019/Test_DateField_locale_en_US.pdf
new file mode 100644
index 0000000..8f7cca0
--- /dev/null
+++ b/xfa/fx/test_case_0019/Test_DateField_locale_en_US.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0019/Test_DateField_locale_en_US_expected.pdf.0.png b/xfa/fx/test_case_0019/Test_DateField_locale_en_US_expected.pdf.0.png
new file mode 100644
index 0000000..f774e5b
--- /dev/null
+++ b/xfa/fx/test_case_0019/Test_DateField_locale_en_US_expected.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0019/test_summary.txt b/xfa/fx/test_case_0019/test_summary.txt
new file mode 100644
index 0000000..de32578
--- /dev/null
+++ b/xfa/fx/test_case_0019/test_summary.txt
@@ -0,0 +1,15 @@
+-Test process
+
+1. Test program runs.
+
+-Pass condition
+
+1. Test program verifies first text field contains the current system date.
+
+AND
+
+2. Test program verifies the second line contains the current system date in text
+
+-Test purpose
+
+1. This document is under the locale of en-US. The timing logic is implemented by Adobe FormCalc script(described in Adobe FormCalc User Reference). This test aims to test Pdfium core’s correct interpretation of FormCalc script.
diff --git a/xfa/fx/test_case_0020/Test_DateField_locale_fr_CA.pdf b/xfa/fx/test_case_0020/Test_DateField_locale_fr_CA.pdf
new file mode 100644
index 0000000..5f0699a
--- /dev/null
+++ b/xfa/fx/test_case_0020/Test_DateField_locale_fr_CA.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0020/Test_DateField_locale_fr_CA_expected.pdf.0.png b/xfa/fx/test_case_0020/Test_DateField_locale_fr_CA_expected.pdf.0.png
new file mode 100644
index 0000000..9b3b1af
--- /dev/null
+++ b/xfa/fx/test_case_0020/Test_DateField_locale_fr_CA_expected.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0020/test_summary.txt b/xfa/fx/test_case_0020/test_summary.txt
new file mode 100644
index 0000000..e8e72bd
--- /dev/null
+++ b/xfa/fx/test_case_0020/test_summary.txt
@@ -0,0 +1,15 @@
+-Test process
+
+1. Test program runs.
+
+-Pass condition
+
+1. Test program verifies first text field contains the current system date.
+
+AND
+
+2. Test program verifies the second line contains the current system date in text
+
+-Test purpose
+
+1. This document is under the locale of fr-CA. The timing logic is implemented by Adobe FormCalc script(described in Adobe FormCalc User Reference). This test aims to test Pdfium core’s correct interpretation of FormCalc script.
diff --git a/xfa/fx/test_case_0021/Test_DateField_locale_fr_FR.pdf b/xfa/fx/test_case_0021/Test_DateField_locale_fr_FR.pdf
new file mode 100644
index 0000000..8bc8c26
--- /dev/null
+++ b/xfa/fx/test_case_0021/Test_DateField_locale_fr_FR.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0021/Test_DateField_locale_fr_FR_expected.pdf.0.png b/xfa/fx/test_case_0021/Test_DateField_locale_fr_FR_expected.pdf.0.png
new file mode 100644
index 0000000..0b9177a
--- /dev/null
+++ b/xfa/fx/test_case_0021/Test_DateField_locale_fr_FR_expected.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0021/test_summary.txt b/xfa/fx/test_case_0021/test_summary.txt
new file mode 100644
index 0000000..407ae60
--- /dev/null
+++ b/xfa/fx/test_case_0021/test_summary.txt
@@ -0,0 +1,15 @@
+-Test process
+
+1. Test program runs.
+
+-Pass condition
+
+1. Test program verifies first text field contains the current system date.
+
+AND
+
+2. Test program verifies the second line contains the current system date in text
+
+-Test purpose
+
+1. This document is under the locale of fr-FR. The timing logic is implemented by Adobe FormCalc script(described in Adobe FormCalc User Reference). This test aims to test Pdfium core’s correct interpretation of FormCalc script.
diff --git a/xfa/fx/test_case_0022/Test_DateField_locale_nl_NL.pdf b/xfa/fx/test_case_0022/Test_DateField_locale_nl_NL.pdf
new file mode 100644
index 0000000..46b14b1
--- /dev/null
+++ b/xfa/fx/test_case_0022/Test_DateField_locale_nl_NL.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0022/Test_DateField_locale_nl_NL_expected.pdf.0.png b/xfa/fx/test_case_0022/Test_DateField_locale_nl_NL_expected.pdf.0.png
new file mode 100644
index 0000000..eb26783
--- /dev/null
+++ b/xfa/fx/test_case_0022/Test_DateField_locale_nl_NL_expected.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0022/test_summary.txt b/xfa/fx/test_case_0022/test_summary.txt
new file mode 100644
index 0000000..7b9f9ae
--- /dev/null
+++ b/xfa/fx/test_case_0022/test_summary.txt
@@ -0,0 +1,15 @@
+-Test process
+
+1. Test program runs.
+
+-Pass condition
+
+1. Test program verifies first text field contains the current system date.
+
+AND
+
+2. Test program verifies the second line contains the current system date in text
+
+-Test purpose
+
+1. This document is under the locale of nl-NL. The timing logic is implemented by Adobe FormCalc script(described in Adobe FormCalc User Reference). This test aims to test Pdfium core’s correct interpretation of FormCalc script.
diff --git a/xfa/fx/test_case_0023/Test_DateField_locale_zh_CN.pdf b/xfa/fx/test_case_0023/Test_DateField_locale_zh_CN.pdf
new file mode 100644
index 0000000..02fe393
--- /dev/null
+++ b/xfa/fx/test_case_0023/Test_DateField_locale_zh_CN.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0023/Test_DateField_locale_zh_CN_expected.pdf.0.png b/xfa/fx/test_case_0023/Test_DateField_locale_zh_CN_expected.pdf.0.png
new file mode 100644
index 0000000..d059760
--- /dev/null
+++ b/xfa/fx/test_case_0023/Test_DateField_locale_zh_CN_expected.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0023/test_summary.txt b/xfa/fx/test_case_0023/test_summary.txt
new file mode 100644
index 0000000..29c1ba0
--- /dev/null
+++ b/xfa/fx/test_case_0023/test_summary.txt
@@ -0,0 +1,15 @@
+-Test process
+
+1. Test program runs.
+
+-Pass condition
+
+1. Test program verifies first text field contains the current system date.
+
+AND
+
+2. Test program verifies the second line contains the current system date in text
+
+-Test purpose
+
+1. This document is under the locale of zh-CN. The timing logic is implemented by Adobe FormCalc script(described in Adobe FormCalc User Reference). This test aims to test Pdfium core’s correct interpretation of FormCalc script.
diff --git a/xfa/fx/test_case_0024/Test_DateField_locale_zh_HK.pdf b/xfa/fx/test_case_0024/Test_DateField_locale_zh_HK.pdf
new file mode 100644
index 0000000..c83b0b7
--- /dev/null
+++ b/xfa/fx/test_case_0024/Test_DateField_locale_zh_HK.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0024/Test_DateField_locale_zh_HK_expected.pdf.0.png b/xfa/fx/test_case_0024/Test_DateField_locale_zh_HK_expected.pdf.0.png
new file mode 100644
index 0000000..9093762
--- /dev/null
+++ b/xfa/fx/test_case_0024/Test_DateField_locale_zh_HK_expected.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0024/test_summary.txt b/xfa/fx/test_case_0024/test_summary.txt
new file mode 100644
index 0000000..37e25bb
--- /dev/null
+++ b/xfa/fx/test_case_0024/test_summary.txt
@@ -0,0 +1,15 @@
+-Test process
+
+1. Test program runs.
+
+-Pass condition
+
+1. Test program verifies first text field contains the current system date.
+
+AND
+
+2. Test program verifies the second line contains the current system date in text
+
+-Test purpose
+
+1. This document is under the locale of zh-HK. The timing logic is implemented by Adobe FormCalc script(described in Adobe FormCalc User Reference). This test aims to test Pdfium core’s correct interpretation of FormCalc script.
diff --git a/xfa/fx/test_case_0025/Test_Drop_downList.pdf b/xfa/fx/test_case_0025/Test_Drop_downList.pdf
new file mode 100644
index 0000000..2a123ff
--- /dev/null
+++ b/xfa/fx/test_case_0025/Test_Drop_downList.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0025/Test_Drop_downList_expected.pdf.0.png b/xfa/fx/test_case_0025/Test_Drop_downList_expected.pdf.0.png
new file mode 100644
index 0000000..54d68b7
--- /dev/null
+++ b/xfa/fx/test_case_0025/Test_Drop_downList_expected.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0025/test_summary.txt b/xfa/fx/test_case_0025/test_summary.txt
new file mode 100644
index 0000000..363d35c
--- /dev/null
+++ b/xfa/fx/test_case_0025/test_summary.txt
@@ -0,0 +1,11 @@
+-Test process
+
+1. Test program runs.
+
+-Pass condition
+
+1. Test program verifies first dropdown box contains the current system country.
+
+-Test purpose
+
+1. The country detection logic is implemented by Adobe FormCalc script(described in Adobe FormCalc User Reference). This test aims to test Pdfium core’s correct interpretation of FormCalc script.
diff --git a/xfa/fx/test_case_0026/Test_NumericField.pdf b/xfa/fx/test_case_0026/Test_NumericField.pdf
new file mode 100644
index 0000000..a011c07
--- /dev/null
+++ b/xfa/fx/test_case_0026/Test_NumericField.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0026/Test_NumericField_expected.pdf.0.png b/xfa/fx/test_case_0026/Test_NumericField_expected.pdf.0.png
new file mode 100644
index 0000000..d4703f9
--- /dev/null
+++ b/xfa/fx/test_case_0026/Test_NumericField_expected.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0026/test_summary.txt b/xfa/fx/test_case_0026/test_summary.txt
new file mode 100644
index 0000000..8111e64
--- /dev/null
+++ b/xfa/fx/test_case_0026/test_summary.txt
@@ -0,0 +1,15 @@
+-Test process
+
+1. Test program inputs 6.66 to the first text field.
+
+-Pass condition
+
+1. Test program verifies first text field contains the value of 6.66
+
+AND
+
+2. Test program verifies output image equals the input test image in every pixel.
+
+-Test purpose
+
+1. This test aims to test XFA widget's correct rendering of the double value.
diff --git a/xfa/fx/test_case_0027/Test_PasswordField.pdf b/xfa/fx/test_case_0027/Test_PasswordField.pdf
new file mode 100644
index 0000000..74a8c21
--- /dev/null
+++ b/xfa/fx/test_case_0027/Test_PasswordField.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0027/Test_PasswordField_expected.pdf.0.png b/xfa/fx/test_case_0027/Test_PasswordField_expected.pdf.0.png
new file mode 100644
index 0000000..b6cc604
--- /dev/null
+++ b/xfa/fx/test_case_0027/Test_PasswordField_expected.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0027/test_summary.txt b/xfa/fx/test_case_0027/test_summary.txt
new file mode 100644
index 0000000..d4ca16e
--- /dev/null
+++ b/xfa/fx/test_case_0027/test_summary.txt
@@ -0,0 +1,15 @@
+-Test process
+
+1. Test program enters 123 into the password field
+
+-Pass condition
+
+1. Test program verifies the second field contains 123 in text
+
+AND
+
+2. Test program verifies output image equals the input test image in every pixel.
+
+-Test purpose
+
+1. The password widget is implemented by Adobe FormCalc script(described in Adobe FormCalc User Reference). This test aims to test Pdfium core’s correct interpretation of FormCalc script.
diff --git a/xfa/fx/test_case_0028/Test_RadioButton.pdf b/xfa/fx/test_case_0028/Test_RadioButton.pdf
new file mode 100644
index 0000000..3c44ca0
--- /dev/null
+++ b/xfa/fx/test_case_0028/Test_RadioButton.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0028/Test_RadioButton_expected.pdf.0.png b/xfa/fx/test_case_0028/Test_RadioButton_expected.pdf.0.png
new file mode 100644
index 0000000..b4d7752
--- /dev/null
+++ b/xfa/fx/test_case_0028/Test_RadioButton_expected.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0028/test_summary.txt b/xfa/fx/test_case_0028/test_summary.txt
new file mode 100644
index 0000000..3585542
--- /dev/null
+++ b/xfa/fx/test_case_0028/test_summary.txt
@@ -0,0 +1,11 @@
+-Test process
+
+1. Test program selects female
+
+-Pass condition
+
+1. Test program verifies output image equals the input test image in every pixel.
+
+-Test purpose
+
+1. The radio button widget is implemented by Adobe FormCalc script(described in Adobe FormCalc User Reference). This test aims to test Pdfium core’s correct interpretation of FormCalc script.
diff --git a/xfa/fx/test_case_0029/Test_ResetButton.pdf b/xfa/fx/test_case_0029/Test_ResetButton.pdf
new file mode 100644
index 0000000..11203ee
--- /dev/null
+++ b/xfa/fx/test_case_0029/Test_ResetButton.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0029/Test_ResetButton_expected.pdf.0.png b/xfa/fx/test_case_0029/Test_ResetButton_expected.pdf.0.png
new file mode 100644
index 0000000..d521040
--- /dev/null
+++ b/xfa/fx/test_case_0029/Test_ResetButton_expected.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0029/test_summary.txt b/xfa/fx/test_case_0029/test_summary.txt
new file mode 100644
index 0000000..101e274
--- /dev/null
+++ b/xfa/fx/test_case_0029/test_summary.txt
@@ -0,0 +1,23 @@
+-Test process
+
+1. Test program enters Mary into the first text field
+
+2. Test program enters 12 into the second text field
+
+3. Test program hits the reset button
+
+-Pass condition
+
+1. Test program verifies the first field contains Lucy
+
+AND
+
+2. Test program verifies the first field contains 19
+
+AND
+
+3. Test program verifies output image equals the input test image in every pixel.
+
+-Test purpose
+
+1. The reset logic is implemented by Adobe FormCalc script(described in Adobe FormCalc User Reference). This test aims to test Pdfium core’s correct interpretation of FormCalc script.
diff --git a/xfa/fx/test_case_0030/Test_TextField.pdf b/xfa/fx/test_case_0030/Test_TextField.pdf
new file mode 100644
index 0000000..f8140e2
--- /dev/null
+++ b/xfa/fx/test_case_0030/Test_TextField.pdf
Binary files differ
diff --git a/xfa/fx/test_case_0030/Test_TextField_expected.pdf.0.png b/xfa/fx/test_case_0030/Test_TextField_expected.pdf.0.png
new file mode 100644
index 0000000..b4500e9
--- /dev/null
+++ b/xfa/fx/test_case_0030/Test_TextField_expected.pdf.0.png
Binary files differ
diff --git a/xfa/fx/test_case_0030/test_summary.txt b/xfa/fx/test_case_0030/test_summary.txt
new file mode 100644
index 0000000..3674697
--- /dev/null
+++ b/xfa/fx/test_case_0030/test_summary.txt
@@ -0,0 +1,15 @@
+-Test process
+
+1. Test program inputs abcde into the first field.
+
+-Pass condition
+
+1. Test program verifies first text field contains abcde.
+
+AND
+
+2. Test program verifies output image equals the input test image in every pixel.
+
+-Test purpose
+
+1. This test aims to test text field's correct rendering in the XFA document.