mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Utilize PDFNodeStream
to run more API unit-tests on Node.js/Travis
This commit is contained in:
parent
fd242ad2c2
commit
42c71cd99f
5 changed files with 42 additions and 13 deletions
|
@ -61,9 +61,6 @@ describe('api', function() {
|
|||
describe('PDFJS', function() {
|
||||
describe('getDocument', function() {
|
||||
it('creates pdf doc from URL', function(done) {
|
||||
if (isNodeJS()) {
|
||||
pending('XMLHttpRequest is not supported in Node.js.');
|
||||
}
|
||||
var loadingTask = getDocument(basicApiGetDocumentParams);
|
||||
|
||||
var isProgressReportedResolved = false;
|
||||
|
@ -93,9 +90,6 @@ describe('api', function() {
|
|||
});
|
||||
it('creates pdf doc from URL and aborts before worker initialized',
|
||||
function(done) {
|
||||
if (isNodeJS()) {
|
||||
pending('XMLHttpRequest is not supported in Node.js.');
|
||||
}
|
||||
var loadingTask = getDocument(basicApiGetDocumentParams);
|
||||
let destroyed = loadingTask.destroy();
|
||||
|
||||
|
@ -108,9 +102,6 @@ describe('api', function() {
|
|||
});
|
||||
it('creates pdf doc from URL and aborts loading after worker initialized',
|
||||
function(done) {
|
||||
if (isNodeJS()) {
|
||||
pending('XMLHttpRequest is not supported in Node.js.');
|
||||
}
|
||||
var loadingTask = getDocument(basicApiGetDocumentParams);
|
||||
// This can be somewhat random -- we cannot guarantee perfect
|
||||
// 'Terminate' message to the worker before/after setting up pdfManager.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue