1
0
Fork 0
firefox/testing/web-platform/tests/html/semantics/disabled-elements/disabled-checkbox-click.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

26 lines
997 B
HTML

<!doctype html>
<link rel="author" title="Aditya Keerthi" href="https://github.com/pxlcoder">
<link rel="help" href="https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#enabling-and-disabling-form-controls:-the-disabled-attribute">
<title>Test disabled checkbox does not change state when clicked</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-actions.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<input type="checkbox" disabled>
<script>
const input = document.querySelector("input");
promise_test(async function() {
assert_false(input.checked);
await new test_driver.Actions()
.pointerMove(0, 0, { origin: input })
.pointerDown()
.pointerUp()
.send();
assert_false(input.checked);
}, `Disabled checkbox does not change state when clicked`);
</script>