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

Unified Diff: third_party/WebKit/LayoutTests/editing/undo/type_with_mutation_event_undo_order.html

Issue 2709983005: Selection API: Do not change focus by Selection functions. (Closed)
Patch Set: . 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/undo/type_with_mutation_event_undo_order.html
diff --git a/third_party/WebKit/LayoutTests/editing/undo/type_with_mutation_event_undo_order.html b/third_party/WebKit/LayoutTests/editing/undo/type_with_mutation_event_undo_order.html
index 56a5aba08bdf8a9f188b04eba89b4611e3e82f96..cb48a29d7ec8b47b9b085a3541fb1262df4a9207 100644
--- a/third_party/WebKit/LayoutTests/editing/undo/type_with_mutation_event_undo_order.html
+++ b/third_party/WebKit/LayoutTests/editing/undo/type_with_mutation_event_undo_order.html
@@ -18,6 +18,7 @@ test(() => {
const document = selection.document;
const div1 = document.getElementById('div1');
const div2 = document.getElementById('div2');
+ div1.focus();
eventSender.keyDown('a');
div1.addEventListener('DOMSubtreeModified', () => {
div2.focus();
@@ -46,6 +47,7 @@ test(() => {
const document = selection.document;
const div1 = document.getElementById('div1');
const div2 = document.getElementById('div2');
+ div1.focus();
eventSender.keyDown('a');
div1.addEventListener('DOMSubtreeModified', () => {
div2.focus();
@@ -76,6 +78,7 @@ test(() => {
const document = selection.document;
const div1 = document.getElementById('div1');
const div2 = document.getElementById('div2');
+ div1.focus();
eventSender.keyDown('a');
div1.addEventListener('DOMSubtreeModified', () => {
div2.focus();
@@ -104,6 +107,7 @@ test(() => {
const document = selection.document;
const div1 = document.getElementById('div1');
const div2 = document.getElementById('div2');
+ div1.focus();
eventSender.keyDown('a');
div1.addEventListener('DOMSubtreeModified', () => {
div2.focus();

Powered by Google App Engine
This is Rietveld 408576698