Commit 42d57f08 authored by Mathieu Giraud's avatar Mathieu Giraud

tests: add test, compare two samples

parent b462491b
Pipeline #26793 passed with stages
in 24 seconds
......@@ -84,6 +84,35 @@ QUnit.test("node sizes", function(assert) {
})
QUnit.test("other plot", function(assert) {
var m = new Model(m);
m.parseJsonData(json_data, 100)
m.loadGermline()
m.initClones()
var sp = new ScatterPlot("visu", m);
sp.init();
sp.update();
assert.equal(sp.otherVisibility, false)
assert.equal(sp.nodes[2].s, 0.125, "node 0, size (main sample time 0)")
m.tOther = 1
var preset = sp.preset["compare two samples"]
sp.changeSplitMethod(preset.x, preset.y, preset.mode)
assert.equal(sp.splitY, "sizeOtherSample")
assert.equal(sp.otherVisibility, true)
assert.equal(sp.nodes[2].s, 0.25, "node 0, size (other sample time 1)")
m.tOther = 3
sp.updateClone(2)
assert.equal(sp.nodes[2].s, 0.125, "node 0, size (other sample time 3)")
})
QUnit.test("multiple selection", function(assert) {
var m = new Model(m);
......
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