mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Changes to regression tests for progressive loading
This commit is contained in:
parent
ef423ef30c
commit
6b2c6fc223
9 changed files with 61 additions and 24 deletions
|
@ -292,6 +292,7 @@ var WorkerMessageHandler = {
|
|||
return;
|
||||
}
|
||||
|
||||
pdfManager.requestLoadedStream();
|
||||
pdfManager.onLoadedStream().then(function() {
|
||||
loadDocument(true).then(onSuccess, onFailure);
|
||||
});
|
||||
|
@ -430,6 +431,11 @@ var WorkerMessageHandler = {
|
|||
});
|
||||
});
|
||||
});
|
||||
|
||||
handler.on('Terminate', function wphTerminate(data, promise) {
|
||||
pdfManager.streamManager.networkManager.abortAllRequests();
|
||||
promise.resolve();
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue