summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/media/video-seek-no-src-exception.html
blob: 4eccf912728c247296c09c31fdc2788ef9d4ede3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<html>
<body>

    <video loop controls></video>
    
    <p>Test that seeking video with no 'src' attribute throws an INVALID_STATE_ERR exception.</p>

    <script src=video-test.js></script>
    <script>
        testExpected("video.networkState", HTMLMediaElement.NETWORK_EMPTY);
        testExpected("video.readyState", HTMLMediaElement.HAVE_NOTHING);
        testDOMException("video.currentTime = 1.1", "DOMException.INVALID_STATE_ERR");
        setTimeout(endTest, 200) 
    </script>
    
</body>
</html>