-
Notifications
You must be signed in to change notification settings - Fork 3k
/
video_002.htm
55 lines (47 loc) · 1.55 KB
/
video_002.htm
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE HTML>
<html>
<head>
<title>HTML5 Media Elements: 'buffered' returns a TimeRanges object.</title>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/html5/video.html#dom-media-buffered" />
<meta name="assert" content="'buffered' returns a TimeRanges object." />
<script type="text/javascript" src="../../../../common/media.js"></script>
</head>
<body>
<pre>
'buffered' returns a TimeRanges object.
</pre>
<table id='testtable' border='1'>
<tr>
<td>Test Result</td>
<td>Test Assertion</td>
</tr>
<tr>
<td id='test_0_result'>FAIL</td>
<td id='test_0_assertion'>Test passes if the text 'PASS' appears to the left and the text 'Your browser does not support media elements.' does not appear anywhere on this page.</td>
</tr>
</table>
<pre>
http://www.w3.org/TR/html5/video.html#dom-media-buffered
The buffered attribute must return a new static normalized TimeRanges
object that represents the ranges of the media resource, if any, that
the user agent has buffered, at the time the attribute is evaluated.
</pre>
<div id='testcontent'>
<video id="video0">Your browser does not support media elements.</video>
<script type="text/javascript">
try
{
if (document.getElementById("video0").buffered instanceof TimeRanges)
{
passTest();
}
}
catch(ex)
{
}
</script>
</div>
</body>
</html>