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

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/keep-selection-after-set-focus.html

Issue 2616623002: Do not send redundant selectionchange-events (decouple focus) (Closed)
Patch Set: Fix spatnav tests (clear selection when focus goes to non editable element). Remove now invalid kee… 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
Index: third_party/WebKit/LayoutTests/editing/selection/keep-selection-after-set-focus.html
diff --git a/third_party/WebKit/LayoutTests/editing/selection/keep-selection-after-set-focus.html b/third_party/WebKit/LayoutTests/editing/selection/keep-selection-after-set-focus.html
deleted file mode 100644
index 55ca2a3d09a1a6d8b6d980aaab4579a30a8e69f9..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/editing/selection/keep-selection-after-set-focus.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<script src="../../resources/js-test.js"></script>
-<div id="container">
-<p contenteditable id="sample">01234567</p>
-<button id="button">This is a button</button>
-</div>
-<script>
-description('Selection should be kept after focus changed.');
-var selection = getSelection();
-var sample = document.getElementById('sample').firstChild;
-selection.collapse(sample, 3);
-selection.extend(sample, 6);
-document.getElementById('button').focus();
-shouldBe('selection.anchorNode', 'sample');
-shouldBe('selection.anchorOffset', '3');
-shouldBe('selection.focusNode', 'sample');
-shouldBe('selection.focusOffset', '6');
-document.getElementById('container').outerHTML = '';
-</script>

Powered by Google App Engine
This is Rietveld 408576698