OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <title>startTime attribute test</title> | |
4 <script src=media-file.js></script> | |
5 <script src=video-test.js></script> | |
6 | |
7 <script> | |
8 function loadeddata() | |
9 { | |
10 testExpected("video.startTime", 0); | |
11 run("video.startTime = 10"); | |
12 testExpected("video.startTime", 0); | |
13 endTest(); | |
14 } | |
15 | |
16 function start() | |
17 { | |
18 findMediaElement(); | |
19 waitForEvent('loadeddata', loadeddata); | |
20 | |
21 var mediaFile = findMediaFile("video", "content/test"); | |
22 disableFullTestDetailsPrinting(); | |
23 runSilently("video.src = '" + mediaFile + "'"); | |
24 enableFullTestDetailsPrinting(); | |
25 } | |
26 | |
27 </script> | |
28 </head> | |
29 | |
30 <body onload="start()"> | |
31 <video controls> </video> | |
32 <p>Test the, so far unused, 'startTime' attribute.</p> | |
33 | |
34 </body> | |
35 </html> | |
OLD | NEW |