mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Remove combineUrl
and replace it with new URL
.
This commit is contained in:
parent
e9dbb233aa
commit
a25c29d98d
5 changed files with 7 additions and 78 deletions
|
@ -1,5 +1,5 @@
|
|||
/* globals expect, it, describe, Dict, Name, Annotation, AnnotationBorderStyle,
|
||||
AnnotationBorderStyleType, AnnotationFlag, PDFJS, combineUrl,
|
||||
AnnotationBorderStyleType, AnnotationFlag, PDFJS,
|
||||
beforeEach, afterEach, stringToBytes */
|
||||
|
||||
'use strict';
|
||||
|
@ -179,8 +179,8 @@ describe('Annotation layer', function() {
|
|||
var annotations;
|
||||
|
||||
beforeEach(function(done) {
|
||||
var pdfUrl = combineUrl(window.location.href,
|
||||
'../pdfs/annotation-fileattachment.pdf');
|
||||
var pdfUrl = new URL('../pdfs/annotation-fileattachment.pdf',
|
||||
window.location).href;
|
||||
loadingTask = PDFJS.getDocument(pdfUrl);
|
||||
loadingTask.promise.then(function(pdfDocument) {
|
||||
return pdfDocument.getPage(1).then(function(pdfPage) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue