Use better test function in CFXJSE_FormCalcContextEmbedderTest.Len.
Given the expected results are ints and not bools, use
ExecuteExpectInt32() instead of ExecuteExpectBool().
Change-Id: Id677938a9d092423a02313e8a51d5a34d6078b74
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/88670
Reviewed-by: Daniel Hosseinian <dhoss@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/fxjs/xfa/cfxjse_formcalc_context_embeddertest.cpp b/fxjs/xfa/cfxjse_formcalc_context_embeddertest.cpp
index 2887fa8..ca686af 100644
--- a/fxjs/xfa/cfxjse_formcalc_context_embeddertest.cpp
+++ b/fxjs/xfa/cfxjse_formcalc_context_embeddertest.cpp
@@ -733,9 +733,9 @@
TEST_F(CFXJSE_FormCalcContextEmbedderTest, Len) {
ASSERT_TRUE(OpenDocument("simple_xfa.pdf"));
- ExecuteExpectBool("Len(\"ABCDEFGH\")", 8);
- ExecuteExpectBool("Len(4)", 1);
- ExecuteExpectBool("Len(Str(4.532, 6, 4))", 6);
+ ExecuteExpectInt32("Len(\"ABCDEFGH\")", 8);
+ ExecuteExpectInt32("Len(4)", 1);
+ ExecuteExpectInt32("Len(Str(4.532, 6, 4))", 6);
}
TEST_F(CFXJSE_FormCalcContextEmbedderTest, Lower) {