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
949160e3
Commit
949160e3
authored
Apr 19, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed collapsed & toggle collapsed specs
parent
29b396b4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
108 deletions
+0
-108
app/assets/javascripts/ide/components/ide_context_bar.vue
app/assets/javascripts/ide/components/ide_context_bar.vue
+0
-42
spec/javascripts/ide/components/commit_sidebar/list_spec.js
spec/javascripts/ide/components/commit_sidebar/list_spec.js
+0
-29
spec/javascripts/ide/components/ide_context_bar_spec.js
spec/javascripts/ide/components/ide_context_bar_spec.js
+0
-37
No files found.
app/assets/javascripts/ide/components/ide_context_bar.vue
deleted
100644 → 0
View file @
29b396b4
<
script
>
import
icon
from
'
~/vue_shared/components/icon.vue
'
;
import
panelResizer
from
'
~/vue_shared/components/panel_resizer.vue
'
;
import
repoCommitSection
from
'
./repo_commit_section.vue
'
;
import
ResizablePanel
from
'
./resizable_panel.vue
'
;
export
default
{
components
:
{
repoCommitSection
,
icon
,
panelResizer
,
ResizablePanel
,
},
props
:
{
noChangesStateSvgPath
:
{
type
:
String
,
required
:
true
,
},
committedStateSvgPath
:
{
type
:
String
,
required
:
true
,
},
},
};
</
script
>
<
template
>
<resizable-panel
:collapsible=
"true"
:initial-width=
"340"
side=
"right"
>
<div
class=
"multi-file-commit-panel-section"
>
<repo-commit-section
:no-changes-state-svg-path=
"noChangesStateSvgPath"
:committed-state-svg-path=
"committedStateSvgPath"
/>
</div>
</resizable-panel>
</
template
>
spec/javascripts/ide/components/commit_sidebar/list_spec.js
View file @
949160e3
...
...
@@ -50,35 +50,6 @@ describe('Multi-file editor commit sidebar list', () => {
});
});
describe
(
'
collapsed
'
,
()
=>
{
beforeEach
(
done
=>
{
vm
.
$store
.
state
.
rightPanelCollapsed
=
true
;
Vue
.
nextTick
(
done
);
});
it
(
'
hides list
'
,
()
=>
{
expect
(
vm
.
$el
.
querySelector
(
'
.list-unstyled
'
)).
toBeNull
();
expect
(
vm
.
$el
.
querySelector
(
'
.help-block
'
)).
toBeNull
();
});
});
describe
(
'
with toggle
'
,
()
=>
{
beforeEach
(
done
=>
{
spyOn
(
vm
,
'
toggleRightPanelCollapsed
'
);
vm
.
showToggle
=
true
;
Vue
.
nextTick
(
done
);
});
it
(
'
calls setPanelCollapsedStatus when clickin toggle
'
,
()
=>
{
vm
.
$el
.
querySelector
(
'
.multi-file-commit-panel-collapse-btn
'
).
click
();
expect
(
vm
.
toggleRightPanelCollapsed
).
toHaveBeenCalled
();
});
});
describe
(
'
action button
'
,
()
=>
{
beforeEach
(()
=>
{
spyOn
(
vm
,
'
stageAllChanges
'
);
...
...
spec/javascripts/ide/components/ide_context_bar_spec.js
deleted
100644 → 0
View file @
29b396b4
import
Vue
from
'
vue
'
;
import
store
from
'
~/ide/stores
'
;
import
ideContextBar
from
'
~/ide/components/ide_context_bar.vue
'
;
import
{
createComponentWithStore
}
from
'
spec/helpers/vue_mount_component_helper
'
;
describe
(
'
Multi-file editor right context bar
'
,
()
=>
{
let
vm
;
beforeEach
(()
=>
{
const
Component
=
Vue
.
extend
(
ideContextBar
);
vm
=
createComponentWithStore
(
Component
,
store
,
{
noChangesStateSvgPath
:
'
svg
'
,
committedStateSvgPath
:
'
svg
'
,
});
vm
.
$store
.
state
.
rightPanelCollapsed
=
false
;
vm
.
$mount
();
});
afterEach
(()
=>
{
vm
.
$destroy
();
});
describe
(
'
collapsed
'
,
()
=>
{
beforeEach
(
done
=>
{
vm
.
$store
.
state
.
rightPanelCollapsed
=
true
;
Vue
.
nextTick
(
done
);
});
it
(
'
adds collapsed class
'
,
()
=>
{
expect
(
vm
.
$el
.
querySelector
(
'
.is-collapsed
'
)).
not
.
toBeNull
();
});
});
});
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