OLD | NEW |
1 Test Encrypted Media extension of HTMLMediaElement canPlayType() method. | 1 Test Encrypted Media extension of HTMLMediaElement canPlayType() method. |
2 | 2 |
3 The test is designed to pass with any implementation regardless of supported med
ia types and relies on the expected log to detect the expected results for some
types. To get sufficient coverage, it is important that an implementation suppor
t clearkey encryption of at least one of the types below. | 3 The test is designed to pass with any implementation regardless of supported med
ia types and relies on the expected log to detect the expected results for some
types. To get sufficient coverage, it is important that an implementation suppor
t clearkey encryption of at least one of the types below. |
4 | 4 |
5 Always return the empty string for no type. | |
6 EXPECTED (video.canPlayType() == '') OK | |
7 | 5 |
8 Always return the empty string for an empty type. | 6 Always return the empty string for an empty type. |
9 EXPECTED (video.canPlayType('') == '') OK | 7 EXPECTED (video.canPlayType('') == '') OK |
10 EXPECTED (video.canPlayType('', '') == '') OK | 8 EXPECTED (video.canPlayType('', '') == '') OK |
11 EXPECTED (video.canPlayType('', null) == '') OK | 9 EXPECTED (video.canPlayType('', null) == '') OK |
12 EXPECTED (video.canPlayType('', undefined) == '') OK | 10 EXPECTED (video.canPlayType('', undefined) == '') OK |
13 EXPECTED (video.canPlayType('', 'webkit-org.w3.clearkey') == '') OK | 11 EXPECTED (video.canPlayType('', 'webkit-org.w3.clearkey') == '') OK |
14 EXPECTED (video.canPlayType('', 'WeBkIt-OrG.W3.ClEaRkEy') == '') OK | 12 EXPECTED (video.canPlayType('', 'WeBkIt-OrG.W3.ClEaRkEy') == '') OK |
15 EXPECTED (video.canPlayType('', 'com.example.invalid') == '') OK | 13 EXPECTED (video.canPlayType('', 'com.example.invalid') == '') OK |
16 | 14 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 Result of video.canPlayType('video/webm'): 'maybe' | 64 Result of video.canPlayType('video/webm'): 'maybe' |
67 EXPECTED (video.canPlayType('video/webm', '') == 'maybe') OK | 65 EXPECTED (video.canPlayType('video/webm', '') == 'maybe') OK |
68 EXPECTED (video.canPlayType('video/webm', null) == 'maybe') OK | 66 EXPECTED (video.canPlayType('video/webm', null) == 'maybe') OK |
69 EXPECTED (video.canPlayType('video/webm', undefined) == 'maybe') OK | 67 EXPECTED (video.canPlayType('video/webm', undefined) == 'maybe') OK |
70 All implementations that support WebM and Encrypted Media support encrypted WebM
. | 68 All implementations that support WebM and Encrypted Media support encrypted WebM
. |
71 EXPECTED (video.canPlayType('video/webm', 'webkit-org.w3.clearkey') == 'maybe')
OK | 69 EXPECTED (video.canPlayType('video/webm', 'webkit-org.w3.clearkey') == 'maybe')
OK |
72 EXPECTED (video.canPlayType('video/webm', 'WeBkIt-OrG.W3.ClEaRkEy') == 'maybe')
OK | 70 EXPECTED (video.canPlayType('video/webm', 'WeBkIt-OrG.W3.ClEaRkEy') == 'maybe')
OK |
73 EXPECTED (video.canPlayType('video/webm', 'com.example.invalid') == '') OK | 71 EXPECTED (video.canPlayType('video/webm', 'com.example.invalid') == '') OK |
74 END OF TEST | 72 END OF TEST |
75 | 73 |
OLD | NEW |