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

Unified Diff: LayoutTests/fast/forms/selection-start-end-readonly.html

Issue 1269263003: The start and end arguments should be unsigned long in setSelectionRange() function Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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/selection-start-end-readonly.html
diff --git a/LayoutTests/fast/forms/selection-start-end-readonly.html b/LayoutTests/fast/forms/selection-start-end-readonly.html
index 84663c7083403fc13b4bc0f45b672ac191700cbc..5f90790c492fad79d2e567e7d60b1b9a58d63190 100644
--- a/LayoutTests/fast/forms/selection-start-end-readonly.html
+++ b/LayoutTests/fast/forms/selection-start-end-readonly.html
@@ -16,7 +16,7 @@ description('Tests for selectionStart and selectionEnd on read-only INPUT and TE
function startTest(element, start, end) {
element.setSelectionRange(start, end);
- start = start < 0 ? 0 : start;
+ start = start < 0 ? end : start;
end = end > 10 ? 10 : end;
start = start > end ? end : start;

Powered by Google App Engine
This is Rietveld 408576698