summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/media/media-startTime.html
blob: afe21eb11fc291aeb4518dda089461c4387419d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<html>
    <head>
        <title>startTime attribute test</title>
        <script src=media-file.js></script>
        <script src=video-test.js></script>

        <script>
            function loadeddata()
            {
                testExpected("video.startTime", 0);
                run("video.startTime = 10");
                testExpected("video.startTime", 0);
                endTest();
            }

            function start()
            {
                findMediaElement();
                waitForEvent('loadeddata', loadeddata);

                var mediaFile = findMediaFile("video", "content/test");
                disableFullTestDetailsPrinting();
                runSilently("video.src = '" + mediaFile + "'");
                enableFullTestDetailsPrinting();
            }

        </script>
    </head>

    <body onload="start()">
        <video controls> </video>
    <p>Test the, so far unused, 'startTime' attribute.</p>
    
    </body>
</html>