| Index: LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys.html
|
| diff --git a/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys.html b/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys.html
|
| index 722e4239d332492afeb6e7e347143b124c973f20..f6050bcd5fa1d231cff74e3b57061a35c389f76e 100644
|
| --- a/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys.html
|
| +++ b/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys.html
|
| @@ -12,7 +12,9 @@
|
| async_test(function(test)
|
| {
|
| // Create a MediaKeys object and free immediately.
|
| - MediaKeys.create('org.w3.clearkey').then(function(result) {
|
| + navigator.requestMediaKeySystemAccess('org.w3.clearkey').then(function(access) {
|
| + return access.createMediaKeys();
|
| + }).then(function(result) {
|
| // Do nothing with the created object
|
| }).then(function(result) {
|
| // No way to verify that MediaKeys object is actually
|
| @@ -28,12 +30,14 @@
|
| async_test(function(test)
|
| {
|
| var mediaKeys;
|
| - MediaKeys.create('org.w3.clearkey').then(function(result) {
|
| + navigator.requestMediaKeySystemAccess('org.w3.clearkey').then(function(access) {
|
| + return access.createMediaKeys();
|
| + }).then(function(result) {
|
| mediaKeys = result;
|
| return createGCPromise();
|
| }).then(function(result) {
|
| // Check that the object still exists.
|
| - assert_equals(mediaKeys.keySystem, 'org.w3.clearkey');
|
| + assert_equals(typeof mediaKeys.createSession, 'function');
|
| mediaKeys = null;
|
|
|
| // Now that the reference is dropped, it should be
|
|
|