diff options
Diffstat (limited to 'LayoutTests/fast/dom/HTMLButtonElement/value/getset.html')
-rw-r--r-- | LayoutTests/fast/dom/HTMLButtonElement/value/getset.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/LayoutTests/fast/dom/HTMLButtonElement/value/getset.html b/LayoutTests/fast/dom/HTMLButtonElement/value/getset.html new file mode 100644 index 0000000..cb0f4d4 --- /dev/null +++ b/LayoutTests/fast/dom/HTMLButtonElement/value/getset.html @@ -0,0 +1,27 @@ +<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> |