| <!DOCTYPE html><!-- webkit-test-runner [ enableModernMediaControls=false ] --> |
| <script src='video-test.js'></script> |
| <script src='media-controls.js'></script> |
| failTest('This test must be run in DumpRenderTree or WebKitTestRunner.'); |
| video = document.getElementById('fr').contentDocument.querySelector('video'); |
| panel = mediaControlsElement(internals.shadowRoot(video).firstChild, '-webkit-media-controls-panel'); |
| testExpected('panel.offsetWidth', 1, '>'); |
| testExpected('panel.offsetHeight', 1, '>'); |
| This tests that in a standalone media document with audio content, the media element has visible controls. |
| <iframe src='content/test.wav' id='fr' width=380 height=330 onload='runTest()'></iframe> |