Commit ebb0dfe1 authored by Mathieu Giraud's avatar Mathieu Giraud

tests: update tests

The test defined in f68b3f9d now works.
Fixes #2228.
parent fcc2bd59
......@@ -110,29 +110,29 @@ QUnit.test("filters", function(assert) {
var clone_list = document.getElementById('list').lastChild.childNodes
m.updateElemStyle([0,1,2,3]);
list.filter("test1");
m.filter("test1");
setTimeout( function() {
assert.ok( $(clone_list[4]).is(':visible'), "filter id ('test1') : test1 is visible : Ok");
assert.ok( !$(clone_list[3]).is(':visible'), "filter id ('test1') : test2 is not visible : Ok");
list.filter("aAaaaAAA");
m.filter("aAaaaAAA");
ready()
}, 100);
setTimeout( function() {
assert.ok( $(clone_list[4]).is(':visible'), "filter seq ('aAaaaAAA') : test1 is visible : Ok");
assert.ok( !$(clone_list[3]).is(':visible'), "filter seq ('aAaaaAAA') : test2 is not visible : Ok");
list.filter("TGGGGGGg");
m.filter("TGGGGGGg");
ready()
}, 200);
setTimeout( function() {
assert.ok( !$(clone_list[4]).is(':visible'), "filter revComp ('TGGGGGGg') : test1 is not visible : Ok");
assert.ok( $(clone_list[3]).is(':visible'), "filter revComp ('TGGGGGGg') : test2 is visible : Ok");
list.filter("CCCCa");
m.filter("CCCCa");
ready()
}, 300);
setTimeout( function() {
assert.ok( !$(clone_list[4]).is(':visible'), "filter seq ('CCCCa') : test1 is not visible : Ok");
assert.ok( $(clone_list[3]).is(':visible'), "filter seq ('CCCCa') : test2 is visible : Ok");
list.reset_filter(false);
m.reset_filter(false);
m.update();
ready()
}, 400);
......
......@@ -165,7 +165,7 @@ QUnit.test("focus/hide/reset_filter", function(assert) {
m.multiSelect([0,2,3])
assert.equal(m.someClonesFiltered, false, "no clones are filtered")
m.focus()
m.focusSelected()
assert.equal(m.someClonesFiltered, true, "some clones are filtered")
assert.equal(m.clone(0).isFiltered, false, "clone 0 is not filtered")
assert.equal(m.clone(1).isFiltered, true, "clone 1 is filtered")
......@@ -174,7 +174,7 @@ QUnit.test("focus/hide/reset_filter", function(assert) {
m.select(2)
assert.equal(m.clone(2).isFiltered, false, "clone 2 is not filtered")
m.hide()
m.hideSelected()
assert.equal(m.clone(2).isFiltered, true, "clone 2 is filtered")
assert.equal(m.clone(0).isFiltered, false, "clone 0 is not filtered")
......
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