diff options
Diffstat (limited to 'testing/web-platform/tests/html/semantics/forms/the-input-element/radio-multiple-selected.html')
-rw-r--r-- | testing/web-platform/tests/html/semantics/forms/the-input-element/radio-multiple-selected.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/semantics/forms/the-input-element/radio-multiple-selected.html b/testing/web-platform/tests/html/semantics/forms/the-input-element/radio-multiple-selected.html new file mode 100644 index 0000000000..83d42032a5 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/forms/the-input-element/radio-multiple-selected.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>Multiple required input radio elements</title> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +</head> +<body> +<form id='testForm'> + <input type=radio name=foo required checked> + <input type=radio name=foo required> + <input type=submit> +</form> +<script> + test(function() { + assert_true(document.getElementById('testForm').reportValidity()); + }, "Form should be valid since one of the radio elements is checked"); +</script> +</body> +</html> |