mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
[api-minor] Allow specifying an extra-delay, in RenderTask.cancel
, for worker-thread aborting of operatorList parsing
This is done to support upcoming viewer-changes, and in order to prevent third-party users from outright breaking things we'll simply ignore too large values.
This commit is contained in:
parent
e182597cb1
commit
91524d1a60
3 changed files with 20 additions and 6 deletions
|
@ -2870,6 +2870,7 @@ Caron Broadcasting, Inc., an Ohio corporation (“Lessee”).`)
|
|||
expect(reason instanceof RenderingCancelledException).toEqual(true);
|
||||
expect(reason.message).toEqual("Rendering cancelled, page 1");
|
||||
expect(reason.type).toEqual("canvas");
|
||||
expect(reason.extraDelay).toEqual(0);
|
||||
}
|
||||
|
||||
CanvasFactory.destroy(canvasAndCtx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue