blob: 62d4a470a27ae19742b6ce56f57ff38e76960538 [file] [log] [blame]
<!DOCTYPE HTML><!-- webkit-test-runner [ KeygenElementEnabled=true ] -->
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<script>
description('Test how setCustomValidity reacts to too few arguments.');
var b = document.createElement('button');
shouldThrow("b.setCustomValidity()");
var fs = document.createElement('fieldset');
shouldThrow("fs.setCustomValidity()");
var i = document.createElement('input');
shouldThrow("i.setCustomValidity()");
var k = document.createElement('keygen');
shouldThrow("k.setCustomValidity()");
successfullyParsed = true;
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>