~ubuntu-branches/ubuntu/raring/qtwebkit-source/raring-proposed

« back to all changes in this revision

Viewing changes to ManualTests/media-muted.html

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-02-18 14:24:18 UTC
  • Revision ID: package-import@ubuntu.com-20130218142418-eon0jmjg3nj438uy
Tags: upstream-2.3
ImportĀ upstreamĀ versionĀ 2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
    <!-- LayoutTests location is hard-coded to avoid duplication of code. -->
 
3
    <script src="http://svn.webkit.org/repository/webkit/trunk/LayoutTests/media/media-file.js"></script>
 
4
    <script>
 
5
        var vid;
 
6
 
 
7
        function canplaythrough()
 
8
        {
 
9
            vid.play();
 
10
        }
 
11
 
 
12
        function load()
 
13
        {
 
14
            vid = document.getElementById('vid');
 
15
            vid.addEventListener('canplaythrough', canplaythrough);
 
16
 
 
17
            // Mute first
 
18
            vid.muted = true;
 
19
 
 
20
            vid.src = "http://src.chromium.org/svn/trunk/src/chrome/test/data/media/" + findMediaFile("video", "bear");
 
21
        }
 
22
    </script>
 
23
 
 
24
    <body>
 
25
        <video id=vid controls autoplay>
 
26
        </video>
 
27
        <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>
 
28
        <input type="button" value="Load movie" onclick="load()">
 
29
        <br>
 
30
    </body>
 
31
 
 
32
</html>