mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
Update web-platform-tests to revision be5419e845d39089ba6dc338c1bd0fa279108317
This commit is contained in:
parent
aa199307c8
commit
2b6f573eb5
3440 changed files with 109438 additions and 41750 deletions
|
@ -10,7 +10,7 @@ function runTest(config) {
|
|||
resolve(iframe);
|
||||
};
|
||||
iframe.sandbox = sandbox;
|
||||
iframe.src = src;
|
||||
iframe.srcdoc = src;
|
||||
document.documentElement.appendChild(iframe);
|
||||
});
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ function runTest(config) {
|
|||
}
|
||||
|
||||
promise_test(function (test) {
|
||||
var script = 'data:text/html,' +
|
||||
var script =
|
||||
'<script>' +
|
||||
' window.onmessage = function(e) {' +
|
||||
' navigator.requestMediaKeySystemAccess("' + config.keysystem + '", [{' +
|
||||
|
@ -53,7 +53,7 @@ function runTest(config) {
|
|||
return access.createMediaKeys();
|
||||
}).then(function (mediaKeys) {
|
||||
// Success, so now create the iframe and try there.
|
||||
return load_iframe(script, 'allow-scripts');
|
||||
return load_iframe(script, 'allow-scripts allow-secure-context');
|
||||
}).then(function (iframe) {
|
||||
iframe.contentWindow.postMessage({}, '*');
|
||||
return wait_for_message();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue