Update WPT tests for embedded content
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / html / semantics / embedded-content / the-object-element / object-setcustomvalidity.html
1 <!DOCTYPE HTML>
2 <title>object setCustomValidity</title>
3 <script src="/resources/testharness.js"></script>
4 <script src="/resources/testharnessreport.js"></script>
5
6 <object id='object_test'></object>
7
8 <script>
9
10 test(() => {
11   let elem = document.getElementById("object_test");
12   assert_false(elem.validity.customError);
13   elem.setCustomValidity("custom error");
14   assert_true(elem.validity.customError);
15 }, "object setCustomValidity is correct")
16
17 </script>