| Index: LayoutTests/media/encrypted-media/encrypted-media-v2-syntax-expected.txt
|
| diff --git a/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax-expected.txt b/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax-expected.txt
|
| index 2e5127d4cb99fc4fc64ad243625301c1c6cfc523..18341fb3920a82b7cfaa9ec7f06285cd9b8fbeb9 100644
|
| --- a/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax-expected.txt
|
| +++ b/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax-expected.txt
|
| @@ -8,8 +8,10 @@ RUN(mediaKeys = new MediaKeys("org.w3.clearkey"))
|
| EXPECTED (typeof mediaKeys == 'object') OK
|
| EXPECTED (mediaKeys.keySystem == 'org.w3.clearkey') OK
|
| EXPECTED (typeof mediaKeys.createSession == 'function') OK
|
| -TEST(mediaKeys.createSession("", new Uint8Array(1))) THROWS(DOMException.INVALID_ACCESS_ERR: Failed to execute 'createSession' on 'MediaKeys': The type provided is empty, but initData is not empty.) OK
|
| -TEST(mediaKeys.createSession("unsupported/type")) THROWS(DOMException.NOT_SUPPORTED_ERR: Failed to execute 'createSession' on 'MediaKeys': The type provided ('unsupported/type') is unsupported.) OK
|
| +TEST(mediaKeys.createSession("")) THROWS(DOMException.INVALID_ACCESS_ERR: Failed to execute 'createSession' on 'MediaKeys': The type or initData provided is empty or null.) OK
|
| +TEST(mediaKeys.createSession("", new Uint8Array(1))) THROWS(DOMException.INVALID_ACCESS_ERR: Failed to execute 'createSession' on 'MediaKeys': The type or initData provided is empty or null.) OK
|
| +TEST(mediaKeys.createSession("video/webm", null)) THROWS(DOMException.INVALID_ACCESS_ERR: Failed to execute 'createSession' on 'MediaKeys': The type or initData provided is empty or null.) OK
|
| +TEST(mediaKeys.createSession("unsupported/type", new Uint8Array(1))) THROWS(DOMException.NOT_SUPPORTED_ERR: Failed to execute 'createSession' on 'MediaKeys': The type provided ('unsupported/type') is unsupported.) OK
|
|
|
| Test MediaKeySession.
|
| RUN(mediaKeySession = mediaKeys.createSession("video/webm", initData))
|
|
|