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) {