Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Unified Diff: LayoutTests/fast/forms/input-set-selectionStart-set-selectionEnd.html

Issue 258063005: Blink does not respect input.selectionStart and input.selectionEnd for some cases (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698