blob: 362e0b271b3e1fe8205e53cc3c990ef4b7e4eec5 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../../resources/js-test-pre.js"></script>
<script>
description("Test the any-hover media feature with machMedia.")
function testHoverCondition(condition) {
var testString = 'window.matchMedia("(' + condition + ')").matches';
debug(testString + " = " + eval(testString));
}
testHoverCondition("any-hover");
testHoverCondition("any-hover: hover");
testHoverCondition("any-hover: on-demand");
testHoverCondition("any-hover: none");
testHoverCondition("any-hover: Hover");
testHoverCondition("any-hover: On-demand");
testHoverCondition("any-hover: None");
testHoverCondition("Any-Hover: hover");
testHoverCondition("Any-Hover: on-demand");
testHoverCondition("Any-Hover: none");
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>