LibWeb: Import setCustomValidity related tests

This commit is contained in:
Psychpsyo
2025-02-18 11:15:05 +01:00
committed by Andrew Kaster
parent a8004a77bb
commit 96bb250a4a
Notes: github-actions[bot] 2025-02-18 17:18:04 +00:00
10 changed files with 115 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<!DOCTYPE HTML>
<title>object setCustomValidity</title>
<script src="../../../../resources/testharness.js"></script>
<script src="../../../../resources/testharnessreport.js"></script>
<object id='object_test'></object>
<script>
test(() => {
let elem = document.getElementById("object_test");
assert_false(elem.validity.customError);
elem.setCustomValidity("custom error");
assert_true(elem.validity.customError);
}, "object setCustomValidity is correct")
</script>