mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 21:28:04 +02:00
Automatic update from web-platform-testsadd https versions of server-timing/cross_origin.html and server-timing/idlharness.any.js -- Merge pull request #13631 from cvazac/cvazac/https-versions Adding https versions to validate Firefox. -- wpt-commits: bd49b4669c4a9f15b5a9a5fe9526bc74efa1cc16, fd566c8e56eb744ccc94d3634262d8e131b16e41 wpt-pr: 13631
21 lines
690 B
JavaScript
21 lines
690 B
JavaScript
// META: script=/resources/WebIDLParser.js
|
|
// META: script=/resources/idlharness.js
|
|
|
|
'use strict';
|
|
|
|
// https://w3c.github.io/server-timing/
|
|
|
|
promise_test(async () => {
|
|
const idl = await fetch('/interfaces/server-timing.idl').then(r => r.text());
|
|
const res = await fetch('/interfaces/resource-timing.idl').then(r => r.text());
|
|
const perf = await fetch('/interfaces/performance-timeline.idl').then(r => r.text());
|
|
|
|
const idl_array = new IdlArray();
|
|
idl_array.add_idls(idl);
|
|
idl_array.add_dependency_idls(res);
|
|
idl_array.add_dependency_idls(perf);
|
|
idl_array.add_objects({
|
|
Performance: ['performance'],
|
|
});
|
|
idl_array.test();
|
|
}, 'Test server-timing IDL implementation');
|