blob: 344aacdc503e0c42ee7357d249e8a060cce231fd [file] [log] [blame]
Haibo Huang49cc9302020-04-27 16:14:24 -07001{{header}}
2{{object 1 0}} <<
3 /Type /Catalog
4 /Pages 2 0 R
5 /OpenAction 10 0 R
6>>
7endobj
8{{object 2 0}} <<
9 /Type /Pages
10 /Count 1
11 /Kids [
12 3 0 R
13 ]
14>>
15endobj
16% Page number 0.
17{{object 3 0}} <<
18 /Type /Page
19 /Parent 2 0 R
20 /MediaBox [0 0 612 792]
21>>
22endobj
23% OpenAction action
24{{object 10 0}} <<
25 /Type /Action
26 /S /JavaScript
27 /JS 11 0 R
28>>
29endobj
kumarashishg826308d2023-06-23 13:21:22 +000030% JS program to execute
Haibo Huang49cc9302020-04-27 16:14:24 -070031{{object 11 0}} <<
32 {{streamlen}}
33>>
34stream
35{{include expect.js}}
36
37try {
38 const tuesday = "Tue, 20 Dec 2016 21:48:50 GMT";
39 const friday = "Fri, 09 May 2014 11:22:03 GMT";
40 expectError("util.scand()");
41 expectError("util.scand('12/20/2016')");
42 expect("util.scand('mm/dd/yyyy', '12/20/2016').toUTCString()", tuesday);
43 expect("util.scand('dd/mm/yyyy', '20/12/2016').toUTCString()", tuesday);
44 expect("util.scand('yyyy/mm/dd', '2016/12/20').toUTCString()", tuesday);
45 expect("util.scand('dd/mmm/yyyy', '20/Dec/2016').toUTCString()", tuesday);
46 expect("util.scand('..dd:-:mmm/yyyy', '**20/*/Dec.2016').toUTCString()", tuesday);
47 expect("util.scand('hh:MM:ss', '11:22:03').toUTCString()", friday);
48 expect("util.scand('s:MM:hh', '3:22:11').toUTCString()", friday);
49} catch (e) {
50 app.alert("Truly unexpected error: " + e);
51}
52endstream
53endobj
54{{xref}}
55{{trailer}}
56{{startxref}}
57%%EOF