mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Add unit-tests for PDFPageProxy.stats
(PR 9245 follow-up)
This wasn't included in PR 9245, since all the API options were still global at that time. Writing the unit-tests also uncovered an issue with `getOperatorList` not starting the "Page Request" timer.
This commit is contained in:
parent
e8b5088370
commit
74e9999044
2 changed files with 75 additions and 3 deletions
|
@ -1037,6 +1037,7 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
|
|||
lastChunk: false,
|
||||
};
|
||||
|
||||
this._stats.time('Page Request');
|
||||
this.transport.messageHandler.send('RenderPageRequest', {
|
||||
pageIndex: this.pageIndex,
|
||||
intent: renderingIntent,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue