Chart.js/test/specs
Josh Kelley 429d99dbc2
Tooltip fixes (getLabelAndValue on null controller, null getParsed) (#11596)
* Fix for getLabelAndValue on null controller

I encountered #11315 under the following circumstances:

1. Position the cursor over the chart area, such that it causes a
   tooltip to be shown.
2. Move the cursor out of the chart area, such that the tooltip remains
   visible.
3. Cause the chart contents to be changed, such that the dataset
   referenced by the active tooltip element is no longer valid.
4. Move the mouse again.  This triggers an `inChartArea = false` event,
   so it reuses the previous, now invalid, active elements.

This fixes #11315 under the circumstances for which I've reproduced it,
but there may be others.

* Further fixes for elements added / changed

This possibly fixes #11365.
2023-11-29 14:51:56 -05:00
..
controller.bar.tests.js fix: same-looking tooltips on charts (#10548) 2022-08-18 07:34:35 -04:00
controller.bubble.tests.js fix: same-looking tooltips on charts (#10548) 2022-08-18 07:34:35 -04:00
controller.doughnut.tests.js fix: same-looking tooltips on charts (#10548) 2022-08-18 07:34:35 -04:00
controller.line.tests.js fix: calc visible points on update (#10667) 2022-09-24 17:01:47 -04:00
controller.polarArea.tests.js fix: same-looking tooltips on charts (#10548) 2022-08-18 07:34:35 -04:00
controller.radar.tests.js fix: same-looking tooltips on charts (#10548) 2022-08-18 07:34:35 -04:00
controller.scatter.tests.js fix: same-looking tooltips on charts (#10548) 2022-08-18 07:34:35 -04:00
core.animation.tests.js Update eslint-config-chartjs to v0.3.0 (#8406) 2021-02-10 08:21:39 -05:00
core.animations.tests.js Fix typos found by codespell (#10103) 2022-01-27 09:24:55 -05:00
core.animator.tests.js Update eslint-config-chartjs to v0.3.0 (#8406) 2021-02-10 08:21:39 -05:00
core.controller.tests.js fix: respect aspect ratio with container height (#10646) 2022-09-02 08:03:41 -04:00
core.datasetController.tests.js fix: respect minBarLength in stacked bar chart (#10766) 2022-11-22 20:21:02 -05:00
core.defaults.tests.js Update eslint-config-chartjs to v0.3.0 (#8406) 2021-02-10 08:21:39 -05:00
core.element.tests.js Update eslint-config-chartjs to v0.3.0 (#8406) 2021-02-10 08:21:39 -05:00
core.helpers.tests.js Update eslint-config-chartjs to v0.3.0 (#8406) 2021-02-10 08:21:39 -05:00
core.interaction.tests.js Add option to include invisible points (#10362) 2022-05-25 13:25:27 +03:00
core.layouts.tests.js radialLinear: fix positioning & scaling (#10021) 2021-12-23 20:47:36 +02:00
core.plugin.tests.js Provide an empty object when the target of the resolver is undefined (#10655) 2022-09-15 12:12:35 -04:00
core.registry.tests.js Relocate chart type and dataset type defaults (#8563) 2021-03-06 10:34:52 -05:00
core.scale.tests.js Use custom scale defaults and dataset axis ID options to determine the axis (#11134) 2023-02-15 09:27:13 -05:00
core.ticks.tests.js Refine logarithmic scaling / tick generation (#9166) 2022-08-22 14:05:27 -04:00
element.arc.tests.js Border is counted as part of ArcElement (#11180) 2023-04-19 18:22:40 -04:00
element.bar.tests.js Update eslint-config-chartjs to v0.3.0 (#8406) 2021-02-10 08:21:39 -05:00
element.line.tests.js Update eslint-config-chartjs to v0.3.0 (#8406) 2021-02-10 08:21:39 -05:00
element.point.tests.js Update eslint-config-chartjs to v0.3.0 (#8406) 2021-02-10 08:21:39 -05:00
global.defaults.tests.js Fix the missing apply for the color on the legend labels (#10855) 2022-11-04 18:55:27 -04:00
global.namespace.tests.js Update eslint-config-chartjs to v0.3.0 (#8406) 2021-02-10 08:21:39 -05:00
helpers.canvas.tests.js Fix _isPointInArea helper when no area is provided (#9489) 2021-07-28 07:57:35 -04:00
helpers.collection.tests.js fix: calc visible points on update (#10667) 2022-09-24 17:01:47 -04:00
helpers.color.tests.js Update eslint-config-chartjs to v0.3.0 (#8406) 2021-02-10 08:21:39 -05:00
helpers.config.tests.js Remove console.warn from a test case where not needed (#11056) 2023-01-13 09:33:34 -05:00
helpers.core.tests.js parsing: support dot(s) in object keys (#10517) 2022-07-26 08:30:52 -04:00
helpers.curve.tests.js helpers.curve cleanup (#8608) 2021-03-10 09:32:54 -05:00
helpers.dom.tests.js fix: avoid resize loop when browser zoom is set to 90% (#10971) 2022-12-17 09:41:21 -05:00
helpers.easing.tests.js Update eslint-config-chartjs to v0.3.0 (#8406) 2021-02-10 08:21:39 -05:00
helpers.interpolation.tests.js Fix typos found by codespell (#10103) 2022-01-27 09:24:55 -05:00
helpers.math.tests.js Update eslint-config-chartjs to v0.3.0 (#8406) 2021-02-10 08:21:39 -05:00
helpers.options.tests.js Font validate style, move defaults to weight (#8877) 2021-04-10 15:58:11 -04:00
helpers.segment.tests.js Fix line segments with alignToPixel (#9042) 2021-05-06 21:06:40 -04:00
mixed.tests.js check the data set type in DoughnutController (#10867) 2022-11-12 15:41:21 -05:00
platform.basic.tests.js Disable animations for BasicPlatform (offcreen) (#9751) 2021-10-11 14:37:25 -04:00
platform.dom.tests.js fix: aspect ratio calc (#10693) 2022-09-28 15:31:19 -04:00
plugin.colors.tests.js Introduce Colors plugin (#10764) 2022-10-21 08:21:08 -04:00
plugin.decimation.tests.js Decimation: Prevent buffer overflow (#9367) 2021-07-07 17:45:31 -04:00
plugin.filler.tests.js Add warning if filler plugin is used but not registered (#10702) 2022-09-26 20:20:54 +02:00
plugin.legend.tests.js FIX: render multiline legend items without overlapping (#10532) (#10641) 2022-09-16 09:46:53 -04:00
plugin.subtitle.tests.js New plugin: subtitle (#9294) 2021-06-20 07:34:55 -04:00
plugin.title.tests.js Refactor radialLinear scale and renderText helper (#9276) 2021-06-18 14:12:27 -04:00
plugin.tooltip.tests.js Tooltip fixes (getLabelAndValue on null controller, null getParsed) (#11596) 2023-11-29 14:51:56 -05:00
scale.category.tests.js fix: treeshaking (#10504) 2022-08-04 09:17:40 -04:00
scale.linear.tests.js Fix: don't generate ticks > max if max is specified (#11116) 2023-02-10 07:57:58 -05:00
scale.logarithmic.tests.js Refine logarithmic scaling / tick generation (#9166) 2022-08-22 14:05:27 -04:00
scale.radialLinear.tests.js radialLinear: fix positioning & scaling (#10021) 2021-12-23 20:47:36 +02:00
scale.time.tests.js Add format method to time scale to format timestamp using scale options (#11063) 2023-01-18 08:27:52 -05:00