Commit 50f7e085 authored by flothoni's avatar flothoni

segmenter_test; add a test to see the reaction of model if unselect the first clone

link to #2041
parent 4f04e488
Pipeline #71559 failed with stages
in 23 seconds
......@@ -23,7 +23,9 @@ QUnit.test("segmenter", function(assert) {
var div1 = document.getElementById("f1");
assert.notEqual(div1.innerHTML.indexOf("test2"), -1, "select : Ok")
assert.equal(segment.first_clone, 0, "segment.first_clone still set to 0 if clones 0 and 1 are selected")
m.unselect(0)
assert.equal(segment.first_clone, 1, "segment.first_clone is set to 1 if clones 0 is unselected")
m.select(2)
var div2 = document.getElementById("f2");
assert.notEqual(div2.innerHTML.indexOf("test3"), -1, "select : 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