mirror of
https://github.com/servo/servo.git
synced 2025-06-29 11:33:39 +01:00
23 lines
556 B
JavaScript
23 lines
556 B
JavaScript
// META: global=window,worker
|
|
// META: script=/resources/WebIDLParser.js
|
|
// META: script=/resources/idlharness.js
|
|
'use strict';
|
|
|
|
const idl = `
|
|
[OverrideBuiltins]
|
|
partial interface Document {
|
|
Promise<bool> hasStorageAccess();
|
|
Promise<void> requestStorageAccess();
|
|
};`;
|
|
|
|
idl_test(
|
|
// Since we are testing a locally defined idl we'll manually manage our deps below.
|
|
[],
|
|
[],
|
|
idl_array => {
|
|
return fetch_spec('dom').then(function(idl_text) {
|
|
idl_array.add_idls(idl);
|
|
idl_array.add_dependency_idls(idl_text);
|
|
});
|
|
}
|
|
);
|