}],
afterBody: [],
footer: [],
- x: 269,
- y: 155,
caretPadding: 2,
labelColors: [{
borderColor: 'rgb(255, 0, 0)',
backgroundColor: 'rgb(0, 255, 255)'
}]
}));
+
+ expect(tooltip._view.x).toBeCloseTo(269, 1);
+ expect(tooltip._view.y).toBeCloseTo(155, 1);
});
it('Should display in single mode', function() {
}],
afterBody: [],
footer: [],
- x: 269,
- y: 312,
caretPadding: 2,
labelColors: []
}));
+
+ expect(tooltip._view.x).toBeCloseTo(269, 1);
+ expect(tooltip._view.y).toBeCloseTo(312, 1);
});
it('Should display information from user callbacks', function() {
}],
afterBody: ['afterBody'],
footer: ['beforeFooter', 'footer', 'afterFooter'],
- x: 216,
- y: 190,
caretPadding: 2,
labelColors: [{
borderColor: 'rgb(255, 0, 0)',
backgroundColor: 'rgb(0, 255, 255)'
}]
}));
+
+ expect(tooltip._view.x).toBeCloseTo(216, 1);
+ expect(tooltip._view.y).toBeCloseTo(190, 1);
});
it('Should display information from user callbacks', function() {
}],
afterBody: [],
footer: [],
- x: 269,
- y: 155,
labelColors: [{
borderColor: 'rgb(0, 0, 255)',
backgroundColor: 'rgb(0, 255, 255)'
backgroundColor: 'rgb(0, 255, 0)'
}]
}));
+
+ expect(tooltip._view.x).toBeCloseTo(269, 1);
+ expect(tooltip._view.y).toBeCloseTo(155, 1);
});
});