mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +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
|
@ -5,24 +5,20 @@
|
|||
|
||||
// https://w3c.github.io/resource-timing/
|
||||
|
||||
promise_test(async () => {
|
||||
const [idl, perf, hrtime, dom, html] = await Promise.all([
|
||||
'/interfaces/resource-timing.idl',
|
||||
'/interfaces/performance-timeline.idl',
|
||||
'/interfaces/hr-time.idl',
|
||||
'/interfaces/dom.idl',
|
||||
'/interfaces/html.idl',
|
||||
].map(url => fetch(url).then(r => r.text())));
|
||||
idl_test(
|
||||
['resource-timing'],
|
||||
['performance-timeline', 'hr-time', 'dom', 'html'],
|
||||
idl_array => {
|
||||
try {
|
||||
self.resource = performance.getEntriesByType('resource')[0];
|
||||
} catch (e) {
|
||||
// Will be surfaced when resource is undefined below.
|
||||
}
|
||||
|
||||
const idl_array = new IdlArray();
|
||||
idl_array.add_idls(idl);
|
||||
idl_array.add_dependency_idls(perf);
|
||||
idl_array.add_dependency_idls(hrtime);
|
||||
idl_array.add_dependency_idls(dom);
|
||||
idl_array.add_dependency_idls(html);
|
||||
idl_array.add_objects({
|
||||
Performance: ['performance'],
|
||||
PerformanceResourceTiming: ["performance.getEntriesByType('resource')[0]"]
|
||||
});
|
||||
idl_array.test();
|
||||
}, 'Test server-timing IDL implementation');
|
||||
idl_array.add_objects({
|
||||
Performance: ['performance'],
|
||||
PerformanceResourceTiming: ['resource']
|
||||
});
|
||||
},
|
||||
'Test server-timing IDL implementation'
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue