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 /OpenAction 10 0 R | 5 /OpenAction 10 0 R |
6 >> | 6 >> |
7 endobj | 7 endobj |
8 {{object 2 0}} << | 8 {{object 2 0}} << |
9 /Type /Pages | 9 /Type /Pages |
10 /Count 4 | 10 /Count 4 |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 // TODO(tsepez): test success cases. | 207 // TODO(tsepez): test success cases. |
208 } | 208 } |
209 | 209 |
210 function testGetPrintParams() { | 210 function testGetPrintParams() { |
211 // Method is present. | 211 // Method is present. |
212 expect('typeof this.getPrintParams', 'function'); | 212 expect('typeof this.getPrintParams', 'function'); |
213 | 213 |
214 // TODO(tsepez): test success cases. | 214 // TODO(tsepez): test success cases. |
215 } | 215 } |
216 | 216 |
| 217 function testGotoNamedDest() { |
| 218 // Method is present. |
| 219 expect('typeof this.gotoNamedDest', 'function'); |
| 220 |
| 221 // Method needs exactly one argument. |
| 222 expectError('this.gotoNamedDest()'); |
| 223 expectError('this.gotoNamedDest(1, 2)'); |
| 224 |
| 225 // TODO(tonikitoo): test success cases. |
| 226 } |
| 227 |
217 function testMailDoc() { | 228 function testMailDoc() { |
218 // Method is present. | 229 // Method is present. |
219 expect('typeof this.mailDoc', 'function'); | 230 expect('typeof this.mailDoc', 'function'); |
220 | 231 |
221 // TODO(tsepez): test with no permissions. | 232 // TODO(tsepez): test with no permissions. |
222 // TODO(tsepez): test success cases. | 233 // TODO(tsepez): test success cases. |
223 } | 234 } |
224 | 235 |
225 function testMailForm() { | 236 function testMailForm() { |
226 // Method is present. | 237 // Method is present. |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 app.alert('*** Testing Supported Methods ***'); | 307 app.alert('*** Testing Supported Methods ***'); |
297 testAddIcon(); | 308 testAddIcon(); |
298 testCalculateNow(); | 309 testCalculateNow(); |
299 testGetField(); | 310 testGetField(); |
300 testGetIcon(); | 311 testGetIcon(); |
301 testGetNthFieldName(); | 312 testGetNthFieldName(); |
302 testGetPageNthWord(); | 313 testGetPageNthWord(); |
303 testGetPageNthWordQuads(); | 314 testGetPageNthWordQuads(); |
304 testGetPageNumWords(); | 315 testGetPageNumWords(); |
305 testGetPrintParams(); | 316 testGetPrintParams(); |
| 317 testGotoNamedDest(); |
306 testMailDoc(); | 318 testMailDoc(); |
307 testMailForm(); | 319 testMailForm(); |
308 testPrint(); | 320 testPrint(); |
309 testRemoveField(); | 321 testRemoveField(); |
310 testResetForm(); | 322 testResetForm(); |
311 testSubmitForm(); | 323 testSubmitForm(); |
312 } catch (e) { | 324 } catch (e) { |
313 app.alert('FATAL: ' + e.toString()); | 325 app.alert('FATAL: ' + e.toString()); |
314 } | 326 } |
315 endstream | 327 endstream |
316 endobj | 328 endobj |
317 {{xref}} | 329 {{xref}} |
318 trailer << | 330 trailer << |
319 /Root 1 0 R | 331 /Root 1 0 R |
320 /Info 9 0 R | 332 /Info 9 0 R |
321 >> | 333 >> |
322 {{startxref}} | 334 {{startxref}} |
323 %%EOF | 335 %%EOF |
OLD | NEW |