/home/clopez/webkit/webkit/layout-test-results/media/encrypted-media/encrypted-media-not-loaded-actual.txt

 1
12Test that the methods throw INVALID_STATE_ERR when the media element has not loaded. canPlayType() never throws.
23
34EXPECTED (video.networkState == '0') OK
45EXPECTED (video.currentSrc == '') OK
56No 'src'. Verify that all methods except canPlayType() throw INVALID_STATE_ERR.
6 TEST(video.webkitGenerateKeyRequest('webkit-org.w3.clearkey')) THROWS(DOMException.INVALID_STATE_ERR) OK
7 TEST(video.webkitAddKey('webkit-org.w3.clearkey', key)) THROWS(DOMException.INVALID_STATE_ERR) OK
8 TEST(video.webkitCancelKeyRequest('webkit-org.w3.clearkey')) THROWS(DOMException.INVALID_STATE_ERR) OK
 7TEST(video.webkitGenerateKeyRequest('webkit-org.w3.clearkey')) THROWS(DOMException.INVALID_STATE_ERR) FAIL
 8TEST(video.webkitAddKey('webkit-org.w3.clearkey', key)) THROWS(DOMException.INVALID_STATE_ERR) FAIL
 9TEST(video.webkitCancelKeyRequest('webkit-org.w3.clearkey')) THROWS(DOMException.INVALID_STATE_ERR) FAIL
910RUN(video.canPlayType('audio/wav', 'webkit-org.w3.clearkey'))
1011
1112'src' has been set, but loading has not yet started. Verify that all methods except canPlayType() throw INVALID_STATE_ERR.
1213EXPECTED (video.networkState == '3') OK
1314EXPECTED (video.currentSrc == '') OK
14 TEST(video.webkitGenerateKeyRequest('webkit-org.w3.clearkey')) THROWS(DOMException.INVALID_STATE_ERR) OK
15 TEST(video.webkitAddKey('webkit-org.w3.clearkey', key)) THROWS(DOMException.INVALID_STATE_ERR) OK
16 TEST(video.webkitCancelKeyRequest('webkit-org.w3.clearkey')) THROWS(DOMException.INVALID_STATE_ERR) OK
 15TEST(video.webkitGenerateKeyRequest('webkit-org.w3.clearkey')) THROWS(DOMException.INVALID_STATE_ERR) FAIL
 16TEST(video.webkitAddKey('webkit-org.w3.clearkey', key)) THROWS(DOMException.INVALID_STATE_ERR) FAIL
 17TEST(video.webkitCancelKeyRequest('webkit-org.w3.clearkey')) THROWS(DOMException.INVALID_STATE_ERR) FAIL
1718RUN(video.canPlayType('audio/wav', 'webkit-org.w3.clearkey'))
1819
1920EVENT(loadstart)

2122EXPECTED (video.currentSrc != '') OK
2223Verify that none of the methods throw when load has started.
2324RUN(video.webkitGenerateKeyRequest('webkit-org.w3.clearkey'))
 25TypeError: video.webkitGenerateKeyRequest is not a function. (In 'video.webkitGenerateKeyRequest('webkit-org.w3.clearkey')', 'video.webkitGenerateKeyRequest' is undefined)
2426RUN(video.webkitAddKey('webkit-org.w3.clearkey', key))
 27TypeError: video.webkitAddKey is not a function. (In 'video.webkitAddKey('webkit-org.w3.clearkey', key)', 'video.webkitAddKey' is undefined)
2528RUN(video.webkitCancelKeyRequest('webkit-org.w3.clearkey'))
 29TypeError: video.webkitCancelKeyRequest is not a function. (In 'video.webkitCancelKeyRequest('webkit-org.w3.clearkey')', 'video.webkitCancelKeyRequest' is undefined)
2630RUN(video.canPlayType('audio/wav', 'webkit-org.w3.clearkey'))
2731END OF TEST
2832