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

Unified Diff: LayoutTests/fast/events/drag-selects-culled-inlines.html

Issue 929883003: Resolve flickering the text selection when hitting culled inline. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | LayoutTests/fast/events/drag-selects-culled-inlines-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/events/drag-selects-culled-inlines.html
diff --git a/LayoutTests/fast/events/drag-selects-culled-inlines.html b/LayoutTests/fast/events/drag-selects-culled-inlines.html
new file mode 100644
index 0000000000000000000000000000000000000000..413ba7e0fe2a543ef54cb828e4219bcf16146c94
--- /dev/null
+++ b/LayoutTests/fast/events/drag-selects-culled-inlines.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<style>
+.style1 { font-size: 14px; color: #CC3300; }
+.text1 { font-size: 11px; color: #7f0000; }
+</style>
+<div id="test" class="style1">
+<font>
+<span class="text1">Some Text1 <span id="noRange" style="font-weight: 400"> <b>Some Text2</b></span><br>Some Text3<br><b id="lastLine">Some Text4</b><br></span>
+</font>
+</div>
+<p id="description">
+<div id="console">
+</div>
+</p>
+<script src="../../resources/js-test.js"></script>
+<script>
+ jsTestIsAsync = true;
+ var selectionComplete = false;
+ description('Test that flickering is observed on text selection when culled inline is selected');
+
+ document.onselectionchange = function () {
+ shouldBeFalse("window.getSelection().containsNode(document.getElementById('noRange'))");
+ if (selectionComplete)
+ finishJSTest();
+ }
+
+ if (window.testRunner && window.eventSender) {
+ var lastLine = document.getElementById('lastLine');
+
+ eventSender.mouseMoveTo(lastLine.offsetLeft + 10, lastLine.offsetTop + lastLine.offsetHeight);
+ eventSender.mouseDown();
+
+ // move to the position of culled inline.
+ eventSender.mouseMoveTo(lastLine.offsetLeft + 10, lastLine.offsetTop - 1);
+ eventSender.mouseUp();
+ selectionComplete = true;
+ }
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/events/drag-selects-culled-inlines-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698