Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <title>Clicking on the overflow fullscreen button opens the video in fullscreen. </title> | |
| 3 <script src="../resources/testharness.js"></script> | |
| 4 <script src="../resources/testharnessreport.js"></script> | |
| 5 <script src="media-controls.js"></script> | |
| 6 <script src="media-file.js"></script> | |
| 7 <script src="overflow-menu.js"></script> | |
| 8 | |
| 9 <!--Padding ensures the overflow menu is visible for the tests. --> | |
| 10 <body style="padding: 300px"> | |
| 11 <video controls></video> | |
| 12 <script> | |
| 13 async_test(function(t) { | |
| 14 // Set up video | |
| 15 var video = document.querySelector("video"); | |
| 16 video.src = findMediaFile("video", "content/test"); | |
| 17 video.setAttribute("width", "60"); | |
| 18 window.addEventListener("load", t.step_func(function() { | |
| 19 var overflowList = getOverflowList(video); | |
| 20 var overflowMenu = getOverflowMenuButton(video); | |
| 21 | |
| 22 // Click on the overflow menu button | |
| 23 var coords = elementCoordinates(overflowMenu); | |
| 24 clickAtCoordinates(coords[0], coords[1]); | |
| 25 | |
| 26 // Clicking on the fullscreen button should open up the video in fullscreen | |
| 27 var coords = elementCoordinates(overflowList.children[OverflowMenuButtons.FU LLSCREEN]); | |
| 28 clickAtCoordinates(coords[0], coords[1]); | |
| 29 })); | |
| 30 video.addEventListener("webkitfullscreenchange", t.step_func_done()); | |
|
mlamouri (slow - plz ping)
2016/09/06 10:25:45
We don't have a unprefixed version?
kdsilva
2016/09/06 17:32:45
Done.
| |
| 31 }); | |
| 32 </script> | |
| 33 </body> | |
| OLD | NEW |