3 <title>Test controls on transformed video</title>
4 <style type="text/css" media="screen">
7 -webkit-transform: rotate(20deg);
12 <video controls></video>
13 <p>Test controls on transformed video.</p>
14 <p>This test only runs in DRT!</p>
15 <script src=media-file.js></script>
16 <script src=video-test.js></script>
17 <script src=media-controls.js></script>
19 testExpected("video.controls", null, '!=');
20 waitForEvent('canplaythrough', function () {
21 if (window.eventSender) {
22 // Find the play button and click the middle of its bounding box.
25 playCoords = mediaControlsButtonCoordinates(video, "play-button");
27 failTest(exception.description);
30 var clickX = playCoords[0];
31 var clickY = playCoords[1];
32 eventSender.mouseMoveTo(clickX, clickY);
33 eventSender.mouseDown();
34 eventSender.mouseUp();
36 testExpected("video.paused", false);
39 video.src = findMediaFile("video", "content/test");