diff options
author | Paul Gardiner <paul@glidos.net> | 2012-07-17 12:14:19 +0100 |
---|---|---|
committer | Paul Gardiner <paul@glidos.net> | 2012-07-17 12:14:19 +0100 |
commit | b5af32b46575ccc7ab92057f2dc9e76e679deb53 (patch) | |
tree | 082dd7633ae2d528584265f580f039628166eef6 /pdf | |
parent | eb8029809dfb642bdae2532aa2d959ef7f2f09c1 (diff) | |
download | mupdf-b5af32b46575ccc7ab92057f2dc9e76e679deb53.tar.xz |
Forms: implement AFDate_FormatEx
Also get javascript to use a fixed "today's" date for cluster testing
Diffstat (limited to 'pdf')
-rw-r--r-- | pdf/pdf_js.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pdf/pdf_js.c b/pdf/pdf_js.c index a80151ac..2c1029c7 100644 --- a/pdf/pdf_js.c +++ b/pdf/pdf_js.c @@ -278,6 +278,15 @@ static void declare_dom(pdf_js *js) static void preload_helpers(pdf_js *js) { + /* When testing on the cluster, redefine the Date object + * to use a fixed date */ +#ifdef CLUSTER + pdf_jsimp_execute(js->imp, +"var MuPDFOldDate = Date\n" +"Date = function() { return new MuPDFOldDate(1979,5,15); }\n" + ); +#endif + pdf_jsimp_execute(js->imp, #include "../generated/js_util.h" ); |