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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/html/semantics/forms/the-input-element/selection.html

Issue 2015623004: Import wpt@ed94c51f3dfaa5ff4c9c311add1a560408059c51 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: third_party/WebKit/LayoutTests/imported/wpt/html/semantics/forms/the-input-element/selection.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/forms/the-input-element/selection.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/forms/the-input-element/selection.html
index 74a7d194beaca6e06be683f938168627a38365b8..58c6d990c0c2fb42ba9478715edb40de0be33a45 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/forms/the-input-element/selection.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/forms/the-input-element/selection.html
@@ -105,6 +105,8 @@ test(function() {
input.selectionStart = 0;
a = input.selectionEnd;
input.selectionEnd = 0;
+ a = input.selectionDirection;
+ input.selectionDirection = "none";
input.setSelectionRange(0, 0);
input.setRangeText('', 0, 0);
@@ -118,10 +120,12 @@ test(function() {
input.type = type;
assert_equals(input.type, type, "the given input type is not supported");
- assert_throws("INVALID_STATE_ERR", function() { var a = input.selectionStart; });
+ assert_equals(input.selectionStart, null, 'getting input.selectionStart');
assert_throws("INVALID_STATE_ERR", function() { input.selectionStart = 0; });
- assert_throws("INVALID_STATE_ERR", function() { var a = input.selectionEnd; });
+ assert_equals(input.selectionEnd, null, 'getting input.selectionEnd');
assert_throws("INVALID_STATE_ERR", function() { input.selectionEnd = 0; });
+ assert_equals(input.selectionDirection, null, 'getting input.selectionDirection');
+ assert_throws("INVALID_STATE_ERR", function() { input.selectionDirection = "none"; });
assert_throws("INVALID_STATE_ERR", function() { input.setSelectionRange(0, 0); });
assert_throws("INVALID_STATE_ERR", function() { input.setRangeText('', 0, 0); });

Powered by Google App Engine
This is Rietveld 408576698