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

Unified Diff: third_party/WebKit/LayoutTests/fast/text/whitespace/select-new-line-with-line-break-normal.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/fast/text/whitespace/select-new-line-with-line-break-normal.html
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/select-new-line-with-line-break-normal.html b/third_party/WebKit/LayoutTests/fast/text/whitespace/select-new-line-with-line-break-normal.html
index e385223932c0350d0e0bdc1c989c204d9c7f5f11..7b47c7dd05d03bd8a48444c16b2685dd56561473 100644
--- a/third_party/WebKit/LayoutTests/fast/text/whitespace/select-new-line-with-line-break-normal.html
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/select-new-line-with-line-break-normal.html
@@ -5,8 +5,9 @@ fooooooooo baaaaaaaar
</div>
<script>
var text = document.querySelector('div').firstChild
+text.parentNode.focus();
window.getSelection().setBaseAndExtent(text, 11, text, 12);
// We don't care about the text dump. This is just testing painting of the selection.
if (window.testRunner)
testRunner.dumpAsTextWithPixelResults();
-</script>
+</script>

Powered by Google App Engine
This is Rietveld 408576698