haikuwebkit/LayoutTests/fast/media/mq-any-pointer-matchMedia-e...

20 lines
751 B
Plaintext

Test the any-pointer media feature with machMedia.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
window.matchMedia("(any-pointer)").matches = true
window.matchMedia("(any-pointer: fine)").matches = true
window.matchMedia("(any-pointer: coarse)").matches = false
window.matchMedia("(any-pointer: none)").matches = false
window.matchMedia("(any-pointer: Fine)").matches = true
window.matchMedia("(any-pointer: Coarse)").matches = false
window.matchMedia("(any-pointer: None)").matches = false
window.matchMedia("(Any-Pointer: fine)").matches = true
window.matchMedia("(Any-Pointer: coarse)").matches = false
window.matchMedia("(Any-Pointer: none)").matches = false
PASS successfullyParsed is true
TEST COMPLETE