summaryrefslogtreecommitdiffstats
path: root/layout/reftests/forms/input/text/select.html
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/forms/input/text/select.html')
-rw-r--r--layout/reftests/forms/input/text/select.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/layout/reftests/forms/input/text/select.html b/layout/reftests/forms/input/text/select.html
new file mode 100644
index 000000000..eba0c3824
--- /dev/null
+++ b/layout/reftests/forms/input/text/select.html
@@ -0,0 +1,21 @@
+<html class="reftest-wait">
+ <head>
+ <script type="text/javascript">
+ function finishTest() {
+ document.documentElement.removeAttribute("class");
+ }
+ function runTest() {
+ var field = document.getElementById('field');
+ field.focus();
+ field.disabled = true;
+ field.setSelectionRange(0, 4);
+ field.disabled = false;
+ field.select();
+ setTimeout(finishTest, 0);
+ }
+ </script>
+ </head>
+ <body onload="runTest()">
+ <input id="field" type="text" value="1234">
+ </body>
+</html>