• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{{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  /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>>
32endobj
33% JS program to exexute
34{{object 11 0}} <<
35>>
36stream
37app.alert("This test passes if alert() logs output under the test utility.");
38app.alert("message", 1, 2, "title");
39app.alert({"cMsg": "message", "cTitle": "title"});
40app.alert({"cMsg": "message", "cTitle": "title", "nIcon": 3, "nType": 4});
41app.alert(undefined);
42app.alert(null);
43app.alert(true);
44app.alert(false);
45app.alert(42);
46app.alert([1, 2, 3]);
47app.alert([1, 2, {"color": "red"}]);
48app.alert({"color": "red"}, 5, 6, "title");
49try {
50  app.alert();
51} catch (e) {
52  app.alert("Caught expected error " + e);
53}
54try {
55  app.alert({});
56} catch (e) {
57  app.alert("Caught expected error " + e);
58}
59try {
60  app.alert({"color": "red", "size": 42});
61} catch (e) {
62  app.alert("Caught expected error " + e);
63}
64endstream
65endobj
66{{xref}}
67trailer <<
68  /Root 1 0 R
69>>
70{{startxref}}
71%%EOF
72