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 /AcroForm 4 0 R | 5 /AcroForm 4 0 R |
6 /OpenAction 10 0 R | 6 /OpenAction 10 0 R |
7 >> | 7 >> |
8 endobj | 8 endobj |
9 {{object 2 0}} << | 9 {{object 2 0}} << |
10 /Type /Pages | 10 /Type /Pages |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 % JS program to exexute | 43 % JS program to exexute |
44 {{object 11 0}} << | 44 {{object 11 0}} << |
45 >> | 45 >> |
46 stream | 46 stream |
47 function testField(x) { | 47 function testField(x) { |
48 var field = this.getField("MyField"); | 48 var field = this.getField("MyField"); |
49 field.value = x; | 49 field.value = x; |
50 var y = field.value; | 50 var y = field.value; |
51 app.alert("Answer for \"" + x + "\" is: " + typeof(y) + " " + y); | 51 app.alert("Answer for \"" + x + "\" is: " + typeof(y) + " " + y); |
52 } | 52 } |
| 53 testField(""); |
53 testField("goats"); | 54 testField("goats"); |
54 testField("b4"); | 55 testField("b4"); |
55 testField("b4.5"); | 56 testField("b4.5"); |
56 testField("4x"); | 57 testField("4x"); |
57 testField("4.5x"); | 58 testField("4.5x"); |
| 59 testField(4); |
58 testField("4"); | 60 testField("4"); |
59 testField(" 4"); | 61 testField(" 4"); |
60 testField("4 "); | 62 testField("4 "); |
61 testField(" 4 "); | 63 testField(" 4 "); |
62 testField("4 3 2 1"); | 64 testField("4 3 2 1"); |
63 testField("-4"); | 65 testField("-4"); |
64 testField("23.00000001"); | 66 testField("23.00000001"); |
65 testField("23.00000000000000001"); | 67 testField("23.00000000000000001"); |
| 68 testField(40000000000000000000000000); |
| 69 testField("40000000000000000000000000"); |
66 testField("25,5"); | 70 testField("25,5"); |
67 testField("1e+5"); | 71 testField("1e+5"); |
68 testField("1e5"); | 72 testField("1e5"); |
69 testField("1e-5"); | 73 testField("1e-5"); |
70 testField("-1e-5"); | 74 testField("-1e-5"); |
71 testField("1.2e5"); | 75 testField("1.2e5"); |
| 76 testField(Infinity); |
| 77 testField("Infinity"); |
| 78 testField("INFINITY"); |
| 79 testField("INF"); |
| 80 testField(NaN); |
| 81 testField("NaN"); |
72 testField("NAN"); | 82 testField("NAN"); |
73 testField("INF"); | |
74 testField("0x100"); | 83 testField("0x100"); |
| 84 testField("0x100.1"); |
| 85 testField("0x100,1"); |
| 86 testField("0x100x1"); |
75 testField("123x6"); | 87 testField("123x6"); |
76 testField("123xy6"); | 88 testField("123xy6"); |
77 testField("123.y6"); | 89 testField("123.y6"); |
78 testField("1,000,000"); | 90 testField("1,000,000"); |
79 testField("1.2.3"); | 91 testField("1.2.3"); |
80 testField("1-3"); | 92 testField("1-3"); |
81 testField("1+3"); | 93 testField("1+3"); |
82 testField("1.-3"); | 94 testField("1.-3"); |
83 testField("1.+3"); | 95 testField("1.+3"); |
| 96 testField([1, 2, 3, 4]); |
| 97 testField("[1, 2, 3, 4]"); |
| 98 testField({a: 1, b: 2}); |
| 99 testField("{a: 1, b: 2}"); |
| 100 testField(function(x) { return x+1; }); |
| 101 testField("function(x) { return x+1; }"); |
84 endstream | 102 endstream |
85 endobj | 103 endobj |
86 {{xref}} | 104 {{xref}} |
87 trailer << | 105 trailer << |
88 /Root 1 0 R | 106 /Root 1 0 R |
89 >> | 107 >> |
90 {{startxref}} | 108 {{startxref}} |
91 %%EOF | 109 %%EOF |
OLD | NEW |