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

Side by Side Diff: LayoutTests/fullscreen/video-controls-timeline.html

Issue 662243003: Use ::-internal-media-controls* instead of ::-webkit-media-controls* (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: introduce PseudoInternalCustomElement Created 6 years, 2 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 | Annotate | Revision Log
OLDNEW
1 <body> 1 <body>
2 <p>This tests that the video element's timeline controls are draggable in fu ll screen. Press any key to continue.</p> 2 <p>This tests that the video element's timeline controls are draggable in fu ll screen. Press any key to continue.</p>
3 <video id="video" width="300" controls></video> 3 <video id="video" width="300" controls></video>
4 <script> 4 <script>
5 if (window.internals) 5 if (window.internals)
6 runPixelTests = internals.runtimeFlags.overlayFullscreenVideoEnabled ; 6 runPixelTests = internals.runtimeFlags.overlayFullscreenVideoEnabled ;
7 </script> 7 </script>
8 <script src="full-screen-test.js"></script> 8 <script src="full-screen-test.js"></script>
9 <script src="../media/media-controls.js"></script> 9 <script src="../media/media-controls.js"></script>
10 <script src="../media/media-file.js"></script> 10 <script src="../media/media-file.js"></script>
11 <script> 11 <script>
12 var video = document.getElementById('video'); 12 var video = document.getElementById('video');
13 var timeline; 13 var timeline;
14 14
15 waitForEvent(document, 'webkitfullscreenchange', function() { 15 waitForEvent(document, 'webkitfullscreenchange', function() {
16 if (window.internals) { 16 if (window.internals) {
17 timeline = mediaControlsElement(internals.shadowRoot(video).firs tChild, '-webkit-media-controls-timeline'); 17 timeline = mediaControlsElement(internals.shadowRoot(video).firs tChild, '-internal-media-controls-timeline');
18 var box = internals.boundingBox(timeline); 18 var box = internals.boundingBox(timeline);
19 19
20 eventSender.mouseMoveTo(box.left + 5, box.top + 5); 20 eventSender.mouseMoveTo(box.left + 5, box.top + 5);
21 21
22 waitForEvent(timeline, 'mousedown'); 22 waitForEvent(timeline, 'mousedown');
23 eventSender.mouseDown(); 23 eventSender.mouseDown();
24 24
25 waitForEventAndEnd(timeline, 'mouseup'); 25 waitForEventAndEnd(timeline, 'mouseup');
26 eventSender.mouseUp(); 26 eventSender.mouseUp();
27 } 27 }
28 else 28 else
29 logResult(false, "window.internals == undefined"); 29 logResult(false, "window.internals == undefined");
30 }); 30 });
31 31
32 waitForEvent(video, 'canplaythrough', function() { 32 waitForEvent(video, 'canplaythrough', function() {
33 runWithKeyDown(function(){video.webkitRequestFullScreen()}); 33 runWithKeyDown(function(){video.webkitRequestFullScreen()});
34 }); 34 });
35 35
36 video.src = findMediaFile('video', '../media/content/test'); 36 video.src = findMediaFile('video', '../media/content/test');
37 </script> 37 </script>
38 </body> 38 </body>
OLDNEW
« no previous file with comments | « LayoutTests/fullscreen/video-controls-override-expected.txt ('k') | LayoutTests/media/controls-css-overload.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698