mirror of
https://github.com/servo/servo.git
synced 2025-09-12 07:58:20 +01:00
Update web-platform-tests to revision dc5cbf088edcdb266541d4e5a76149a2c6e716a0
This commit is contained in:
parent
1d40075f03
commit
079092dfea
2381 changed files with 90360 additions and 17722 deletions
51
tests/wpt/web-platform-tests/encrypted-media/idlharness.html
Normal file
51
tests/wpt/web-platform-tests/encrypted-media/idlharness.html
Normal file
|
@ -0,0 +1,51 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset=utf-8>
|
||||
<title>Encrypted Media Extentions IDL test</title>
|
||||
<link rel="help" href="https://w3c.github.io/encrypted-media/">
|
||||
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script src=/resources/WebIDLParser.js></script>
|
||||
<script src=/resources/idlharness.js></script>
|
||||
<script src=/encrypted-media/util/fetch.js></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 class="instructions">Description</h1>
|
||||
<p class="instructions">
|
||||
This test verifies that implementations of the Encrypted Media Extensions API match its WebIDL definition.
|
||||
</p>
|
||||
|
||||
<div id='log'></div>
|
||||
|
||||
<script>
|
||||
setup(function() {
|
||||
|
||||
fetch( 'EncryptedMediaExtensions.idl')
|
||||
.then( function( response ) {
|
||||
if ( !response.ok ) throw new Error( 'IDL fetch failed' );
|
||||
return response.text();
|
||||
} )
|
||||
.then( function( idls ) {
|
||||
|
||||
var idl_array = new IdlArray();
|
||||
idl_array.add_untested_idls("[PrimaryGlobal] interface Window {};");
|
||||
idl_array.add_untested_idls("interface Navigator {};");
|
||||
idl_array.add_untested_idls("interface ArrayBuffer {};");
|
||||
idl_array.add_untested_idls("interface HTMLMediaElement {};");
|
||||
idl_array.add_untested_idls("interface Event {};");
|
||||
idl_array.add_untested_idls("interface EventTarget {};");
|
||||
|
||||
idl_array.add_idls(idls);
|
||||
|
||||
idl_array.test();
|
||||
|
||||
done();
|
||||
|
||||
} );
|
||||
|
||||
}, {explicit_done: true});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue