From 86587e400a1a0e1dceba1bd4641dfb7ab5dd81f1 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 18 Oct 2018 16:43:22 +0000 Subject: Add JavaScript public methods tests. Still very preliminary. Alphabetize table in .cpp file to match test. Bug: pdfium:1028 Change-Id: Ia3b646507e1a2ec384bf59893cd1d74c2a4b2456 Reviewed-on: https://pdfium-review.googlesource.com/c/43980 Commit-Queue: Tom Sepez Reviewed-by: Lei Zhang --- fxjs/cjs_publicmethods.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'fxjs') diff --git a/fxjs/cjs_publicmethods.cpp b/fxjs/cjs_publicmethods.cpp index fb65cc4098..a96cf23b0d 100644 --- a/fxjs/cjs_publicmethods.cpp +++ b/fxjs/cjs_publicmethods.cpp @@ -35,28 +35,28 @@ // static const JSMethodSpec CJS_PublicMethods::GlobalFunctionSpecs[] = { + {"AFDate_Format", AFDate_Format_static}, + {"AFDate_FormatEx", AFDate_FormatEx_static}, + {"AFDate_Keystroke", AFDate_Keystroke_static}, + {"AFDate_KeystrokeEx", AFDate_KeystrokeEx_static}, + {"AFExtractNums", AFExtractNums_static}, + {"AFMakeNumber", AFMakeNumber_static}, + {"AFMergeChange", AFMergeChange_static}, {"AFNumber_Format", AFNumber_Format_static}, {"AFNumber_Keystroke", AFNumber_Keystroke_static}, + {"AFParseDateEx", AFParseDateEx_static}, {"AFPercent_Format", AFPercent_Format_static}, {"AFPercent_Keystroke", AFPercent_Keystroke_static}, - {"AFDate_FormatEx", AFDate_FormatEx_static}, - {"AFDate_KeystrokeEx", AFDate_KeystrokeEx_static}, - {"AFDate_Format", AFDate_Format_static}, - {"AFDate_Keystroke", AFDate_Keystroke_static}, - {"AFTime_FormatEx", AFTime_FormatEx_static}, - {"AFTime_KeystrokeEx", AFTime_KeystrokeEx_static}, - {"AFTime_Format", AFTime_Format_static}, - {"AFTime_Keystroke", AFTime_Keystroke_static}, + {"AFRange_Validate", AFRange_Validate_static}, + {"AFSimple", AFSimple_static}, + {"AFSimple_Calculate", AFSimple_Calculate_static}, {"AFSpecial_Format", AFSpecial_Format_static}, {"AFSpecial_Keystroke", AFSpecial_Keystroke_static}, {"AFSpecial_KeystrokeEx", AFSpecial_KeystrokeEx_static}, - {"AFSimple", AFSimple_static}, - {"AFMakeNumber", AFMakeNumber_static}, - {"AFSimple_Calculate", AFSimple_Calculate_static}, - {"AFRange_Validate", AFRange_Validate_static}, - {"AFMergeChange", AFMergeChange_static}, - {"AFParseDateEx", AFParseDateEx_static}, - {"AFExtractNums", AFExtractNums_static}, + {"AFTime_Format", AFTime_Format_static}, + {"AFTime_FormatEx", AFTime_FormatEx_static}, + {"AFTime_Keystroke", AFTime_Keystroke_static}, + {"AFTime_KeystrokeEx", AFTime_KeystrokeEx_static}, }; namespace { -- cgit v1.2.3