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

Unified Diff: third_party/WebKit/LayoutTests/editing/inserting/insert-space-at-start-of-wrapped-line.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/inserting/insert-space-at-start-of-wrapped-line.html
diff --git a/third_party/WebKit/LayoutTests/editing/inserting/insert-space-at-start-of-wrapped-line.html b/third_party/WebKit/LayoutTests/editing/inserting/insert-space-at-start-of-wrapped-line.html
index 9defdf2967ec3c89f125d0bc6d51ddd85bf2ae17..784af7efd862443586967962841b860d77b656be 100644
--- a/third_party/WebKit/LayoutTests/editing/inserting/insert-space-at-start-of-wrapped-line.html
+++ b/third_party/WebKit/LayoutTests/editing/inserting/insert-space-at-start-of-wrapped-line.html
@@ -34,6 +34,7 @@
test(function () {
let editor = document.getElementById('plaintext');
let textNode = editor.firstChild;
+ editor.focus();
window.getSelection().setBaseAndExtent(textNode, 10, textNode, 10);
eventSender.keyDown(' ');
assert_equals(editor.textContent, '12345 \n 67', 'Line break should be inserted automatically');
@@ -42,6 +43,7 @@
test(function () {
let editor = document.getElementById('richedit');
let textNode = editor.firstChild;
+ editor.focus();
window.getSelection().setBaseAndExtent(textNode, 10, textNode, 10);
eventSender.keyDown(' ');
assert_equals(editor.textContent, '12345 67', 'Line break should NOT be inserted automatically');

Powered by Google App Engine
This is Rietveld 408576698