| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 5 (Please avoid writing new tests using video-test.js) --> |
| 4 <script src="video-test.js"></script> | 6 <script src="video-test.js"></script> |
| 5 <script> | 7 <script> |
| 6 var startTest = function() { | 8 var startTest = function() { |
| 7 if (!window.eventSender) { | 9 if (!window.eventSender) { |
| 8 logResult(false, "This test requires window.eventSender."); | 10 logResult(false, "This test requires window.eventSender."); |
| 9 return; | 11 return; |
| 10 } | 12 } |
| 11 | 13 |
| 12 findMediaElement(); | 14 findMediaElement(); |
| 13 var rect = video.getBoundingClientRect(); | 15 var rect = video.getBoundingClientRect(); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 27 | 29 |
| 28 endTest(); | 30 endTest(); |
| 29 }; | 31 }; |
| 30 </script> | 32 </script> |
| 31 </head> | 33 </head> |
| 32 <body onload="startTest();"> | 34 <body onload="startTest();"> |
| 33 <p>This tests that a mouse click event will not cause a media element to
gain focus.</p> | 35 <p>This tests that a mouse click event will not cause a media element to
gain focus.</p> |
| 34 <video id="video" controls></video> | 36 <video id="video" controls></video> |
| 35 </body> | 37 </body> |
| 36 </html> | 38 </html> |
| OLD | NEW |