blob: 5c7d99836a7aa504a52a41125465b3ea9c262db6 [file] [log] [blame]
cfleizach@apple.com825194c2013-11-06 14:15:42 +00001
eric.carlson@apple.com533efe62009-08-14 17:58:15 +00002Test of the media element 'played' attribute, ranges part 1.
simon.fraser@apple.comec723632009-04-22 22:59:23 +00003
simon.fraser@apple.comec723632009-04-22 22:59:23 +00004EVENT(loadstart)
5EVENT(loadedmetadata)
6EVENT(canplay)
7Test 1 OK
simon.fraser@apple.com6c3824c2009-04-24 22:52:45 +00008
9Test playing when there are no ranges
joepeck@webkit.orga6dfe9c2017-04-28 03:33:57 +000010RUN(handlePromise(video.play()))
simon.fraser@apple.comec723632009-04-22 22:59:23 +000011RUN(video.pause())
12EVENT(pause)
13Test 2 OK
14Test 3 OK
15Test 4 OK
16
17Test jumping forward into a new range and play
joepeck@webkit.orga6dfe9c2017-04-28 03:33:57 +000018RUN(handlePromise(video.play()))
simon.fraser@apple.comec723632009-04-22 22:59:23 +000019RUN(video.pause())
20EVENT(pause)
21Test 5 OK
22Test 6 OK
23Test 7 OK
24Test 8 OK
25Test 9 OK
26
27Test jumping backwards into a new range and play, should insert new range
joepeck@webkit.orga6dfe9c2017-04-28 03:33:57 +000028RUN(handlePromise(video.play()))
simon.fraser@apple.comec723632009-04-22 22:59:23 +000029RUN(video.pause())
30EVENT(pause)
31Test 10 OK
32Test 11 OK
33Test 12 OK
34Test 13 OK
35Test 14 OK
36Test 15 OK
37Test 16 OK
38
simon.fraser@apple.com4b712322009-04-28 05:14:16 +000039Test playing into an existing range, should extend range start
joepeck@webkit.orga6dfe9c2017-04-28 03:33:57 +000040RUN(handlePromise(video.play()))
simon.fraser@apple.comec723632009-04-22 22:59:23 +000041RUN(video.pause())
42EVENT(pause)
43Test 17 OK
44Test 18 OK
45Test 19 OK
46Test 20 OK
47Test 21 OK
48Test 22 OK
49Test 23 OK
50
simon.fraser@apple.com4b712322009-04-28 05:14:16 +000051Test jumping into an existing range and play beyond end, should extend range end
joepeck@webkit.orga6dfe9c2017-04-28 03:33:57 +000052RUN(handlePromise(video.play()))
simon.fraser@apple.comec723632009-04-22 22:59:23 +000053RUN(video.pause())
54EVENT(pause)
55Test 24 OK
56Test 25 OK
57Test 26 OK
58Test 27 OK
59Test 28 OK
60Test 29 OK
61Test 30 OK
simon.fraser@apple.comec723632009-04-22 22:59:23 +000062END OF TEST
63