2 <p>This tests that the video element's "controls" attribute is overridden in full screen mode, and that the controls are correctly hidden upon exiting full screen. Press any key to continue.</p>
3 <video id="video" width="300"></video>
4 <script src="full-screen-test.js"></script>
10 var fullscreenChanged = function(event)
15 waitForEvent(document, 'webkitfullscreenchange', fullscreenChanged);
17 var video = document.getElementById('video');
19 var videoEnteredFullScreen = function() {
20 if (window.internals) {
21 testExpected("shadowRoot = internals.shadowRoot(video)", null, "!=");
22 testExpected("panel = shadowRoot.firstChild.firstChild", null, "!=");
23 testExpected("internals.shadowPseudoId(panel)", "-webkit-media-controls-panel");
24 testExpected("document.defaultView.getComputedStyle(panel)['display']", 'none', "!=");
25 testExpected("document.defaultView.getComputedStyle(panel)['height']", '48px');
28 logResult(false, "window.internals == undefined");
30 callback = cancelledFullScreen;
31 document.webkitCancelFullScreen();
34 var cancelledFullScreen = function() {
35 if (window.layoutTestController)
36 testExpected("document.defaultView.getComputedStyle(panel)['display']", 'none');
38 logResult(false, "window.layoutTestController == undefined");
43 callback = videoEnteredFullScreen;
44 runWithKeyDown(function(){video.webkitRequestFullScreen()});