summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/checkValidity-004.html
blob: c2a74a79a20a40ef215aca974031580556467a65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<link rel="stylesheet" href="../js/resources/js-test-style.css">
<script src="../js/resources/js-test-pre.js"></script>
</head>
<body>
<p id="description"></p>
<form method="get" id="sad_form">
<fieldset name="victim"></fieldset>
<input name="victim" type="text" value="invalid" pattern="something"/>
<button name="victim">lorem ipsum</button>
<select name="victim"></select>
<textarea name="victim"></textarea>
</form>
<div id="console"></div>
<script>
description("This test checks if checkValidity() returns correctly a false (meaning there's an invalid element) result on form element.");

f = document.getElementById("sad_form");
shouldBe("f.checkValidity()", "false");

var successfullyParsed = true;
</script>
<script src="../js/resources/js-test-post.js"></script>
</body>
</html>