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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
d89b1947
Commit
d89b1947
authored
Apr 25, 2019
by
Winnie Hellmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use FIXTURES_PATH for loading test.pdf
parent
96ad8384
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
4 deletions
+10
-4
config/karma.config.js
config/karma.config.js
+1
-1
spec/javascripts/blob/pdf/index_spec.js
spec/javascripts/blob/pdf/index_spec.js
+3
-1
spec/javascripts/pdf/index_spec.js
spec/javascripts/pdf/index_spec.js
+3
-1
spec/javascripts/pdf/page_spec.js
spec/javascripts/pdf/page_spec.js
+3
-1
No files found.
config/karma.config.js
View file @
d89b1947
...
@@ -110,7 +110,7 @@ module.exports = function(config) {
...
@@ -110,7 +110,7 @@ module.exports = function(config) {
frameworks
:
[
'
jasmine
'
],
frameworks
:
[
'
jasmine
'
],
files
:
[
files
:
[
{
pattern
:
'
spec/javascripts/test_bundle.js
'
,
watched
:
false
},
{
pattern
:
'
spec/javascripts/test_bundle.js
'
,
watched
:
false
},
{
pattern
:
`spec/javascripts/fixtures/**/*@(.json|.html|.png|.bmpr)`
,
included
:
false
},
{
pattern
:
`spec/javascripts/fixtures/**/*@(.json|.html|.png|.bmpr
|.pdf
)`
,
included
:
false
},
],
],
preprocessors
:
{
preprocessors
:
{
'
spec/javascripts/**/*.js
'
:
[
'
webpack
'
,
'
sourcemap
'
],
'
spec/javascripts/**/*.js
'
:
[
'
webpack
'
,
'
sourcemap
'
],
...
...
spec/javascripts/blob/pdf/index_spec.js
View file @
d89b1947
import
renderPDF
from
'
~/blob/pdf
'
;
import
renderPDF
from
'
~/blob/pdf
'
;
import
testPDF
from
'
../../fixtures/blob/pdf/test.pdf
'
;
import
{
FIXTURES_PATH
}
from
'
spec/test_constants
'
;
const
testPDF
=
`
${
FIXTURES_PATH
}
/blob/pdf/test.pdf`
;
describe
(
'
PDF renderer
'
,
()
=>
{
describe
(
'
PDF renderer
'
,
()
=>
{
let
viewer
;
let
viewer
;
...
...
spec/javascripts/pdf/index_spec.js
View file @
d89b1947
...
@@ -3,7 +3,9 @@ import { GlobalWorkerOptions } from 'vendor/pdf';
...
@@ -3,7 +3,9 @@ import { GlobalWorkerOptions } from 'vendor/pdf';
import
workerSrc
from
'
vendor/pdf.worker.min
'
;
import
workerSrc
from
'
vendor/pdf.worker.min
'
;
import
PDFLab
from
'
~/pdf/index.vue
'
;
import
PDFLab
from
'
~/pdf/index.vue
'
;
import
pdf
from
'
../fixtures/blob/pdf/test.pdf
'
;
import
{
FIXTURES_PATH
}
from
'
spec/test_constants
'
;
const
pdf
=
`
${
FIXTURES_PATH
}
/blob/pdf/test.pdf`
;
GlobalWorkerOptions
.
workerSrc
=
workerSrc
;
GlobalWorkerOptions
.
workerSrc
=
workerSrc
;
const
Component
=
Vue
.
extend
(
PDFLab
);
const
Component
=
Vue
.
extend
(
PDFLab
);
...
...
spec/javascripts/pdf/page_spec.js
View file @
d89b1947
...
@@ -4,7 +4,9 @@ import workerSrc from 'vendor/pdf.worker.min';
...
@@ -4,7 +4,9 @@ import workerSrc from 'vendor/pdf.worker.min';
import
PageComponent
from
'
~/pdf/page/index.vue
'
;
import
PageComponent
from
'
~/pdf/page/index.vue
'
;
import
mountComponent
from
'
spec/helpers/vue_mount_component_helper
'
;
import
mountComponent
from
'
spec/helpers/vue_mount_component_helper
'
;
import
testPDF
from
'
spec/fixtures/blob/pdf/test.pdf
'
;
import
{
FIXTURES_PATH
}
from
'
spec/test_constants
'
;
const
testPDF
=
`
${
FIXTURES_PATH
}
/blob/pdf/test.pdf`
;
describe
(
'
Page component
'
,
()
=>
{
describe
(
'
Page component
'
,
()
=>
{
const
Component
=
Vue
.
extend
(
PageComponent
);
const
Component
=
Vue
.
extend
(
PageComponent
);
...
...
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