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
e05d26fe
Commit
e05d26fe
authored
Aug 12, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
2a2c6006
7daf1f41
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
app/assets/javascripts/diffs/components/diff_expansion_cell.vue
...sets/javascripts/diffs/components/diff_expansion_cell.vue
+1
-1
spec/javascripts/diffs/components/diff_file_spec.js
spec/javascripts/diffs/components/diff_file_spec.js
+12
-4
No files found.
app/assets/javascripts/diffs/components/diff_expansion_cell.vue
View file @
e05d26fe
...
...
@@ -213,7 +213,7 @@ export default {
<
template
>
<td
:colspan=
"colspan"
>
<div
class=
"content"
>
<div
class=
"content
js-line-expansion-content
"
>
<a
v-if=
"canExpandUp"
v-tooltip
...
...
spec/javascripts/diffs/components/diff_file_spec.js
View file @
e05d26fe
...
...
@@ -15,8 +15,12 @@ describe('DiffFile', () => {
}).
$mount
();
});
afterEach
(()
=>
{
vm
.
$destroy
();
});
describe
(
'
template
'
,
()
=>
{
it
(
'
should render component with file header, file content components
'
,
()
=>
{
it
(
'
should render component with file header, file content components
'
,
done
=>
{
const
el
=
vm
.
$el
;
const
{
file_hash
,
file_path
}
=
vm
.
file
;
...
...
@@ -30,9 +34,13 @@ describe('DiffFile', () => {
vm
.
file
.
renderIt
=
true
;
vm
.
$nextTick
(()
=>
{
expect
(
el
.
querySelectorAll
(
'
.line_content
'
).
length
).
toBeGreaterThan
(
5
);
});
vm
.
$nextTick
()
.
then
(()
=>
{
expect
(
el
.
querySelectorAll
(
'
.line_content
'
).
length
).
toBeGreaterThanOrEqual
(
5
);
expect
(
el
.
querySelectorAll
(
'
.js-line-expansion-content
'
).
length
).
toBe
(
1
);
})
.
then
(
done
)
.
catch
(
done
.
fail
);
});
describe
(
'
collapsed
'
,
()
=>
{
...
...
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