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

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/mouse/drag_user_select_none.html

Issue 2891693002: Make mouse drag to ignore unfocused selection (Closed)
Patch Set: 2017-05-19T15:07:18 Created 3 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/editing/selection/mouse/drag_user_select_none.html
diff --git a/third_party/WebKit/LayoutTests/editing/selection/mouse/drag_user_select_none.html b/third_party/WebKit/LayoutTests/editing/selection/mouse/drag_user_select_none.html
index a4594b08ffb63c7f8005ab2842037c0a3d710aa2..3fa16db3fcd0d6595928340798e3d48c446a6b3a 100644
--- a/third_party/WebKit/LayoutTests/editing/selection/mouse/drag_user_select_none.html
+++ b/third_party/WebKit/LayoutTests/editing/selection/mouse/drag_user_select_none.html
@@ -27,9 +27,9 @@ test(function() {
var selection = window.getSelection();
var anchor = document.getElementById('anchor').firstChild;
- assert_equals(selection.anchorNode, anchor, 'anchorNode');
+ assert_equals(selection.anchorNode, null, 'anchorNode');
assert_equals(selection.anchorOffset, 0, 'anchorOffset');
- assert_equals(selection.focusNode, anchor, 'focusNode');
- assert_equals(selection.focusOffset, 2, 'focusOffset');
+ assert_equals(selection.focusNode, null, 'focusNode');
+ assert_equals(selection.focusOffset, 0, 'focusOffset');
});
</script>

Powered by Google App Engine
This is Rietveld 408576698