summaryrefslogtreecommitdiff
path: root/testing/resources/javascript/util_printd_expected.txt
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-03-25 10:00:11 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-25 10:00:11 -0700
commit86a61dc374e8abe351df03a1aa6665013cc39345 (patch)
tree12e70780099343259eb24730744f53900643d181 /testing/resources/javascript/util_printd_expected.txt
parent65ea3949de6536b1c122eadb4ac7828323fbc408 (diff)
downloadpdfium-86a61dc374e8abe351df03a1aa6665013cc39345.tar.xz
util.printd() replaces specified date with current date.
Added test case. Several bugs going on here: JS_LocalTime() ignoring argument and returning current time and not factoring in the time zone adjustment. Use of FXSYS_floor() silently casts result to float, losing precision required to extract minutes and seconds. Pre-existing wcsftime escapes not stripped. BUG=pdfium:413 Review URL: https://codereview.chromium.org/1833053002
Diffstat (limited to 'testing/resources/javascript/util_printd_expected.txt')
-rw-r--r--testing/resources/javascript/util_printd_expected.txt40
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/resources/javascript/util_printd_expected.txt b/testing/resources/javascript/util_printd_expected.txt
new file mode 100644
index 0000000000..47abb2fd42
--- /dev/null
+++ b/testing/resources/javascript/util_printd_expected.txt
@@ -0,0 +1,40 @@
+Alert: mm/dd/yyyy HH:MM:ss: 07/04/2014 15:59:58
+Alert: 0: D:20140704155958
+Alert: 1: 2014.07.04 15:59:58
+Alert: 2: 2014/07/04 15:59:58
+Alert: 3: Caught error: util.printd: Incorrect parameter value.
+Alert: mmmm: July
+Alert: mmm: Jul
+Alert: mm: 07
+Alert: m: 7
+Alert: dddd: Sunday
+Alert: ddd: Sun
+Alert: dd: 04
+Alert: d: 4
+Alert: yyyy: 2014
+Alert: yy: 14
+Alert: HH: 15
+Alert: H: 15
+Alert: hh: 03
+Alert: MM: 59
+Alert: M: 59
+Alert: ss: 58
+Alert: s: 58
+Alert: t: t
+Alert: abc.efg.i.kl.nopqr..uvwxyzABC.EFG.I.KL.NOPQR..UVWXYZ0123456780: abc.efg.i.kl.nopqr..uvwxyzABC.EFG.I.KL.NOPQR..UVWXYZ0123456780
+Alert: !@#$^&*()-_<>[];:~: !@#$^&*()-_<>[];:~
+Alert: %z %d %%z %%d %%%z %%%d %%% hh:MM: z 4 z 4 z 4 03:59
+Alert: :
+Alert: mm/dd/yyyy: 07/04/2014
+Alert: mm/dd/yyyy: 01/01/1850
+Alert: mm/dd/yyyy: 12/31/2525
+Alert: mm/dd/yyyy: Caught error: util.printd: The second parameter can't be converted to a Date.
+Alert: undefined: Caught error: util.printd: The second parameter can't be converted to a Date.
+Alert: mm/dd/yyyy: Caught error: util.printd: The second parameter can't be converted to a Date.
+Alert: mm/dd/yyyy: Caught error: util.printd: The second parameter can't be converted to a Date.
+Alert: mm/dd/yyyy: Caught error: util.printd: The second parameter can't be converted to a Date.
+Alert: mm/dd/yyyy: Caught error: util.printd: The second parameter can't be converted to a Date.
+Alert: [object Object]: Caught error: util.printd: Incorrect parameter type.
+Alert: clams,3: Caught error: util.printd: Incorrect parameter type.
+Alert: mm: 07
+Alert: mm: Caught error: util.printd: Operation not supported.