summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-select.html
blob: 0a653af973cb05751477224e405b312343a15e69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<html>
<head>
<script src="../../../resources/js-test.js"></script>
</head>
<body>
<textarea id="text"></textarea>
<script>
description("This test calls textarea.select and confirms selectionStart/End.");

text.value = "hello\n";
text.select();
shouldBe("text.selectionStart", "0");
shouldBe("text.selectionEnd", "6");
</script>
</body>
</html>