Implement "skipPages" feature for reftests

This commit is contained in:
notmasteryet 2011-09-24 09:44:50 -05:00
parent eca6c82bbc
commit 91a5f73708
3 changed files with 15 additions and 0 deletions

View File

@ -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;
if (!failure) {

View File

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

View File

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