summaryrefslogtreecommitdiff
path: root/fxjs
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-10-18 16:43:22 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-18 16:43:22 +0000
commit86587e400a1a0e1dceba1bd4641dfb7ab5dd81f1 (patch)
treea783c9f26e75850f48083ca8671ba803b0c93b9e /fxjs
parentce4bbcfc44410bba2a2dfbbd6b5251dd3dc2137c (diff)
downloadpdfium-86587e400a1a0e1dceba1bd4641dfb7ab5dd81f1.tar.xz
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 <tsepez@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxjs')
-rw-r--r--fxjs/cjs_publicmethods.cpp30
1 files changed, 15 insertions, 15 deletions
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 {