summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordan sinclair <dsinclair@chromium.org>2017-05-24 22:03:50 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-05-25 13:59:02 +0000
commit1603c7fedd7b7d5fc3a98972f30ab743c00f234d (patch)
tree6a021afca09679906da1010d5e1caeefe52ac930
parentc11bf4882a8bd7f0f611650cbd5b6bb69f31b9a4 (diff)
downloadpdfium-1603c7fedd7b7d5fc3a98972f30ab743c00f234d.tar.xz
Enable the FM2JSContext Exists test
This Cl fixes the Exists test of FM2JSContext to handle the return type of Integer instead of Boolean. Change-Id: I51c43e22eff5330de5ab5e63a925006af483f0ab Reviewed-on: https://pdfium-review.googlesource.com/5894 Reviewed-by: Nicolás Peña <npm@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
-rw-r--r--xfa/fxfa/fm2js/cxfa_fm2jscontext_embeddertest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fxfa/fm2js/cxfa_fm2jscontext_embeddertest.cpp b/xfa/fxfa/fm2js/cxfa_fm2jscontext_embeddertest.cpp
index a30a81742e..d0d657ee50 100644
--- a/xfa/fxfa/fm2js/cxfa_fm2jscontext_embeddertest.cpp
+++ b/xfa/fxfa/fm2js/cxfa_fm2jscontext_embeddertest.cpp
@@ -820,12 +820,12 @@ TEST_F(FM2JSContextEmbedderTest, Choose) {
}
}
-TEST_F(FM2JSContextEmbedderTest, DISABLED_Exists) {
+TEST_F(FM2JSContextEmbedderTest, Exists) {
ASSERT_TRUE(OpenDocument("simple_xfa.pdf"));
EXPECT_TRUE(Execute("Exists(\"hello world\")"));
CFXJSE_Value* value = GetValue();
- EXPECT_TRUE(value->IsBoolean());
+ EXPECT_TRUE(value->IsInteger());
EXPECT_FALSE(value->ToBoolean());
}