Commit c1356a0f authored by Mathieu Giraud's avatar Mathieu Giraud

tdd: scatterPlot, select correct index in select_x and select_y

See #3418.
parent b74e0173
......@@ -50,7 +50,10 @@ QUnit.test("grid", function(assert) {
sp.changeSplitMethod("nLength", "size", sp.MODE_BAR);
sp.update()
assert.equal(sp.select_x.selectedIndex, 8, 'select_x index');
assert.equal(sp.select_y.selectedIndex, 14, 'select_y index');
assert.equal(sp.nodes[1].bar_h , 0.3333333333333333, "node 1, bar h position")
assert.equal(sp.nodes[1].bar_x , sp.axisX.labels[9].pos ,"node 1, bar x position is on '9'")
assert.equal(sp.axisX.labels[9].text, "9", "10th label for 'n' axis' is '9'")
......
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