Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Unified Diff: LayoutTests/media/encrypted-media/encrypted-media-keystatuses-multiple-updates.html

Issue 1004843003: Use requestMediaKeySystemAccess() to check type support in EME layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Changes Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/media/encrypted-media/encrypted-media-keystatuses-multiple-updates.html
diff --git a/LayoutTests/media/encrypted-media/encrypted-media-keystatuses-multiple-updates.html b/LayoutTests/media/encrypted-media/encrypted-media-keystatuses-multiple-updates.html
index 45a25ab230e45a1525e05b20ff5ccd3ef6c6507d..26872da303f1669751a7fe4b5ba896cf1e987026 100644
--- a/LayoutTests/media/encrypted-media/encrypted-media-keystatuses-multiple-updates.html
+++ b/LayoutTests/media/encrypted-media/encrypted-media-keystatuses-multiple-updates.html
@@ -58,10 +58,13 @@
}
}
- navigator.requestMediaKeySystemAccess('org.w3.clearkey', [{}]).then(function(access) {
+ getSupportedInitDataType().then(function(type) {
+ initDataType = type;
sandersd (OOO until July 31) 2015/03/16 19:57:08 Missing declarations.
jrummell 2015/03/16 20:44:09 Done. Wonder how it works?
sandersd (OOO until July 31) 2015/03/17 22:23:17 By setting those values on the global object (aka
+ initData = getInitData(initDataType);
+ return navigator.requestMediaKeySystemAccess('org.w3.clearkey', [{}]);
+ }).then(function(access) {
return access.createMediaKeys();
}).then(function(mediaKeys) {
- var initDataType = getInitDataType();
mediaKeySession = mediaKeys.createSession();
// There should be no keys defined yet.
@@ -70,7 +73,7 @@
waitForEventAndRunStep('message', mediaKeySession, processMessage, test);
waitForEventAndRunStep('keystatuseschange', mediaKeySession, processKeyStatusesChange, test);
- return mediaKeySession.generateRequest(initDataType, getInitData(initDataType));
+ return mediaKeySession.generateRequest(initDataType, initData);
}).catch(function(error) {
forceTestFailureFromPromise(test, error);
});

Powered by Google App Engine
This is Rietveld 408576698