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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/textfieldselection/selection-not-application.html

Issue 2706033004: Don't throw when getting selection(Direction|Start|End) on input (Closed)
Patch Set: Refine test Created 3 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/the-input-element/selection-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/textfieldselection/selection-not-application.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/textfieldselection/selection-not-application.html b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/textfieldselection/selection-not-application.html
index 576e6d1254ac2a486c9a7107b64140bb1d72ae18..b0db8a96fabd7af336c6ffef4556acd38cf4f719 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/textfieldselection/selection-not-application.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/textfieldselection/selection-not-application.html
@@ -14,14 +14,17 @@
test(function(){
var el = document.createElement("input");
el.type = type;
+ assert_equals(el.selectionStart, null);
+ assert_equals(el.selectionEnd, null);
+ assert_equals(el.selectionDirection, null);
assert_throws("InvalidStateError", function(){
- el.selectionStart;
+ el.selectionStart = 0;
});
assert_throws("InvalidStateError", function(){
- el.selectionEnd;
+ el.selectionEnd = 0;
});
assert_throws("InvalidStateError", function(){
- el.selectionDirection;
+ el.selectionDirection = 'none';
});
assert_throws("InvalidStateError", function(){
el.setRangeText("foobar");
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/the-input-element/selection-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698