| Index: third_party/WebKit/LayoutTests/editing/input/caret-selection-after-input-edge.html
|
| diff --git a/third_party/WebKit/LayoutTests/editing/input/caret-selection-after-input-edge.html b/third_party/WebKit/LayoutTests/editing/input/caret-selection-after-input-edge.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..03c7c58a78e8b01a3d872eb00a6ddc1b9ad8eb17
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/editing/input/caret-selection-after-input-edge.html
|
| @@ -0,0 +1,14 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<input type="text" name="input-edit" id="input-edit" size="5" value="012345678901234567890123456789" />
|
| +<script>
|
| +test(function() {
|
| + var inputEdit = document.getElementById("input-edit");
|
| + inputEdit.focus();
|
| + var scrollOffsetBefore = inputEdit.scrollLeft;
|
| + inputEdit.setSelectionRange(12, 12);
|
| + var scrollOffsetAfter = inputEdit.scrollLeft;
|
| + assert_true(scrollOffsetBefore < scrollOffsetAfter);
|
| +}, 'When the caret selection is set after the edge of the input box, it should be revealed.');
|
| +</script>
|
|
|