Index: third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-clearkey-update-non-ascii-input.html |
diff --git a/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-clearkey-update-non-ascii-input.html b/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-clearkey-update-non-ascii-input.html |
index 00e4f944c6e9397d3b162a8ec3e1d5a91da7066f..00e614199c3c448b3efb7b1bf3d76eaedb1280fa 100644 |
--- a/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-clearkey-update-non-ascii-input.html |
+++ b/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-clearkey-update-non-ascii-input.html |
@@ -15,6 +15,7 @@ |
async_test(function(test) |
{ |
var initDataType; |
+ var initData; |
var mediaKeySession; |
function processMessage(event) |
@@ -33,15 +34,14 @@ |
}); |
} |
- getSupportedInitDataType().then(function(type) { |
- initDataType = type; |
- return navigator.requestMediaKeySystemAccess('org.w3.clearkey', [{}]); |
- }).then(function(access) { |
+ navigator.requestMediaKeySystemAccess('org.w3.clearkey', getSimpleConfiguration()).then(function(access) { |
+ initDataType = access.getConfiguration().initDataTypes[0]; |
+ initData = getInitData(initDataType); |
return access.createMediaKeys(); |
}).then(function(mediaKeys) { |
mediaKeySession = mediaKeys.createSession(); |
waitForEventAndRunStep('message', mediaKeySession, processMessage, test); |
- return mediaKeySession.generateRequest(initDataType, getInitData(initDataType)); |
+ return mediaKeySession.generateRequest(initDataType, initData); |
}); |
}, 'Clear Key update() with non-ASCII response.'); |
</script> |