OLD | NEW |
(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 selectionComplete = false; |
| 19 description('Test that flickering is observed on text selection when culled
inline is selected'); |
| 20 |
| 21 document.onselectionchange = function () { |
| 22 shouldBeFalse("window.getSelection().containsNode(document.getElementByI
d('noRange'))"); |
| 23 if (selectionComplete) |
| 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 selectionComplete = true; |
| 37 } |
| 38 </script> |
OLD | NEW |