Chromium Code Reviews| Index: LayoutTests/fast/forms/input-set-selectionStart-set-selectionEnd.html |
| diff --git a/LayoutTests/fast/forms/input-set-selectionStart-set-selectionEnd.html b/LayoutTests/fast/forms/input-set-selectionStart-set-selectionEnd.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..117c1ddbad167c2d48367ffa32406be7e315cc94 |
| --- /dev/null |
| +++ b/LayoutTests/fast/forms/input-set-selectionStart-set-selectionEnd.html |
| @@ -0,0 +1,27 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<head> |
| +<script type="text/javascript"> |
| +function log(msg) |
| +{ |
| + document.getElementById('res').innerHTML = document.getElementById('res').innerHTML + msg + "<br>"; |
| +} |
| + |
| +function testSelection() |
| +{ |
| + if (window.testRunner) { |
| + testRunner.dumpAsText(); |
| + var input = document.getElementById('val1'); |
| + input.selectionStart = 3; |
| + input.selectionEnd = 5; |
| + input.value = "Parsed"; |
| + log('Slection start: ' + input.selectionStart + ' and end: ' + input.selectionEnd); |
|
harpreet.sk
2014/04/28 16:09:04
I checked this layout test on the browser and it w
|
| + } |
| +} |
| +</script> |
| +</head> |
| +<body onload="testSelection()"> |
| +<input id="val1" type="text" /> |
| +<div id="res"></div> |
| +</body> |
| +</html> |