1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../../resources/js-test.js"></script>
7 <p id=
"description"></p>
8 <form method=
"get" id=
"happy_form">
9 <fieldset name=
"victim"></fieldset>
10 <input name=
"victim" type=
"text" value=
"lorem ipsum"/>
11 <button name=
"victim">lorem ipsum
</button>
12 <select name=
"victim"></select>
13 <textarea name=
"victim"></textarea>
15 <div id=
"console"></div>
17 description("This test checks if checkValidity() returns correctly a true (meaning no error) result on form element.");
19 f
= document
.getElementById("happy_form");
20 shouldBe("f.checkValidity()", "true");