Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(889)

Side by Side Diff: LayoutTests/media/encrypted-media/prefixed/encrypted-media-not-loaded-expected.txt

Issue 157423003: Remove the dependency on encryptedmedia from HTMLMediaElement. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix compilation error on linux Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/core/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « no previous file | Source/core/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698