web-platform-tests / wpt

Test suites for Web platform specs — including WHATWG, W3C, and others
https://web-platform-tests.org/
Other
5k stars 3.1k forks source link

Unable to test which cursor is used #7750

Open gsnedders opened 7 years ago

gsnedders commented 7 years ago

At the moment, we have no way to test the CSS cursor property. We probably need some ability to take a screenshot of the cursor at a specific place.

cc/ @frivoal

frivoal commented 7 years ago

Right. Currently all cursor tests are manual, and that's lousy.

RByers commented 7 years ago

FWIW, years ago I added a mechanism in chromium to read back the cursor state (including custom bitmaps). I think that's probably more practical than doing screenshot diffing - at least for the OS defined cursors.

gsnedders commented 7 years ago

@RByers There are tests for things like colour space and size of image cursors, which means you need more than just state.

foolip commented 6 years ago

It seems like in order to automate this, you'd need to take a screenshot of the whole desktop environment. A handful of manual tests for this might be an OK tradeoff :)

frivoal commented 6 years ago

Indeed. Image cursors would be quite a pain to test, but even worse are the various predefined cursors, that don't even have a set shape, and need human judgement to decide if the cursor is indeed a cursor that "Indicates something is to be copied. Often rendered as an arrow with a small plus sign next to it."

If someone has a bright idea, that'd be great, but otherwise, we can certainly focus our energy better somewhere else.