OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Prefixed and unprefixed EME API</title> | 4 <title>Prefixed and unprefixed EME API</title> |
5 <script src="encrypted-media-utils.js"></script> | 5 <script src="encrypted-media-utils.js"></script> |
6 <script src="../../resources/testharness.js"></script> | 6 <script src="../../resources/testharness.js"></script> |
7 <script src="../../resources/testharnessreport.js"></script> | 7 <script src="../../resources/testharnessreport.js"></script> |
8 </head> | 8 </head> |
9 <body> | 9 <body> |
10 <video id="testVideo"></video> | 10 <video id="testVideo"></video> |
(...skipping 13 matching lines...) Expand all Loading... |
24 return video.setMediaKeys(mediaKeys); | 24 return video.setMediaKeys(mediaKeys); |
25 }).then(function(result) { | 25 }).then(function(result) { |
26 assert_throws('InvalidStateError', | 26 assert_throws('InvalidStateError', |
27 function () { video.webkitGenerateKeyReque
st('webkit-org.w3.clearkey'); }); | 27 function () { video.webkitGenerateKeyReque
st('webkit-org.w3.clearkey'); }); |
28 test.done(); | 28 test.done(); |
29 }).catch(function(error) { | 29 }).catch(function(error) { |
30 forceTestFailureFromPromise(test, error); | 30 forceTestFailureFromPromise(test, error); |
31 }); | 31 }); |
32 } | 32 } |
33 | 33 |
34 video.src = '../content/test.webm'; | 34 video.src = '../content/test-encrypted.webm'; |
35 waitForEventAndRunStep('loadstart', video, loadStarted, test); | 35 waitForEventAndRunStep('loadstart', video, loadStarted, test); |
36 }, 'Call prefixed EME API after unprefixed EME API.'); | 36 }, 'Call prefixed EME API after unprefixed EME API.'); |
37 </script> | 37 </script> |
38 </body> | 38 </body> |
39 </html> | 39 </html> |
OLD | NEW |