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:
Jonas Jenwald 2018-06-25 13:19:29 +02:00
parent e8b5088370
commit 74e9999044
2 changed files with 75 additions and 3 deletions

View file

@ -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,