blob: d4ba0bfbb41ecbbf8e6a36b68f86828db3b6586b [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../utils.js"></script>
<script>
'use strict';
target_test((target, test) => {
target.addEventListener("pointerdown", event => {
assert_true(target.hasPointerCapture(event.pointerId));
target.releasePointerCapture(event.pointerId);
assert_false(target.hasPointerCapture(event.pointerId));
});
ui.tap({ x: 50, y: 50 }).then(() => test.done());
}, "Calling releasePointerCapture() in the 'pointerdown' event handler makes hasPointerCapture() return false.");
</script>
</body>
</html>