-
Notifications
You must be signed in to change notification settings - Fork 3.1k
/
video_004.htm
38 lines (33 loc) · 1.29 KB
/
video_004.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
<!DOCTYPE HTML>
<html>
<head>
<title>HTML5 Media Elements: 'currentTime' is initially zero.</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#current-playback-position" />
<meta name="assert" content="'currentTime' is initially zero." />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script type="text/javascript" src="../../../../common/media.js"></script>
</head>
<body>
<pre>
'currentTime' is initially zero.
</pre>
<pre>
http://www.w3.org/TR/html5/video.html#current-playback-position
Media elements have a current playback position, which must initially be
zero. The current position is a time.
The currentTime attribute must, on getting, return the current playback
position, expressed in seconds.
</pre>
<div id='log'></div>
<video id="video0">Your browser does not support media elements.</video>
<script type="text/javascript">
test(function() {
assert_equals(document.getElementById("video0").currentTime, 0);
}, "'currentTime' is initially zero.");
</script>
</div>
</body>
</html>