Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit 4f63a1cc authored by Mikaël Salson's avatar Mikaël Salson

segmenter_test: Test that clones are ordered with multiSelect

See #3759
parent 192b0891
Pipeline #65792 passed with stages
in 5 minutes and 5 seconds
......@@ -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