From 13115ecf2087f5db33deea16dd1c72c7b976cafd Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 25 May 2017 10:32:18 -0400 Subject: Fix FM2JSContext Round return type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This Cl fixes the return type of the Round method to return a double instead of a string. Change-Id: I740e375bdedfe22cb9f81d4beeaa079eac64b1bd Reviewed-on: https://pdfium-review.googlesource.com/5896 Commit-Queue: dsinclair Reviewed-by: Nicolás Peña --- xfa/fxfa/fm2js/cxfa_fm2jscontext_embeddertest.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'xfa/fxfa/fm2js/cxfa_fm2jscontext_embeddertest.cpp') diff --git a/xfa/fxfa/fm2js/cxfa_fm2jscontext_embeddertest.cpp b/xfa/fxfa/fm2js/cxfa_fm2jscontext_embeddertest.cpp index a61203cc0b..45f1d16e35 100644 --- a/xfa/fxfa/fm2js/cxfa_fm2jscontext_embeddertest.cpp +++ b/xfa/fxfa/fm2js/cxfa_fm2jscontext_embeddertest.cpp @@ -251,6 +251,8 @@ TEST_F(FM2JSContextEmbedderTest, Min) { const char* program; int result; } tests[] = {{"Min(234, 15, 107)", 15}, + // TODO(dsinclair): Verify with Reader; I believe this should + // have a return of 0. // {"Min(\"abc\", 15, \"Tony Blue\")", 15}, {"Min(\"abc\")", 0}}; @@ -282,7 +284,7 @@ TEST_F(FM2JSContextEmbedderTest, Mod) { } } -TEST_F(FM2JSContextEmbedderTest, DISABLED_Round) { +TEST_F(FM2JSContextEmbedderTest, Round) { ASSERT_TRUE(OpenDocument("simple_xfa.pdf")); struct { -- cgit v1.2.3