Commit 58665945 authored by Thonier Florian's avatar Thonier Florian

list.js; add show/hide cluster at update call

Link to #3951
parent c67782d9
......@@ -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 {
......
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment