diff options
Diffstat (limited to 'ManualTests/media-muted.html')
-rw-r--r-- | ManualTests/media-muted.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/ManualTests/media-muted.html b/ManualTests/media-muted.html new file mode 100644 index 000000000..40e4e418c --- /dev/null +++ b/ManualTests/media-muted.html @@ -0,0 +1,32 @@ +<html> + <!-- LayoutTests location is hard-coded to avoid duplication of code. --> + <script src="http://svn.webkit.org/repository/webkit/trunk/LayoutTests/media/media-file.js"></script> + <script> + var vid; + + function canplaythrough() + { + vid.play(); + } + + function load() + { + vid = document.getElementById('vid'); + vid.addEventListener('canplaythrough', canplaythrough); + + // Mute first + vid.muted = true; + + vid.src = "http://src.chromium.org/svn/trunk/src/chrome/test/data/media/" + findMediaFile("video", "bear"); + } + </script> + + <body> + <video id=vid controls autoplay> + </video> + <p>TEST: Video should be muted (e.g., controls) and also produce no sound (<a href="https://bugs.webkit.org/show_bug.cgi?id=57673">bug 57673</a>).</p> + <input type="button" value="Load movie" onclick="load()"> + <br> + </body> + +</html> |