blob: 2a9ed272427dfa0de8a21c7841aa753e5c5fde50 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../fast/js/resources/js-test-pre.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<script>
description('Check stepUp() and stepDown() bahevior for unsupported types.');
var input = document.createElement('input');
var invalidStateErr = '"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable."';
debug('Unsupported type');
input.type = 'text';
shouldThrow('input.step = "3"; input.min = ""; input.max = ""; input.value = "2"; input.stepDown()', '"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable."');
shouldThrow('input.stepDown(0)', '"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable."');
shouldThrow('input.stepUp()', '"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable."');
shouldThrow('input.stepUp(0)', '"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable."');
</script>
<script src="../../fast/js/resources/js-test-post.js"></script>
</body>
</html>