mirror of
https://github.com/servo/servo.git
synced 2025-08-26 07:38:21 +01:00
Update web-platform-tests to revision 632a3f59238036b6e24b28d47218ba9986ff4c62
This commit is contained in:
parent
cd02ca6c19
commit
fb838278a5
430 changed files with 15017 additions and 508 deletions
|
@ -1,29 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
importScripts('/resources/testharness.js',
|
||||
'/resources/WebIDLParser.js',
|
||||
'/resources/idlharness.js');
|
||||
|
||||
promise_test(async t => {
|
||||
const response = await fetch('../interfaces.idl');
|
||||
const idls = await response.text();
|
||||
|
||||
const idl_array = new IdlArray();
|
||||
|
||||
idl_array.add_untested_idls('[Exposed=Window] interface Navigator {};');
|
||||
idl_array.add_untested_idls('[Exposed=Worker] interface WorkerNavigator {};');
|
||||
|
||||
idl_array.add_idls(idls);
|
||||
|
||||
let lock;
|
||||
await navigator.locks.request('name', l => { lock = l; });
|
||||
|
||||
idl_array.add_objects({
|
||||
LockManager: [navigator.locks],
|
||||
Lock: [lock],
|
||||
});
|
||||
|
||||
idl_array.test();
|
||||
}, 'Interface test');
|
||||
|
||||
done();
|
Loading…
Add table
Add a link
Reference in a new issue