Home | History | Annotate | Download | only in javascript
      1 {{header}}
      2 {{object 1 0}} <<
      3   /Type /Catalog
      4   /Pages 2 0 R
      5   /OpenAction 10 0 R
      6 >>
      7 endobj
      8 {{object 2 0}} <<
      9   /Type /Pages
     10   /Count 1
     11   /Kids [
     12     3 0 R
     13   ]
     14 >>
     15 endobj
     16 % Page number 0.
     17 {{object 3 0}} <<
     18   /Type /Page
     19   /Parent 2 0 R
     20   /Resources <<
     21     /Font <</F1 15 0 R>>
     22   >>
     23   /Contents [21 0 R]
     24   /MediaBox [0 0 612 792]
     25 >>
     26 % OpenAction action
     27 {{object 10 0}} <<
     28   /Type /Action
     29   /S /JavaScript
     30   /JS 11 0 R
     31 >>
     32 endobj
     33 % JS program to exexute
     34 {{object 11 0}} <<
     35 >>
     36 stream
     37 app.alert("This test passes if mailMsg() logs output under the test utility.");
     38 app.mailMsg(true);
     39 app.mailMsg(false, "user (a] example.com");
     40 app.mailMsg(false, "user (a] example.com", "cc (a] example.com",
     41             "bcc (a] example.com", "subject", "body");
     42 app.mailMsg({"bUI": true});
     43 app.mailMsg({"bUI": false, "cTo": "user (a] example.com"});
     44 app.mailMsg({"bUI": false,
     45              "cTo": "user (a] example.com",
     46              "cCc": "cc (a] example.com",
     47              "cBcc": "bcc (a] example.com",
     48              "cSubject": "subject",
     49              "cMsg": "body"});
     50 try {
     51   app.mailMsg();
     52 } catch (e) {
     53   app.alert("Caught expected error " + e);
     54 }
     55 try {
     56   app.mailMsg(false);
     57 } catch (e) {
     58   app.alert("Caught expected error " + e);
     59 }
     60 try {
     61   app.mailMsg({"color": "red", "size": 42});
     62 } catch (e) {
     63   app.alert("Caught expected error " + e);
     64 }
     65 endstream
     66 endobj
     67 {{xref}}
     68 trailer <<
     69   /Root 1 0 R
     70 >>
     71 {{startxref}}
     72 %%EOF
     73