From 1603c7fedd7b7d5fc3a98972f30ab743c00f234d Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Wed, 24 May 2017 22:03:50 -0400 Subject: Enable the FM2JSContext Exists test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Commit-Queue: dsinclair --- xfa/fxfa/fm2js/cxfa_fm2jscontext_embeddertest.cpp | 4 ++-- 1 file 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()); } -- cgit v1.2.3