gecko-dev/testing/web-platform/tests/navigation-timing/idlharness.window.js
Stephen McGruer 2331cb25ad Bug 1632334 [wpt PR 23191] - Mark a bunch of idlharness tests as timeout=long, a=testonly
Automatic update from web-platform-tests
Mark a bunch of idlharness tests as timeout=long

These are all symptomatic of crbug.com/1047818, but to stop the pain for
sheriffs lets mark them timeout=long for now.

Bug: 1068574, 1065250, 1070562, 1073055
Change-Id: I76e29d3037bd0c98c96bf21a7427d7981b91def4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2161728
Auto-Submit: Stephen McGruer <smcgruer@chromium.org>
Commit-Queue: Robert Ma <robertma@chromium.org>
Reviewed-by: Robert Ma <robertma@chromium.org>
Cr-Commit-Position: refs/heads/master@{#761981}

--

wpt-commits: a5d1774ecf41751d1c9357c27c709ee33bf3e279
wpt-pr: 23191
2020-04-28 11:41:42 +00:00

29 lines
1 KiB
JavaScript

// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
// META: timeout=long
'use strict';
// http://www.w3.org/TR/navigation-timing/
promise_test(async (t) => {
const srcs = ['navigation-timing', 'hr-time', 'resource-timing', 'performance-timeline', 'dom', 'html'];
const [navigationTiming, hrTime, resourceTiming, performanceTimeline, dom, html] =
await Promise.all(srcs.map(i => fetch(`/interfaces/${i}.idl`).then(r => r.text())));
const idlArray = new IdlArray();
idlArray.add_idls(hrTime);
idlArray.add_idls(navigationTiming);
idlArray.add_dependency_idls(resourceTiming);
idlArray.add_dependency_idls(performanceTimeline);
idlArray.add_dependency_idls(dom);
idlArray.add_dependency_idls(html);
idlArray.add_objects({
Performance: ['performance'],
PerformanceNavigation: ['performance.navigation'],
PerformanceTiming: ['performance.timing'],
PerformanceNavigationTiming: [
'performance.getEntriesByType("navigation")[0]'
]
});
return idlArray.test();
})