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

 1
12Tests invalid and valid syntaxes.
23
34Test calling functions with too few parameters.
4 TEST(video.webkitGenerateKeyRequest()) THROWS("TypeError: Not enough arguments") OK
5 TEST(video.webkitAddKey()) THROWS("TypeError: Not enough arguments") OK
6 TEST(video.webkitAddKey('webkit-org.w3.clearkey')) THROWS("TypeError: Not enough arguments") OK
7 TEST(video.webkitCancelKeyRequest()) THROWS("TypeError: Not enough arguments") OK
 5TEST(video.webkitGenerateKeyRequest()) THROWS("TypeError: Not enough arguments") FAIL
 6TEST(video.webkitAddKey()) THROWS("TypeError: Not enough arguments") FAIL
 7TEST(video.webkitAddKey('webkit-org.w3.clearkey')) THROWS("TypeError: Not enough arguments") FAIL
 8TEST(video.webkitCancelKeyRequest()) THROWS("TypeError: Not enough arguments") FAIL
89
910Verify invalid key system parameter is caught before checking whether loading has started.
1011EXPECTED (video.networkState == '0') OK
1112EXPECTED (video.currentSrc == '') OK
12 TEST(video.webkitGenerateKeyRequest('')) THROWS(DOMException.SYNTAX_ERR) OK
13 TEST(video.webkitGenerateKeyRequest(null)) THROWS(DOMException.SYNTAX_ERR) OK
14 TEST(video.webkitGenerateKeyRequest(undefined)) THROWS(DOMException.SYNTAX_ERR) OK
15 TEST(video.webkitAddKey('', key)) THROWS(DOMException.SYNTAX_ERR) OK
16 TEST(video.webkitAddKey(null, key)) THROWS(DOMException.SYNTAX_ERR) OK
17 TEST(video.webkitAddKey(undefined, key)) THROWS(DOMException.SYNTAX_ERR) OK
18 TEST(video.webkitCancelKeyRequest('')) THROWS(DOMException.SYNTAX_ERR) OK
19 TEST(video.webkitCancelKeyRequest(null)) THROWS(DOMException.SYNTAX_ERR) OK
20 TEST(video.webkitCancelKeyRequest(undefined)) THROWS(DOMException.SYNTAX_ERR) OK
 13TEST(video.webkitGenerateKeyRequest('')) THROWS(DOMException.SYNTAX_ERR) FAIL
 14TEST(video.webkitGenerateKeyRequest(null)) THROWS(DOMException.SYNTAX_ERR) FAIL
 15TEST(video.webkitGenerateKeyRequest(undefined)) THROWS(DOMException.SYNTAX_ERR) FAIL
 16TEST(video.webkitAddKey('', key)) THROWS(DOMException.SYNTAX_ERR) FAIL
 17TEST(video.webkitAddKey(null, key)) THROWS(DOMException.SYNTAX_ERR) FAIL
 18TEST(video.webkitAddKey(undefined, key)) THROWS(DOMException.SYNTAX_ERR) FAIL
 19TEST(video.webkitCancelKeyRequest('')) THROWS(DOMException.SYNTAX_ERR) FAIL
 20TEST(video.webkitCancelKeyRequest(null)) THROWS(DOMException.SYNTAX_ERR) FAIL
 21TEST(video.webkitCancelKeyRequest(undefined)) THROWS(DOMException.SYNTAX_ERR) FAIL
2122
2223null key is caught before load state is checked.
23 TEST(video.webkitAddKey('webkit-org.w3.clearkey', '')) THROWS(DOMException.SYNTAX_ERR) OK
24 TEST(video.webkitAddKey('webkit-org.w3.clearkey', null)) THROWS(DOMException.SYNTAX_ERR) OK
25 TEST(video.webkitAddKey('webkit-org.w3.clearkey', undefined)) THROWS(DOMException.SYNTAX_ERR) OK
 24TEST(video.webkitAddKey('webkit-org.w3.clearkey', '')) THROWS(DOMException.SYNTAX_ERR) FAIL
 25TEST(video.webkitAddKey('webkit-org.w3.clearkey', null)) THROWS(DOMException.SYNTAX_ERR) FAIL
 26TEST(video.webkitAddKey('webkit-org.w3.clearkey', undefined)) THROWS(DOMException.SYNTAX_ERR) FAIL
2627
27280-length key is caught before load state is checked.
28 TEST(video.webkitAddKey('webkit-org.w3.clearkey', new Uint8Array())) THROWS(DOMException.TYPE_MISMATCH_ERR) OK
 29TEST(video.webkitAddKey('webkit-org.w3.clearkey', new Uint8Array())) THROWS(DOMException.TYPE_MISMATCH_ERR) FAIL
2930
3031Key system validity is not checked before loading.
31 TEST(video.webkitGenerateKeyRequest('com.example.invalid')) THROWS(DOMException.INVALID_STATE_ERR) OK
32 TEST(video.webkitAddKey('com.example.invalid', key)) THROWS(DOMException.INVALID_STATE_ERR) OK
33 TEST(video.webkitCancelKeyRequest('com.example.invalid')) THROWS(DOMException.INVALID_STATE_ERR) OK
 32TEST(video.webkitGenerateKeyRequest('com.example.invalid')) THROWS(DOMException.INVALID_STATE_ERR) FAIL
 33TEST(video.webkitAddKey('com.example.invalid', key)) THROWS(DOMException.INVALID_STATE_ERR) FAIL
 34TEST(video.webkitCancelKeyRequest('com.example.invalid')) THROWS(DOMException.INVALID_STATE_ERR) FAIL
3435
3536EVENT(loadstart)
3637Verify valid syntaxes do not throw.
3738EXPECTED (video.networkState == '2') OK
3839EXPECTED (video.currentSrc != '') OK
3940RUN(video.webkitGenerateKeyRequest('webkit-org.w3.clearkey'))
 41TypeError: video.webkitGenerateKeyRequest is not a function. (In 'video.webkitGenerateKeyRequest('webkit-org.w3.clearkey')', 'video.webkitGenerateKeyRequest' is undefined)
4042RUN(video.webkitGenerateKeyRequest('webkit-org.w3.clearkey', initData))
 43TypeError: video.webkitGenerateKeyRequest is not a function. (In 'video.webkitGenerateKeyRequest('webkit-org.w3.clearkey', initData)', 'video.webkitGenerateKeyRequest' is undefined)
4144RUN(video.webkitAddKey('webkit-org.w3.clearkey', key))
 45TypeError: video.webkitAddKey is not a function. (In 'video.webkitAddKey('webkit-org.w3.clearkey', key)', 'video.webkitAddKey' is undefined)
4246RUN(video.webkitAddKey('webkit-org.w3.clearkey', key, 'session'))
 47TypeError: video.webkitAddKey is not a function. (In 'video.webkitAddKey('webkit-org.w3.clearkey', key, 'session')', 'video.webkitAddKey' is undefined)
4348RUN(video.webkitAddKey('webkit-org.w3.clearkey', key, initData))
 49TypeError: video.webkitAddKey is not a function. (In 'video.webkitAddKey('webkit-org.w3.clearkey', key, initData)', 'video.webkitAddKey' is undefined)
4450RUN(video.webkitAddKey('webkit-org.w3.clearkey', key, initData, 'session'))
 51TypeError: video.webkitAddKey is not a function. (In 'video.webkitAddKey('webkit-org.w3.clearkey', key, initData, 'session')', 'video.webkitAddKey' is undefined)
4552RUN(video.webkitCancelKeyRequest('webkit-org.w3.clearkey'))
 53TypeError: video.webkitCancelKeyRequest is not a function. (In 'video.webkitCancelKeyRequest('webkit-org.w3.clearkey')', 'video.webkitCancelKeyRequest' is undefined)
4654RUN(video.webkitCancelKeyRequest('webkit-org.w3.clearkey', 'session'))
 55TypeError: video.webkitCancelKeyRequest is not a function. (In 'video.webkitCancelKeyRequest('webkit-org.w3.clearkey', 'session')', 'video.webkitCancelKeyRequest' is undefined)
4756
4857Unsupported key systems result in NOT_SUPPORTED_ERR.
49 TEST(video.webkitGenerateKeyRequest('com.example.invalid')) THROWS(DOMException.NOT_SUPPORTED_ERR) OK
50 TEST(video.webkitAddKey('com.example.invalid', key)) THROWS(DOMException.NOT_SUPPORTED_ERR) OK
51 TEST(video.webkitCancelKeyRequest('com.example.invalid')) THROWS(DOMException.NOT_SUPPORTED_ERR) OK
 58TEST(video.webkitGenerateKeyRequest('com.example.invalid')) THROWS(DOMException.NOT_SUPPORTED_ERR) FAIL
 59TEST(video.webkitAddKey('com.example.invalid', key)) THROWS(DOMException.NOT_SUPPORTED_ERR) FAIL
 60TEST(video.webkitCancelKeyRequest('com.example.invalid')) THROWS(DOMException.NOT_SUPPORTED_ERR) FAIL
5261END OF TEST
5362