Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
'use strict';
idl_test(
['requestidlecallback'],
['html', 'dom'],
async idl_array => {
idl_array.add_objects({
IdleDeadline: ['deadline'],
Window: ['window'],
});
await new Promise(resolve => {
requestIdleCallback(d => {
self.deadline = d;
resolve();
}, { timeout: 100 });
});
}
);