| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 expect('typeof this.getAnnot', 'function'); | 140 expect('typeof this.getAnnot', 'function'); |
| 141 | 141 |
| 142 // Method needs two arguments. | 142 // Method needs two arguments. |
| 143 expectError('this.getAnnot()'); | 143 expectError('this.getAnnot()'); |
| 144 expectError('this.getAnnot(0)'); | 144 expectError('this.getAnnot(0)'); |
| 145 expectError('this.getAnnot(0, "test", 0)'); | 145 expectError('this.getAnnot(0, "test", 0)'); |
| 146 | 146 |
| 147 // TODO(tonikitoo): test success cases. | 147 // TODO(tonikitoo): test success cases. |
| 148 } | 148 } |
| 149 | 149 |
| 150 function testGetAnnots() { |
| 151 // Method is present. |
| 152 expect('typeof this.getAnnots', 'function'); |
| 153 |
| 154 // TODO(tonikitoo): test success cases. |
| 155 } |
| 156 |
| 150 function testGetField() { | 157 function testGetField() { |
| 151 // Method is present. | 158 // Method is present. |
| 152 expect('typeof this.getField', 'function'); | 159 expect('typeof this.getField', 'function'); |
| 153 | 160 |
| 154 // Method needs at least one argument. | 161 // Method needs at least one argument. |
| 155 expectError('this.getField()'); | 162 expectError('this.getField()'); |
| 156 | 163 |
| 157 // TODO(tsepez): test success cases. | 164 // TODO(tsepez): test success cases. |
| 158 } | 165 } |
| 159 | 166 |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 testUnsupported('this.addField'); | 302 testUnsupported('this.addField'); |
| 296 testUnsupported('this.addLink'); | 303 testUnsupported('this.addLink'); |
| 297 testUnsupported('this.closeDoc'); | 304 testUnsupported('this.closeDoc'); |
| 298 testUnsupported('this.createDataObject'); | 305 testUnsupported('this.createDataObject'); |
| 299 testUnsupported('this.deletePages'); | 306 testUnsupported('this.deletePages'); |
| 300 testUnsupported('this.exportAsFDF'); | 307 testUnsupported('this.exportAsFDF'); |
| 301 testUnsupported('this.exportAsText'); | 308 testUnsupported('this.exportAsText'); |
| 302 testUnsupported('this.exportAsXFDF'); | 309 testUnsupported('this.exportAsXFDF'); |
| 303 testUnsupported('this.extractPages'); | 310 testUnsupported('this.extractPages'); |
| 304 testUnsupported('this.getAnnot3D'); | 311 testUnsupported('this.getAnnot3D'); |
| 305 testUnsupported('this.getAnnots'); | |
| 306 testUnsupported('this.getLinks'); | 312 testUnsupported('this.getLinks'); |
| 307 testUnsupported('this.getOCGs'); | 313 testUnsupported('this.getOCGs'); |
| 308 testUnsupported('this.getPageBox'); | 314 testUnsupported('this.getPageBox'); |
| 309 testUnsupported('this.getURL'); | 315 testUnsupported('this.getURL'); |
| 310 testUnsupported('this.importAnFDF'); | 316 testUnsupported('this.importAnFDF'); |
| 311 testUnsupported('this.importAnXFDF'); | 317 testUnsupported('this.importAnXFDF'); |
| 312 testUnsupported('this.importTextData'); | 318 testUnsupported('this.importTextData'); |
| 313 testUnsupported('this.insertPages'); | 319 testUnsupported('this.insertPages'); |
| 314 testUnsupported('this.removeIcon'); | 320 testUnsupported('this.removeIcon'); |
| 315 testUnsupported('this.replacePages'); | 321 testUnsupported('this.replacePages'); |
| 316 testUnsupported('this.saveAs'); | 322 testUnsupported('this.saveAs'); |
| 317 testUnsupported('this.syncAnnotScan'); | 323 testUnsupported('this.syncAnnotScan'); |
| 318 | 324 |
| 319 app.alert('*** Testing Supported Methods ***'); | 325 app.alert('*** Testing Supported Methods ***'); |
| 320 testAddIcon(); | 326 testAddIcon(); |
| 321 testCalculateNow(); | 327 testCalculateNow(); |
| 322 testGetAnnot(); | 328 testGetAnnot(); |
| 329 testGetAnnots(); |
| 323 testGetField(); | 330 testGetField(); |
| 324 testGetIcon(); | 331 testGetIcon(); |
| 325 testGetNthFieldName(); | 332 testGetNthFieldName(); |
| 326 testGetPageNthWord(); | 333 testGetPageNthWord(); |
| 327 testGetPageNthWordQuads(); | 334 testGetPageNthWordQuads(); |
| 328 testGetPageNumWords(); | 335 testGetPageNumWords(); |
| 329 testGetPrintParams(); | 336 testGetPrintParams(); |
| 330 testGotoNamedDest(); | 337 testGotoNamedDest(); |
| 331 testMailDoc(); | 338 testMailDoc(); |
| 332 testMailForm(); | 339 testMailForm(); |
| 333 testPrint(); | 340 testPrint(); |
| 334 testRemoveField(); | 341 testRemoveField(); |
| 335 testResetForm(); | 342 testResetForm(); |
| 336 testSubmitForm(); | 343 testSubmitForm(); |
| 337 } catch (e) { | 344 } catch (e) { |
| 338 app.alert('FATAL: ' + e.toString()); | 345 app.alert('FATAL: ' + e.toString()); |
| 339 } | 346 } |
| 340 endstream | 347 endstream |
| 341 endobj | 348 endobj |
| 342 {{xref}} | 349 {{xref}} |
| 343 trailer << | 350 trailer << |
| 344 /Root 1 0 R | 351 /Root 1 0 R |
| 345 /Info 9 0 R | 352 /Info 9 0 R |
| 346 >> | 353 >> |
| 347 {{startxref}} | 354 {{startxref}} |
| 348 %%EOF | 355 %%EOF |
| OLD | NEW |