Commit 49bb69db authored by Marc Duez's avatar Marc Duez

scatterplot.js : add test for bar position

parent 44de1c32
......@@ -29,11 +29,20 @@ test("scatterplot : grid", function() {
sp.changeSplitMethod("gene_v", "gene_v", "bar");
sp.update()
equal(document.getElementById("bar1").className.baseVal, "", "check splitMethod V/V /plot : check if bar are displayed")
$(document.getElementsByClassName("sp_legend")[0]).d3Click() //click label ighv4
deepEqual(m.getSelected(), [2], "check click label");
});
\ No newline at end of file
sp.changeSplitMethod("n", "Size", "bar");
sp.update()
equal(sp.nodes[1].bar_h , 0.4444444444444445 ,"bar position : Ok")
equal(sp.nodes[1].bar_w , 0.08 ,"bar position : Ok")
equal(sp.nodes[1].bar_x , 0.25 ,"bar position : Ok")
equal(sp.nodes[1].bar_y , 0.4444444444444445 ,"bar position : Ok")
});
......@@ -6,7 +6,7 @@
<link rel="stylesheet" href="../../css/qunit-1.15.0.css">
<style>
.flash_container, .log_container, .popup_container, .data-container{
.flash_container, .log_container, .popup_container, .data-container, .info-container, .dataMenu, .tagSelector{
display:none !important;
}
</style>
......
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