Browse Source

Implement "skipPages" feature for reftests

notmasteryet 14 years ago
parent
commit
91a5f73708
  1. 7
      test/driver.js
  2. 1
      test/pdfs/ibwa-bad.pdf.link
  3. 7
      test/test_manifest.json

7
test/driver.js

@ -107,6 +107,13 @@ function nextPage(task, loadError) {
} }
} }
if (task.skipPages && task.skipPages.indexOf(task.pageNum) >= 0) {
log(' skipping page ' + task.pageNum + '/' + task.pdfDoc.numPages +
'... ');
snapshotCurrentPage(task, '');
return;
}
var page = null; var page = null;
if (!failure) { if (!failure) {

1
test/pdfs/ibwa-bad.pdf.link

@ -0,0 +1 @@
http://www.bottledwater.org/public/pdf/IBWA05ModelCode_Mar2.pdf

7
test/test_manifest.json

@ -151,5 +151,12 @@
"link": true, "link": true,
"rounds": 1, "rounds": 1,
"type": "load" "type": "load"
},
{ "id": "ibwa-bad",
"file": "pdfs/ibwa-bad.pdf",
"link": true,
"rounds": 1,
"skipPages": [ 16 ],
"type": "load"
} }
] ]

Loading…
Cancel
Save