Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <link rel="stylesheet" href="../fast/events/touch/resources/compositor-touch-hit -rects.css"> | |
| 5 </head> | |
| 6 <body> | |
| 7 <p id="discription"> | |
| 8 This test makes sure that touch hit rects are reported for fullscreen HTML5 | |
| 9 video control elements when | |
|
Rick Byers
2014/06/12 15:47:20
I'm not sure what "document handler is false" mean
| |
| 10 RuntimeEnabledFeatures::overlayFullscreenVideoEnabled() is true and the | |
| 11 document handler if false. | |
| 12 </p> | |
| 13 <video id="video" width="300"></video> | |
| 14 <script src="full-screen-test.js"></script> | |
| 15 <script src="../fast/events/touch/resources/compositor-touch-hit-rects.js"></scr ipt> | |
| 16 <script> | |
| 17 var log = consoleWrite; | |
| 18 | |
| 19 if (window.testRunner) | |
| 20 testRunner.dumpAsText(); | |
| 21 | |
| 22 window.onload = function () { | |
| 23 document.addEventListener('touchstart', function() { }); | |
| 24 | |
| 25 consoleWrite("Should have single rect on document before fullscreen"); | |
| 26 logRects('handler'); | |
| 27 | |
| 28 waitForEvent(document, 'webkitfullscreenchange', function() { | |
| 29 if (window.internals.runtimeFlags.overlayFullscreenVideoEnabled) | |
| 30 consoleWrite("Should report another rect which is not on the documen t"); | |
| 31 else | |
| 32 consoleWrite("Should keep rect on document"); | |
| 33 logRects('handler'); | |
| 34 endTest(); | |
| 35 }); | |
| 36 | |
| 37 runWithKeyDown(function(){document.querySelector('#video').webkitRequestFull Screen()}); | |
| 38 } | |
| 39 </script> | |
| 40 </body> | |
| 41 </html> | |
| OLD | NEW |