Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 64a87f9

Browse files
committed
test ohlc + hover
1 parent b24906e commit 64a87f9

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

test/jasmine/tests/hover_label_test.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,3 +1299,27 @@ describe('Test hover label custom styling:', function() {
12991299
.then(done);
13001300
});
13011301
});
1302+
1303+
describe('ohlc hover interactions', function() {
1304+
var data = [{
1305+
type: 'candlestick',
1306+
open: [2, 2],
1307+
high: [3, 3],
1308+
low: [0, 0],
1309+
close: [3, 3],
1310+
x: [1, 2, 3],
1311+
y: [0.12345, 0.23456, 0.34567]
1312+
}];
1313+
1314+
beforeEach(function() {
1315+
this.gd = createGraphDiv();
1316+
});
1317+
1318+
afterEach(destroyGraphDiv);
1319+
1320+
// See: https://github.com/plotly/plotly.js/issues/1807
1321+
it('should not fail in appendArrayPointValue', function() {
1322+
Plotly.plot(this.gd, data);
1323+
mouseEvent('mousemove', 203, 213);
1324+
});
1325+
});

0 commit comments

Comments
 (0)