[Plot] Avoid displaying bad labels
Avoid displaying bad labels for tick marks, or in the coordinates shown on hover. Done in the context of refactoring to support WTD-625.
This commit is contained in:
@@ -84,13 +84,15 @@ define(
|
||||
|
||||
it("provides hovering coordinates", function () {
|
||||
// Should be empty when not hovering
|
||||
expect(subplot.getHoverCoordinates()).toEqual([]);
|
||||
expect(subplot.getHoverCoordinates())
|
||||
.toBeUndefined();
|
||||
|
||||
// Start hovering
|
||||
subplot.hover({ target: mockElement });
|
||||
|
||||
// Should now have coordinates to display
|
||||
expect(subplot.getHoverCoordinates().length).toEqual(2);
|
||||
expect(subplot.getHoverCoordinates())
|
||||
.toEqual(jasmine.any(String));
|
||||
});
|
||||
|
||||
it("supports marquee zoom", function () {
|
||||
|
||||
Reference in New Issue
Block a user