don't let getPage() errors break the test slave
This commit is contained in:
parent
fc0deffe0f
commit
f775f886e4
2
test.py
2
test.py
@ -87,7 +87,7 @@ class PDFTestHandler(BaseHTTPRequestHandler):
|
||||
State.remaining -= 1
|
||||
|
||||
State.done = (0 == State.remaining)
|
||||
|
||||
|
||||
|
||||
def set_up(manifestFile):
|
||||
# Only serve files from a pdf.js clone
|
||||
|
@ -83,14 +83,13 @@ function nextPage() {
|
||||
failure = '';
|
||||
log(" drawing page "+ currentTask.pageNum +"...");
|
||||
|
||||
currentPage = pdfDoc.getPage(currentTask.pageNum);
|
||||
|
||||
var ctx = canvas.getContext("2d");
|
||||
clear(ctx);
|
||||
|
||||
var fonts = [];
|
||||
var gfx = new CanvasGraphics(ctx);
|
||||
try {
|
||||
currentPage = pdfDoc.getPage(currentTask.pageNum);
|
||||
currentPage.compile(gfx, fonts);
|
||||
} catch(e) {
|
||||
failure = 'compile: '+ e.toString();
|
||||
|
Loading…
x
Reference in New Issue
Block a user