Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
vidjil
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1,432
Issues
1,432
List
Boards
Labels
Milestones
Merge Requests
50
Merge Requests
50
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vidjil
vidjil
Commits
58665945
Commit
58665945
authored
Jul 22, 2019
by
Thonier Florian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
list.js; add show/hide cluster at update call
Link to
#3951
parent
c67782d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
browser/js/list.js
browser/js/list.js
+2
-0
browser/test/functional/test_cluster.rb
browser/test/functional/test_cluster.rb
+7
-7
No files found.
browser/js/list.js
View file @
58665945
...
...
@@ -495,9 +495,11 @@ List.prototype = {
if
(
clone
.
split
)
{
span_cluster
.
onclick
=
cluster_hide
;
span_cluster
.
appendChild
(
icon
(
'
icon-minus
'
,
'
Hide the subclones
'
));
this
.
showClusterContent
(
cloneID
,
false
)
}
else
{
span_cluster
.
onclick
=
cluster_show
;
span_cluster
.
appendChild
(
icon
(
'
icon-plus
'
,
'
Show the subclones
'
));
this
.
hideClusterContent
(
cloneID
,
false
)
}
self
.
div_cluster
(
document
.
getElementById
(
"
cluster
"
+
cloneID
),
cloneID
);
}
else
{
...
...
browser/test/functional/test_cluster.rb
View file @
58665945
...
...
@@ -23,27 +23,27 @@ class TestMultilocus < BrowserTest
end
def
test_00_list_clones
assert
(
$b
.
div
(
id:
'cluster1'
).
exists?
),
" cluster1 exist"
assert
(
$b
.
div
(
id:
'cluster1'
).
style
.
display
==
"none"
),
" cluster1 is not display"
assert
(
$b
.
div
(
:id
=>
'cluster1'
).
exists?
),
'>> cluster1 exist'
assert
(
$b
.
div
(
:id
=>
'cluster1'
).
style
.
display
==
'none'
),
'>> cluster1 is not display'
end
def
test_01_cluster_show
$b
.
div
(
id:
'clusterBox_1'
).
click
assert
(
$b
.
div
(
id:
'cluster1'
).
style
.
display
!=
"none"
),
" cluster1 is display"
$b
.
div
(
:id
=>
'clusterBox_1'
).
click
assert
(
$b
.
div
(
:id
=>
'cluster1'
).
style
.
display
!=
'none'
),
'>> cluster1 is display'
end
def
test_02_cluster_hide
$b
.
div
(
id:
'clusterBox_1'
).
click
assert
(
$b
.
div
(
id:
'cluster1'
).
style
.
display
==
"none"
),
" cluster1 is display"
$b
.
div
(
:id
=>
'clusterBox_1'
).
click
assert
(
$b
.
div
(
:id
=>
'cluster1'
).
style
.
display
==
'none'
),
'>> cluster1 is display'
end
def
test_03_cluster_show_all
$b
.
list_cluster_split
.
click
assert
(
$b
.
div
(
id:
'cluster1'
).
style
.
display
!=
"none"
),
" cluster1 is not display"
assert
(
$b
.
div
(
:id
=>
'cluster1'
).
style
.
display
!=
'none'
),
'>> cluster1 is not display'
# segmenter_also_show
$b
.
clone_in_scatterplot
(
'2'
).
click
assert
(
$b
.
clone_in_segmenter
(
'2'
).
exists?
),
">> selected clone is present into the segmenter"
...
...
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