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 16 matching lines...) Expand all Loading... |
27 }, function(error) { | 27 }, function(error) { |
28 assert_equals(error.name, 'InvalidStateError'); | 28 assert_equals(error.name, 'InvalidStateError'); |
29 assert_not_equals(error.message, ''); | 29 assert_not_equals(error.message, ''); |
30 test.done(); | 30 test.done(); |
31 }); | 31 }); |
32 }).catch(function(error) { | 32 }).catch(function(error) { |
33 forceTestFailureFromPromise(test, error); | 33 forceTestFailureFromPromise(test, error); |
34 }); | 34 }); |
35 } | 35 } |
36 | 36 |
37 video.src = '../content/test.webm'; | 37 video.src = '../content/test-encrypted.webm'; |
38 waitForEventAndRunStep('loadstart', video, loadStarted, test); | 38 waitForEventAndRunStep('loadstart', video, loadStarted, test); |
39 }, 'Call unprefixed EME API after prefixed EME API.'); | 39 }, 'Call unprefixed EME API after prefixed EME API.'); |
40 </script> | 40 </script> |
41 </body> | 41 </body> |
42 </html> | 42 </html> |
OLD | NEW |