mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Allow loaded progress of 0 in unit tests.
This commit is contained in:
parent
8a4be24645
commit
d762567bcf
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ describe('api', function() {
|
|||
loadingTask.promise
|
||||
];
|
||||
Promise.all(promises).then(function (data) {
|
||||
expect((data[0].loaded / data[0].total) > 0).toEqual(true);
|
||||
expect((data[0].loaded / data[0].total) >= 0).toEqual(true);
|
||||
expect(data[1] instanceof PDFDocumentProxy).toEqual(true);
|
||||
expect(loadingTask).toEqual(data[1].loadingTask);
|
||||
loadingTask.destroy().then(done);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue