mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15: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
30
tests/wpt/web-platform-tests/webstorage/idlharness.window.js
Normal file
30
tests/wpt/web-platform-tests/webstorage/idlharness.window.js
Normal file
|
@ -0,0 +1,30 @@
|
|||
// META: script=/resources/WebIDLParser.js
|
||||
// META: script=/resources/idlharness.js
|
||||
|
||||
// http://www.w3.org/TR/webstorage/#storage
|
||||
|
||||
idl_test(
|
||||
[], [], // Srcs + deps manually handled below.
|
||||
async idl_array => {
|
||||
const [html, dom] = await Promise.all(['html', 'dom']
|
||||
.map(i => fetch(`/interfaces/${i}.idl`).then(r => r.text())));
|
||||
idl_array.add_idls(html, {
|
||||
only: [
|
||||
'Storage',
|
||||
'WindowSessionStorage',
|
||||
'WindowLocalStorage',
|
||||
'StorageEvent',
|
||||
'StorageEventInit',
|
||||
]});
|
||||
idl_array.add_dependency_idls(dom);
|
||||
|
||||
idl_array.add_objects({
|
||||
Storage: [
|
||||
'localStorage',
|
||||
'sessionStorage',
|
||||
],
|
||||
StorageEvent: ['new StorageEvent("storage")']
|
||||
});
|
||||
},
|
||||
'webstorage interfaces'
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue