mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +01:00
Update web-platform-tests to revision 8a2ceb5f18911302b7a5c1cd2791f4ab50ad4326
This commit is contained in:
parent
462c272380
commit
1f531f66ea
5377 changed files with 174916 additions and 84369 deletions
32
tests/wpt/web-platform-tests/web-share/idlharness.https.html
Normal file
32
tests/wpt/web-platform-tests/web-share/idlharness.https.html
Normal file
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>WebShare IDL test</title>
|
||||
<link rel="help" href="https://wicg.github.io/web-share/">
|
||||
<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>
|
||||
<script>
|
||||
"use strict";
|
||||
var idl_array = new IdlArray();
|
||||
|
||||
function doTest(idl) {
|
||||
idl_array.add_untested_idls('interface Navigator {};');
|
||||
idl_array.add_idls(idl);
|
||||
idl_array.add_objects({
|
||||
Navigator: ['navigator']
|
||||
});
|
||||
idl_array.test();
|
||||
}
|
||||
|
||||
promise_test(async () => {
|
||||
const response = await fetch('../interfaces/web-share.idl');
|
||||
doTest(await response.text());
|
||||
}, 'Test driver');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue