mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
LibWeb: Import setCustomValidity related tests
This commit is contained in:
Notes:
github-actions[bot]
2025-02-18 17:18:04 +00:00
Author: https://github.com/Psychpsyo Commit: https://github.com/LadybirdBrowser/ladybird/commit/96bb250a4ac Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3587 Reviewed-by: https://github.com/ADKaster ✅
@@ -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>
|
||||
Reference in New Issue
Block a user