bug_361.in revision ac3d58cff7c80b0ef56bf55130d91da17cbaa3c4
1{{header}}
2{{object 1 0}} <<
3  /Type /Catalog
4  /Pages 2 0 R
5  /AcroForm 4 0 R
6  /OpenAction 10 0 R
7>>
8endobj
9{{object 2 0}} <<
10  /Type /Pages
11  /Count 1
12  /Kids [
13    3 0 R
14  ]
15>>
16endobj
17% Page number 0.
18{{object 3 0}} <<
19  /Type /Page
20  /Parent 2 0 R
21  /Resources <<
22    /Font <</F1 15 0 R>>
23  >>
24  /Contents [21 0 R]
25  /MediaBox [0 0 612 792]
26>>
27% Forms
28{{object 4 0}} <<
29  /Fields [5 0 R]
30>>
31% Field
32{{object 5 0}} <<
33 /FT /Tx
34 /T (MyField)
35>>
36% OpenAction action
37{{object 10 0}} <<
38  /Type /Action
39  /S /JavaScript
40  /JS 11 0 R
41>>
42endobj
43% JS program to exexute
44{{object 11 0}} <<
45>>
46stream
47function testField(x) {
48  var field = this.getField("MyField");
49  field.value = x;
50  var y = field.value;
51  app.alert("Answer for \"" + x + "\" is: " + typeof(y) + " " + y);
52}
53testField("goats");
54testField("b4");
55testField("b4.5");
56testField("4x");
57testField("4.5x");
58testField("4");
59testField(" 4");
60testField("4 ");
61testField("                          4                                      ");
62testField("4 3 2 1");
63testField("-4");
64testField("23.00000001");
65testField("23.00000000000000001");
66testField("25,5");
67testField("1e+5");
68testField("1e5");
69testField("1e-5");
70testField("-1e-5");
71testField("1.2e5");
72testField("NAN");
73testField("INF");
74testField("0x100");
75testField("123x6");
76testField("123xy6");
77testField("123.y6");
78testField("1,000,000");
79testField("1.2.3");
80testField("1-3");
81testField("1+3");
82testField("1.-3");
83testField("1.+3");
84endstream
85endobj
86{{xref}}
87trailer <<
88  /Root 1 0 R
89>>
90{{startxref}}
91%%EOF
92