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

Side by Side Diff: LayoutTests/media/video-controls-start-selection.html

Issue 838003005: Don't allow text selection to start on a HTMLMediaElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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/media/video-controls-start-selection-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 <script src="../resources/js-test.js"></script>
3 <p>Start selection on video with controls</p>
4 <video controls></video>
5 <span>Some text here</span>
6 <script>
7 var video = document.querySelector('video');
8 var span = document.querySelector('span');
9 if (window.eventSender) {
10 eventSender.mouseMoveTo(video.offsetLeft + video.offsetWidth / 2, video. offsetTop + video.offsetHeight / 2);
11 eventSender.mouseDown();
12 eventSender.mouseMoveTo(span.offsetLeft + span.offsetWidth / 2, span.off setTop + span.offsetHeight / 2);
13 eventSender.mouseUp();
14 }
15 shouldBe('document.getSelection().rangeCount', '0');
16 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/media/video-controls-start-selection-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698