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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 .style1 { font-size: 14px; color: #CC3300; }
4 .text1 { font-size: 11px; color: #7f0000; }
5 </style>
6 <div id="test" class="style1">
7 <font>
8 <span class="text1">Some Text1 <span id="noRange" style="font-weight: 400"> <b>S ome Text2</b></span><br>Some Text3<br><b id="lastLine">Some Text4</b><br></span>
9 </font>
10 </div>
11 <p id="description">
12 <div id="console">
13 </div>
14 </p>
15 <script src="../../resources/js-test.js"></script>
16 <script>
17 jsTestIsAsync = true;
18 var testDone = false;
pdr. 2015/02/18 00:00:49 Nit: lets rename this selectionComplete
Miyoung Shin(g) 2015/02/18 08:28:26 Done.
19 description('Test that flickering is observed on text selection when culled inline is selected')
pdr. 2015/02/18 00:00:49 Nit: missing semicolon.
Miyoung Shin(g) 2015/02/18 08:28:26 Done.
20
21 document.onselectionchange = function () {
22 shouldBeFalse("window.getSelection().containsNode(document.getElementByI d('noRange'))");
23 if (testDone)
24 finishJSTest();
25 }
26
27 if (window.testRunner && window.eventSender) {
28 var lastLine = document.getElementById('lastLine');
29
30 eventSender.mouseMoveTo(lastLine.offsetLeft + 10, lastLine.offsetTop + l astLine.offsetHeight);
31 eventSender.mouseDown();
32
33 // move to the position of culled inline.
34 eventSender.mouseMoveTo(lastLine.offsetLeft + 10, lastLine.offsetTop - 1 );
35 eventSender.mouseUp();
36 testDone = true;
37 }
38 </script>
OLDNEW
« 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