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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/media/video-controls-start-selection-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/video-controls-start-selection.html
diff --git a/LayoutTests/media/video-controls-start-selection.html b/LayoutTests/media/video-controls-start-selection.html
new file mode 100644
index 0000000000000000000000000000000000000000..a03b52a33919568939270edba2818edb1df7cd76
--- /dev/null
+++ b/LayoutTests/media/video-controls-start-selection.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<script src="../resources/js-test.js"></script>
+<p>Start selection on video with controls</p>
+<video controls></video>
+<span>Some text here</span>
+<script>
+ var video = document.querySelector('video');
+ var span = document.querySelector('span');
+ if (window.eventSender) {
+ eventSender.mouseMoveTo(video.offsetLeft + video.offsetWidth / 2, video.offsetTop + video.offsetHeight / 2);
+ eventSender.mouseDown();
+ eventSender.mouseMoveTo(span.offsetLeft + span.offsetWidth / 2, span.offsetTop + span.offsetHeight / 2);
+ eventSender.mouseUp();
+ }
+ shouldBe('document.getSelection().rangeCount', '0');
+</script>
« 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