blob: c34232c105d34d2ab3df47a5af32d67d2e190d8c [file] [log] [blame]
<!DOCTYPE HTML><!-- webkit-test-runner [ enableKeygenElement=true ] -->
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<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()");
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>