Implement "skipPages" feature for reftests
This commit is contained in:
parent
eca6c82bbc
commit
91a5f73708
@ -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
Normal file
1
test/pdfs/ibwa-bad.pdf.link
Normal file
@ -0,0 +1 @@
|
|||||||
|
http://www.bottledwater.org/public/pdf/IBWA05ModelCode_Mar2.pdf
|
@ -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…
x
Reference in New Issue
Block a user