OLD | NEW |
1 {{header}} | 1 {{header}} |
2 {{object 1 0}} << | 2 {{object 1 0}} << |
3 /Type /Catalog | 3 /Type /Catalog |
4 /Pages 2 0 R | 4 /Pages 2 0 R |
5 /OpenAction 10 0 R | 5 /OpenAction 10 0 R |
6 >> | 6 >> |
7 endobj | 7 endobj |
8 {{object 2 0}} << | 8 {{object 2 0}} << |
9 /Type /Pages | 9 /Type /Pages |
10 /Count 1 | 10 /Count 1 |
(...skipping 16 matching lines...) Expand all Loading... |
27 {{object 10 0}} << | 27 {{object 10 0}} << |
28 /Type /Action | 28 /Type /Action |
29 /S /JavaScript | 29 /S /JavaScript |
30 /JS 11 0 R | 30 /JS 11 0 R |
31 >> | 31 >> |
32 endobj | 32 endobj |
33 % JS program to exexute | 33 % JS program to exexute |
34 {{object 11 0}} << | 34 {{object 11 0}} << |
35 >> | 35 >> |
36 stream | 36 stream |
37 app.alert("This test passes if alert() logs output under the test utility."); | 37 app.alert("This test passes if mailMsg() logs output under the test utility."); |
38 app.alert("message", 1, 2, "title"); | 38 app.mailMsg(true); |
39 app.alert({"cMsg": "message", "cTitle": "title"}); | 39 app.mailMsg(false, "user@example.com"); |
40 app.alert({"cMsg": "message", "cTitle": "title", "nIcon": 3, "nType": 4}); | 40 app.mailMsg(false, "user@example.com", "cc@example.com", |
41 app.alert(undefined); | 41 "bcc@example.com", "subject", "body"); |
42 app.alert(null); | 42 app.mailMsg({"bUI": true}); |
43 app.alert(true); | 43 app.mailMsg({"bUI": false, "cTo": "user@example.com"}); |
44 app.alert(false); | 44 app.mailMsg({"bUI": false, |
45 app.alert(42); | 45 "cTo": "user@example.com", |
46 app.alert([1, 2, 3]); | 46 "cCc": "cc@example.com", |
47 app.alert([1, 2, {"color": "red"}]); | 47 "cBcc": "bcc@example.com", |
48 app.alert({"color": "red"}, 5, 6, "title"); | 48 "cSubject": "subject", |
| 49 "cMsg": "body"}); |
49 try { | 50 try { |
50 app.alert(); | 51 app.mailMsg(); |
51 } catch (e) { | 52 } catch (e) { |
52 app.alert("Caught expected error " + e); | 53 app.alert("Caught expected error " + e); |
53 } | 54 } |
54 try { | 55 try { |
55 app.alert({}); | 56 app.mailMsg(false); |
56 } catch (e) { | 57 } catch (e) { |
57 app.alert("Caught expected error " + e); | 58 app.alert("Caught expected error " + e); |
58 } | 59 } |
59 try { | 60 try { |
60 app.alert({"color": "red", "size": 42}); | 61 app.mailMsg({"color": "red", "size": 42}); |
61 } catch (e) { | 62 } catch (e) { |
62 app.alert("Caught expected error " + e); | 63 app.alert("Caught expected error " + e); |
63 } | 64 } |
64 endstream | 65 endstream |
65 endobj | 66 endobj |
66 {{xref}} | 67 {{xref}} |
67 trailer << | 68 trailer << |
68 /Root 1 0 R | 69 /Root 1 0 R |
69 >> | 70 >> |
70 {{startxref}} | 71 {{startxref}} |
71 %%EOF | 72 %%EOF |
OLD | NEW |