mirror of
https://github.com/servo/servo.git
synced 2025-08-23 22:35:33 +01:00
Update web-platform-tests to revision 3f9178031eec5374c9a7d5709a7e11ba4a1955ed
This commit is contained in:
parent
4997ec26c2
commit
a5af9a106a
192 changed files with 3943 additions and 1927 deletions
|
@ -1,32 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Media Session IDL tests</title>
|
||||
<link rel="help" href="https://wicg.github.io/mediasession/"/>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/WebIDLParser.js"></script>
|
||||
<script src="/resources/idlharness.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Media Session IDL tests</h1>
|
||||
<script>
|
||||
'use strict';
|
||||
|
||||
promise_test(async () => {
|
||||
var idl_array = new IdlArray();
|
||||
const idl = await fetch('/interfaces/mediasession.idl').then(r => r.text());
|
||||
const html = await fetch('/interfaces/html.idl').then(r => r.text());
|
||||
idl_array.add_idls(idl);
|
||||
idl_array.add_dependency_idls(html);
|
||||
idl_array.add_objects({
|
||||
MediaMetadata: ['new MediaMetadata()'],
|
||||
Navigator: ['navigator']
|
||||
});
|
||||
idl_array.test();
|
||||
}, 'Test IDL implementation of Media Session');
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,19 @@
|
|||
// META: script=/resources/WebIDLParser.js
|
||||
// META: script=/resources/idlharness.js
|
||||
|
||||
// https://wicg.github.io/mediasession/
|
||||
|
||||
'use strict';
|
||||
|
||||
idl_test(
|
||||
['mediasession'],
|
||||
['html'],
|
||||
idl_array => {
|
||||
idl_array.add_objects({
|
||||
MediaMetadata: ['new MediaMetadata()'],
|
||||
MediaSession: ['navigator.mediaSession'],
|
||||
Navigator: ['navigator']
|
||||
});
|
||||
},
|
||||
'Test IDL implementation of Media Session'
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue