blob: cb0f4d4975ffd3c64b77c00f4538eb15ba135e3e [file] [log] [blame]
<html>
<head>
<script>
function test() {
if (window.layoutTestController) {
window.layoutTestController.dumpAsText();
}
var but = document.getElementById('button');
but.value = 'Success';
document.writeln("Button value is: " + but.value);
}
</script>
</head>
<body>
<p>Tests: HTMLButtonElement::value</p>
<p>
This test changes the value of the button. The original value is "Fail"; the new value should be "Success"
</p>
<hr>
<input type=button id='button' value='Fail'></input>
</body>
<script>test()</script>
</html>