Better testing for AFRange_Validate.

Change-Id: Ib61ec8e2043d851a263b28b48f512d2241a82ff5
Reviewed-on: https://pdfium-review.googlesource.com/c/44891
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
diff --git a/testing/resources/javascript/public_methods.in b/testing/resources/javascript/public_methods.in
index 61505be..548615b 100644
--- a/testing/resources/javascript/public_methods.in
+++ b/testing/resources/javascript/public_methods.in
@@ -186,7 +186,13 @@
 
       expectError(undefined, "AFRange_Validate()", undefined);
       expectError(undefined, "AFRange_Validate(1, 2, 3, 4, 5)", undefined);
-      expectEventValue("3", "AFRange_Validate(true, 2, false, 4)", "3");
+      expectEventValue("1", "AFRange_Validate(true, 2, true, 4)", "1");  // Notifies "between".
+      expectEventValue("5", "AFRange_Validate(true, 2, true, 4)", "5");  // Notifies "between".
+      expectEventValue("1", "AFRange_Validate(true, 2, false, 4)", "1");  // Notifies "greater".
+      expectEventValue("5", "AFRange_Validate(false, 2, true, 4)", "5");  // Notifies "less".
+      expectEventValue("3", "AFRange_Validate(true, 2, true, 4)", "3");   // No notification.
+      expectEventValue("1", "AFRange_Validate(false, 2, true, 4)", "1");  // No notification.
+      expectEventValue("5", "AFRange_Validate(true, 2, false, 4)", "5");  // No notification.
 
       app.alert("**********************");
 
diff --git a/testing/resources/javascript/public_methods_expected.txt b/testing/resources/javascript/public_methods_expected.txt
index 36df38c..06fb145 100644
--- a/testing/resources/javascript/public_methods_expected.txt
+++ b/testing/resources/javascript/public_methods_expected.txt
@@ -70,7 +70,17 @@
 Alert: **********************
 Alert: PASS: AFRange_Validate() threw AFRange_Validate: Incorrect number of parameters passed to function.
 Alert: PASS: AFRange_Validate(1, 2, 3, 4, 5) threw AFRange_Validate: Incorrect number of parameters passed to function.
-Alert: PASS: AFRange_Validate(true, 2, false, 4) = 3
+[icon=3,type=0]: The input value must be greater than or equal to 2 and less than or equal to 4.
+Alert: PASS: AFRange_Validate(true, 2, true, 4) = 1
+[icon=3,type=0]: The input value must be greater than or equal to 2 and less than or equal to 4.
+Alert: PASS: AFRange_Validate(true, 2, true, 4) = 5
+[icon=3,type=0]: The input value must be greater than or equal to 2.
+Alert: PASS: AFRange_Validate(true, 2, false, 4) = 1
+[icon=3,type=0]: The input value must be less than or equal to 4.
+Alert: PASS: AFRange_Validate(false, 2, true, 4) = 5
+Alert: PASS: AFRange_Validate(true, 2, true, 4) = 3
+Alert: PASS: AFRange_Validate(false, 2, true, 4) = 1
+Alert: PASS: AFRange_Validate(true, 2, false, 4) = 5
 Alert: **********************
 Alert: PASS: AFSimple() threw AFSimple: Incorrect number of parameters passed to function.
 Alert: PASS: AFSimple(1, 2, 3, 4) threw AFSimple: Incorrect number of parameters passed to function.