OLD | NEW |
1 Test that the methods throw INVALID_STATE_ERR when the media element has not loa
ded. canPlayType() never throws. | 1 Test that the methods throw INVALID_STATE_ERR when the media element has not loa
ded. canPlayType() never throws. |
2 | 2 |
3 EXPECTED (video.networkState == '0') OK | 3 EXPECTED (video.networkState == '0') OK |
4 EXPECTED (video.currentSrc == '') OK | 4 EXPECTED (video.currentSrc == '') OK |
5 No 'src'. Verify that all methods except canPlayType() throw INVALID_STATE_ERR. | 5 No 'src'. Verify that all methods except canPlayType() throw INVALID_STATE_ERR. |
6 TEST(video.webkitGenerateKeyRequest('webkit-org.w3.clearkey')) THROWS(DOMExcepti
on.INVALID_STATE_ERR: Failed to execute 'webkitGenerateKeyRequest' on 'HTMLMedia
Element': No media has been loaded.) OK | 6 TEST(video.webkitGenerateKeyRequest('webkit-org.w3.clearkey')) THROWS(DOMExcepti
on.INVALID_STATE_ERR: Failed to execute 'webkitGenerateKeyRequest' on 'HTMLMedia
Element': No media has been loaded.) OK |
7 TEST(video.webkitAddKey('webkit-org.w3.clearkey', key)) THROWS(DOMException.INVA
LID_STATE_ERR: Failed to execute 'webkitAddKey' on 'HTMLMediaElement': No media
has been loaded.) OK | 7 TEST(video.webkitAddKey('webkit-org.w3.clearkey', key)) THROWS(DOMException.INVA
LID_STATE_ERR: Failed to execute 'webkitAddKey' on 'HTMLMediaElement': No media
has been loaded.) OK |
8 TEST(video.webkitCancelKeyRequest('webkit-org.w3.clearkey')) THROWS(DOMException
.INVALID_STATE_ERR: Failed to execute 'webkitCancelKeyRequest' on 'HTMLMediaElem
ent': No media has been loaded.) OK | 8 TEST(video.webkitCancelKeyRequest('webkit-org.w3.clearkey')) THROWS(DOMException
.INVALID_STATE_ERR: Failed to execute 'webkitCancelKeyRequest' on 'HTMLMediaElem
ent': No media has been loaded.) OK |
9 RUN(video.canPlayType('audio/wav', 'webkit-org.w3.clearkey')) | 9 RUN(video.canPlayType('audio/wav', 'webkit-org.w3.clearkey')) |
10 | 10 |
11 'src' has been set, but loading has not yet started. Verify that all methods exc
ept canPlayType() throw INVALID_STATE_ERR. | 11 'src' has been set, but loading has not yet started. Verify that all methods exc
ept canPlayType() throw INVALID_STATE_ERR. |
12 EXPECTED (video.networkState == '3') OK | 12 EXPECTED (video.networkState == '3') OK |
13 EXPECTED (video.currentSrc == '') OK | 13 EXPECTED (video.currentSrc == '') OK |
14 TEST(video.webkitGenerateKeyRequest('webkit-org.w3.clearkey')) THROWS(DOMExcepti
on.INVALID_STATE_ERR: Failed to execute 'webkitGenerateKeyRequest' on 'HTMLMedia
Element': The player is in an invalid state.) OK | 14 TEST(video.webkitGenerateKeyRequest('webkit-org.w3.clearkey')) THROWS(DOMExcepti
on.INVALID_STATE_ERR: Failed to execute 'webkitGenerateKeyRequest' on 'HTMLMedia
Element': No media has been loaded.) OK |
15 TEST(video.webkitAddKey('webkit-org.w3.clearkey', key)) THROWS(DOMException.INVA
LID_STATE_ERR: Failed to execute 'webkitAddKey' on 'HTMLMediaElement': The playe
r is in an invalid state.) OK | 15 TEST(video.webkitAddKey('webkit-org.w3.clearkey', key)) THROWS(DOMException.INVA
LID_STATE_ERR: Failed to execute 'webkitAddKey' on 'HTMLMediaElement': No media
has been loaded.) OK |
16 TEST(video.webkitCancelKeyRequest('webkit-org.w3.clearkey')) THROWS(DOMException
.INVALID_STATE_ERR: Failed to execute 'webkitCancelKeyRequest' on 'HTMLMediaElem
ent': The player is in an invalid state.) OK | 16 TEST(video.webkitCancelKeyRequest('webkit-org.w3.clearkey')) THROWS(DOMException
.INVALID_STATE_ERR: Failed to execute 'webkitCancelKeyRequest' on 'HTMLMediaElem
ent': No media has been loaded.) OK |
17 RUN(video.canPlayType('audio/wav', 'webkit-org.w3.clearkey')) | 17 RUN(video.canPlayType('audio/wav', 'webkit-org.w3.clearkey')) |
18 | 18 |
19 EVENT(loadstart) | 19 EVENT(loadstart) |
20 TEST(video.networkState == video.NETWORK_LOADING || video.networkState == video.
NETWORK_IDLE) OK | 20 TEST(video.networkState == video.NETWORK_LOADING || video.networkState == video.
NETWORK_IDLE) OK |
21 EXPECTED (video.currentSrc != '') OK | 21 EXPECTED (video.currentSrc != '') OK |
22 Verify that none of the methods throw when load has started. | 22 Verify that none of the methods throw when load has started. |
23 RUN(video.webkitGenerateKeyRequest('webkit-org.w3.clearkey')) | 23 RUN(video.webkitGenerateKeyRequest('webkit-org.w3.clearkey')) |
24 RUN(video.webkitAddKey('webkit-org.w3.clearkey', key)) | 24 RUN(video.webkitAddKey('webkit-org.w3.clearkey', key)) |
25 RUN(video.webkitCancelKeyRequest('webkit-org.w3.clearkey')) | 25 RUN(video.webkitCancelKeyRequest('webkit-org.w3.clearkey')) |
26 RUN(video.canPlayType('audio/wav', 'webkit-org.w3.clearkey')) | 26 RUN(video.canPlayType('audio/wav', 'webkit-org.w3.clearkey')) |
27 END OF TEST | 27 END OF TEST |
28 | 28 |
OLD | NEW |