Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2b8b6b0f
Commit
2b8b6b0f
authored
Jul 30, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
f2c2c912
d93da888
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
5 deletions
+11
-5
app/assets/javascripts/pdf/index.vue
app/assets/javascripts/pdf/index.vue
+1
-1
app/assets/javascripts/pdf/page/index.vue
app/assets/javascripts/pdf/page/index.vue
+2
-2
changelogs/unreleased/sh-remove-pdfjs-deprecations.yml
changelogs/unreleased/sh-remove-pdfjs-deprecations.yml
+5
-0
spec/javascripts/pdf/page_spec.js
spec/javascripts/pdf/page_spec.js
+3
-2
No files found.
app/assets/javascripts/pdf/index.vue
View file @
2b8b6b0f
...
...
@@ -39,7 +39,7 @@ export default {
cMapUrl
:
'
/assets/webpack/cmaps/
'
,
cMapPacked
:
true
,
})
.
then
(
this
.
renderPages
)
.
promise
.
then
(
this
.
renderPages
)
.
then
(
pages
=>
{
this
.
pages
=
pages
;
this
.
$emit
(
'
pdflabload
'
);
...
...
app/assets/javascripts/pdf/page/index.vue
View file @
2b8b6b0f
...
...
@@ -18,7 +18,7 @@ export default {
},
computed
:
{
viewport
()
{
return
this
.
page
.
getViewport
(
this
.
scale
);
return
this
.
page
.
getViewport
(
{
scale
:
this
.
scale
}
);
},
context
()
{
return
this
.
$refs
.
canvas
.
getContext
(
'
2d
'
);
...
...
@@ -36,7 +36,7 @@ export default {
this
.
rendering
=
true
;
this
.
page
.
render
(
this
.
renderContext
)
.
then
(()
=>
{
.
promise
.
then
(()
=>
{
this
.
rendering
=
false
;
})
.
catch
(
error
=>
{
...
...
changelogs/unreleased/sh-remove-pdfjs-deprecations.yml
0 → 100644
View file @
2b8b6b0f
---
title
:
Remove pdf.js deprecation warnings
merge_request
:
31253
author
:
type
:
fixed
spec/javascripts/pdf/page_spec.js
View file @
2b8b6b0f
...
...
@@ -17,7 +17,7 @@ describe('Page component', () => {
pdfjsLib
.
GlobalWorkerOptions
.
workerSrc
=
workerSrc
;
pdfjsLib
.
getDocument
(
testPDF
)
.
then
(
pdf
=>
pdf
.
getPage
(
1
))
.
promise
.
then
(
pdf
=>
pdf
.
getPage
(
1
))
.
then
(
page
=>
{
testPage
=
page
;
})
...
...
@@ -31,7 +31,8 @@ describe('Page component', () => {
it
(
'
renders the page when mounting
'
,
done
=>
{
const
promise
=
Promise
.
resolve
();
spyOn
(
testPage
,
'
render
'
).
and
.
callFake
(()
=>
promise
);
spyOn
(
testPage
,
'
render
'
).
and
.
returnValue
({
promise
});
vm
=
mountComponent
(
Component
,
{
page
:
testPage
,
number
:
1
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment