Commit f8abd255 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

Merge branch 'hotfix-c/3759-sorted-in-segmenter' into 'dev'

Sorted in segmenter

Closes #3759

See merge request !420
parents 9f488604 4f63a1cc
Pipeline #65799 failed with stages
in 40 seconds
......@@ -1032,7 +1032,6 @@ changeAlleleNotation: function(alleleNotation) {
this.orderedSelectedClones.push(tmp[j].id);
list[j] = tmp[j].id
}
this.updateStyle();
this.updateElemStyle(list);
this.update();
},
......
......@@ -63,6 +63,17 @@ QUnit.test("segmenter", function(assert) {
m.multiSelect([0,1])
assert.equal(document.getElementsByClassName("stats_content")[0].innerHTML, "2 clones, 30 reads (15.00%) ", "stats (several clones) : Ok")
// Select multiple clones and check they are ordered.
m.unselectAll()
m.multiSelect([0, 1, 2]);
var list_html = document.getElementById('listSeq').innerHTML;
var clone0_pos = list_html.search('"seq0"');
var clone1_pos = list_html.search('"seq1"');
var clone2_pos = list_html.search('"seq2"');
// Clone 2 is more abundant than clone 1 more abundant than clone 0
assert.ok(clone2_pos < clone1_pos);
assert.ok(clone1_pos < clone0_pos);
m.unselectAll()
m.select(2)
m.changeTime(3)
......
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