| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html lang="en"> | 2 <html lang="en"> |
| 3 <head> | 3 <head> |
| 4 </head> | 4 </head> |
| 5 <body> | 5 <body> |
| 6 <video></video> | 6 <video></video> |
| 7 <p>Tests invalid and valid syntaxes.</p> | 7 <p>Tests invalid and valid syntaxes.</p> |
| 8 | 8 |
| 9 <script src=../../media-file.js></script> | 9 <script src=../../media-file.js></script> |
| 10 <script src=../../video-test.js></script> | 10 <script src=../../video-test.js></script> |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 consoleWrite("<br>0-length key is caught before load state is checke
d."); | 63 consoleWrite("<br>0-length key is caught before load state is checke
d."); |
| 64 testDOMException("video.webkitAddKey('webkit-org.w3.clearkey', new U
int8Array())", "DOMException.TYPE_MISMATCH_ERR"); | 64 testDOMException("video.webkitAddKey('webkit-org.w3.clearkey', new U
int8Array())", "DOMException.TYPE_MISMATCH_ERR"); |
| 65 | 65 |
| 66 consoleWrite("<br>Key system validity is not checked before loading.
"); | 66 consoleWrite("<br>Key system validity is not checked before loading.
"); |
| 67 testDOMException("video.webkitGenerateKeyRequest('com.example.invali
d')", "DOMException.INVALID_STATE_ERR"); | 67 testDOMException("video.webkitGenerateKeyRequest('com.example.invali
d')", "DOMException.INVALID_STATE_ERR"); |
| 68 testDOMException("video.webkitAddKey('com.example.invalid', key)", "
DOMException.INVALID_STATE_ERR"); | 68 testDOMException("video.webkitAddKey('com.example.invalid', key)", "
DOMException.INVALID_STATE_ERR"); |
| 69 testDOMException("video.webkitCancelKeyRequest('com.example.invalid'
)", "DOMException.INVALID_STATE_ERR"); | 69 testDOMException("video.webkitCancelKeyRequest('com.example.invalid'
)", "DOMException.INVALID_STATE_ERR"); |
| 70 | 70 |
| 71 // FIXME(82952): Add "test-encrypted" file. | 71 // FIXME(82952): Add "test-encrypted" file. |
| 72 video.setAttribute("src", findMediaFile("video", "../content/test"))
; | 72 video.setAttribute("src", findMediaFile("video", "../../content/test
")); |
| 73 consoleWrite(""); | 73 consoleWrite(""); |
| 74 waitForEvent('loadstart', loadStarted); | 74 waitForEvent('loadstart', loadStarted); |
| 75 </script> | 75 </script> |
| 76 </body> | 76 </body> |
| 77 </html> | 77 </html> |
| OLD | NEW |