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

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-controls-transformed.html

Issue 2015503002: Move TODO(philipj) to TODO(foolip) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <title>Test controls on transformed video</title> 3 <title>Test controls on transformed video</title>
4 <style type="text/css" media="screen"> 4 <style type="text/css" media="screen">
5 video { 5 video {
6 margin: 50px; 6 margin: 50px;
7 transform: rotate(20deg); 7 transform: rotate(20deg);
8 } 8 }
9 </style> 9 </style>
10 </head> 10 </head>
11 <body> 11 <body>
12 <video controls></video> 12 <video controls></video>
13 <p>Test controls on transformed video.</p> 13 <p>Test controls on transformed video.</p>
14 <p>This test only runs in DRT!</p> 14 <p>This test only runs in DRT!</p>
15 <script src=media-file.js></script> 15 <script src=media-file.js></script>
16 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 16 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956
17 (Please avoid writing new tests using video-test.js) --> 17 (Please avoid writing new tests using video-test.js) -->
18 <script src=video-test.js></script> 18 <script src=video-test.js></script>
19 <script src=media-controls.js></script> 19 <script src=media-controls.js></script>
20 <script> 20 <script>
21 testExpected("video.controls", null, '!='); 21 testExpected("video.controls", null, '!=');
22 waitForEvent('canplaythrough', function () { 22 waitForEvent('canplaythrough', function () {
23 if (window.eventSender) { 23 if (window.eventSender) {
24 // Find the play button and click the middle of its bounding box . 24 // Find the play button and click the middle of its bounding box .
25 var playCoords; 25 var playCoords;
26 try { 26 try {
27 playCoords = mediaControlsButtonCoordinates(video, "play-but ton"); 27 playCoords = mediaControlsButtonCoordinates(video, "play-but ton");
28 } catch (exception) { 28 } catch (exception) {
29 failTest(exception.description); 29 failTest(exception.description);
30 return; 30 return;
31 } 31 }
32 var clickX = playCoords[0]; 32 var clickX = playCoords[0];
33 var clickY = playCoords[1]; 33 var clickY = playCoords[1];
34 eventSender.mouseMoveTo(clickX, clickY); 34 eventSender.mouseMoveTo(clickX, clickY);
35 eventSender.mouseDown(); 35 eventSender.mouseDown();
36 eventSender.mouseUp(); 36 eventSender.mouseUp();
37 } 37 }
38 testExpected("video.paused", false); 38 testExpected("video.paused", false);
39 endTest(); 39 endTest();
40 } ); 40 } );
41 video.src = findMediaFile("video", "content/test"); 41 video.src = findMediaFile("video", "content/test");
42 </script> 42 </script>
43 </body> 43 </body>
44 </html> 44 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698