cfleizach@apple.com | 825194c | 2013-11-06 14:15:42 +0000 | [diff] [blame] | 1 | |
eric.carlson@apple.com | 533efe6 | 2009-08-14 17:58:15 +0000 | [diff] [blame] | 2 | Test of the media element 'played' attribute, ranges part 1. |
simon.fraser@apple.com | ec72363 | 2009-04-22 22:59:23 +0000 | [diff] [blame] | 3 | |
simon.fraser@apple.com | ec72363 | 2009-04-22 22:59:23 +0000 | [diff] [blame] | 4 | EVENT(loadstart) |
| 5 | EVENT(loadedmetadata) |
| 6 | EVENT(canplay) |
| 7 | Test 1 OK |
simon.fraser@apple.com | 6c3824c | 2009-04-24 22:52:45 +0000 | [diff] [blame] | 8 | |
| 9 | Test playing when there are no ranges |
joepeck@webkit.org | a6dfe9c | 2017-04-28 03:33:57 +0000 | [diff] [blame] | 10 | RUN(handlePromise(video.play())) |
simon.fraser@apple.com | ec72363 | 2009-04-22 22:59:23 +0000 | [diff] [blame] | 11 | RUN(video.pause()) |
| 12 | EVENT(pause) |
| 13 | Test 2 OK |
| 14 | Test 3 OK |
| 15 | Test 4 OK |
| 16 | |
| 17 | Test jumping forward into a new range and play |
joepeck@webkit.org | a6dfe9c | 2017-04-28 03:33:57 +0000 | [diff] [blame] | 18 | RUN(handlePromise(video.play())) |
simon.fraser@apple.com | ec72363 | 2009-04-22 22:59:23 +0000 | [diff] [blame] | 19 | RUN(video.pause()) |
| 20 | EVENT(pause) |
| 21 | Test 5 OK |
| 22 | Test 6 OK |
| 23 | Test 7 OK |
| 24 | Test 8 OK |
| 25 | Test 9 OK |
| 26 | |
| 27 | Test jumping backwards into a new range and play, should insert new range |
joepeck@webkit.org | a6dfe9c | 2017-04-28 03:33:57 +0000 | [diff] [blame] | 28 | RUN(handlePromise(video.play())) |
simon.fraser@apple.com | ec72363 | 2009-04-22 22:59:23 +0000 | [diff] [blame] | 29 | RUN(video.pause()) |
| 30 | EVENT(pause) |
| 31 | Test 10 OK |
| 32 | Test 11 OK |
| 33 | Test 12 OK |
| 34 | Test 13 OK |
| 35 | Test 14 OK |
| 36 | Test 15 OK |
| 37 | Test 16 OK |
| 38 | |
simon.fraser@apple.com | 4b71232 | 2009-04-28 05:14:16 +0000 | [diff] [blame] | 39 | Test playing into an existing range, should extend range start |
joepeck@webkit.org | a6dfe9c | 2017-04-28 03:33:57 +0000 | [diff] [blame] | 40 | RUN(handlePromise(video.play())) |
simon.fraser@apple.com | ec72363 | 2009-04-22 22:59:23 +0000 | [diff] [blame] | 41 | RUN(video.pause()) |
| 42 | EVENT(pause) |
| 43 | Test 17 OK |
| 44 | Test 18 OK |
| 45 | Test 19 OK |
| 46 | Test 20 OK |
| 47 | Test 21 OK |
| 48 | Test 22 OK |
| 49 | Test 23 OK |
| 50 | |
simon.fraser@apple.com | 4b71232 | 2009-04-28 05:14:16 +0000 | [diff] [blame] | 51 | Test jumping into an existing range and play beyond end, should extend range end |
joepeck@webkit.org | a6dfe9c | 2017-04-28 03:33:57 +0000 | [diff] [blame] | 52 | RUN(handlePromise(video.play())) |
simon.fraser@apple.com | ec72363 | 2009-04-22 22:59:23 +0000 | [diff] [blame] | 53 | RUN(video.pause()) |
| 54 | EVENT(pause) |
| 55 | Test 24 OK |
| 56 | Test 25 OK |
| 57 | Test 26 OK |
| 58 | Test 27 OK |
| 59 | Test 28 OK |
| 60 | Test 29 OK |
| 61 | Test 30 OK |
simon.fraser@apple.com | ec72363 | 2009-04-22 22:59:23 +0000 | [diff] [blame] | 62 | END OF TEST |
| 63 | |