xref: /aosp_15_r20/external/pdfium/testing/resources/javascript/constructor.in (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
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  /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
30% JS program to execute
31{{object 11 0}} <<
32  {{streamlen}}
33>>
34stream
35{{include constructor.js}}
36
37// Global objects
38testIllegalConstructor("this");
39testIllegalConstructor("globalThis");
40
41// Static objects
42testIllegalConstructor("app");
43testIllegalConstructor("event");
44testIllegalConstructor("font");
45testIllegalConstructor("global");
46testIllegalConstructor("util");
47testIllegalConstructor("style");
48testIllegalConstructor("color");
49testIllegalConstructor("border");
50testIllegalConstructor("display");
51testIllegalConstructor("console");
52testIllegalConstructor("position");
53testIllegalConstructor("highlight");
54testIllegalConstructor("zoomtype");
55testIllegalConstructor("scaleHow");
56testIllegalConstructor("scaleWhen");
57
58// Dynamic objects
59timer1 = app.setTimeOut("var marked = true", 1000);
60testLegalConstructor("timer1");
61
62endstream
63endobj
64{{xref}}
65{{trailer}}
66{{startxref}}
67%%EOF
68