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

Unified Diff: LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html

Issue 1334653002: update-w3c-deps import using blink 938bf333d1bbab5c7c40f5c574f50807244c587f: (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add NeedsRebaseline Created 5 years, 3 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/imported/web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html
diff --git a/LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html b/LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html
index 771284cf7bbd25d108f4452621a0e196291de23b..c0cc90a9d1df25336b5e1869e857367afb212cfe 100644
--- a/LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html
+++ b/LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html
@@ -181,7 +181,7 @@ test(function() {
test(function() {
textarea.setSelectionRange("string",1);
- assert_equals(textarea.selectionStart, 1, "element.selectionStart should be 0");
+ assert_equals(textarea.selectionStart, 0, "element.selectionStart should be 0");
assert_equals(textarea.selectionEnd, 1, "element.selectionStart should be 1");
},'textarea setSelectionRange("string",1)');
@@ -193,31 +193,31 @@ test(function() {
test(function() {
textarea.setSelectionRange([],1);
- assert_equals(textarea.selectionStart, 1, "element.selectionStart should be 0");
+ assert_equals(textarea.selectionStart, 0, "element.selectionStart should be 0");
assert_equals(textarea.selectionEnd, 1, "element.selectionStart should be 1");
},'textarea setSelectionRange([],1)');
test(function() {
textarea.setSelectionRange({},1);
- assert_equals(textarea.selectionStart, 1, "element.selectionStart should be 0");
+ assert_equals(textarea.selectionStart, 0, "element.selectionStart should be 0");
assert_equals(textarea.selectionEnd, 1, "element.selectionStart should be 1");
},'textarea setSelectionRange({},1)');
test(function() {
textarea.setSelectionRange(NaN,1);
- assert_equals(textarea.selectionStart, 1, "element.selectionStart should be 0");
+ assert_equals(textarea.selectionStart, 0, "element.selectionStart should be 0");
assert_equals(textarea.selectionEnd, 1, "element.selectionStart should be 1");
},'textarea setSelectionRange(NaN,1)');
test(function() {
textarea.setSelectionRange(null,1);
- assert_equals(textarea.selectionStart, 1, "element.selectionStart should be 0");
+ assert_equals(textarea.selectionStart, 0, "element.selectionStart should be 0");
assert_equals(textarea.selectionEnd, 1, "element.selectionStart should be 1");
},'textarea setSelectionRange(null,1)');
test(function() {
textarea.setSelectionRange(undefined,1);
- assert_equals(textarea.selectionStart, 1, "element.selectionStart should be 0");
+ assert_equals(textarea.selectionStart, 0, "element.selectionStart should be 0");
assert_equals(textarea.selectionEnd, 1, "element.selectionStart should be 1");
},'textarea setSelectionRange(undefined,1)');
},"test of textarea.setSelectionRange");

Powered by Google App Engine
This is Rietveld 408576698