blob: 2ddce708301caaec7c26b5683bdf4cfbad7fdf64 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
</head>
<body>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script>
'use strict';
test(() => {
const element = document.body.appendChild(document.createElement("div"));
for (let value of [0, Number.MAX_VALUE, Number.MIN_VALUE, Number.MAX_VALUE + 1, Number.MIN_VALUE - 1]) {
element.hasPointerCapture(value);
assert_throws_dom("NotFoundError", () => element.setPointerCapture(value))
assert_throws_dom("NotFoundError", () => element.releasePointerCapture(value))
}
element.remove();
}, "Checking 0 can be used as a Pointer ID.");
</script>
</body>
</html>