Commit ffaca6c9 authored by Mathieu Giraud's avatar Mathieu Giraud

lists_test.js: virtual clones have all the same 'top' of 0

Depending on the browser, the 'sortByTop' test can thus sort 'TRG smaller clones' and 'IGH smaller clones' in either way.
parent 1d550112
......@@ -68,7 +68,8 @@ test("List : sort", function() {
notEqual(clone_list[4].innerHTML.indexOf("TRG smaller"), -1, "sortByJ: Ok");
list.sortListByTop();
notEqual(clone_list[0].innerHTML.indexOf("IGH smaller"), -1, "sortByTop: Ok");
notEqual(clone_list[0].innerHTML.indexOf("smaller"), -1, "sortByTop: Ok"); // TRG or IGH
notEqual(clone_list[1].innerHTML.indexOf("smaller"), -1, "sortByTop: Ok"); // TRG or IGH
notEqual(clone_list[2].innerHTML.indexOf("test1"), -1, "sortByTop: Ok");
notEqual(clone_list[3].innerHTML.indexOf("test2"), -1, "sortByTop: Ok");
notEqual(clone_list[4].innerHTML.indexOf("test3"), -1, "sortByTop: Ok");
......
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