Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /resource-timing/tentative/initiator-url/set-interval.any.sharedworker.html - WPT Dashboard Interop Dashboard
- /resource-timing/tentative/initiator-url/set-interval.any.worker.html - WPT Dashboard Interop Dashboard
// META: global=sharedworker,dedicatedworker
importScripts("/resources/testharness.js")
importScripts("/common/get-host-info.sub.js")
importScripts("../../resources/test-initiator.js")
importScripts("../../resources/loading-resource-lib.js")
const label = "initiator_url_setinterval_worker";
const resource = "/images/blue.png?"+label;
const hostInfo = get_host_info();
const expectedInitiatorUrl = hostInfo["ORIGIN"] +
"/resource-timing/tentative/initiator-url/set-interval.any.worker.js";
setInterval(function(){fetch_in_function(resource)}, 10);
initiator_url_test(resource, expectedInitiatorUrl, resource +
" initiatorUrl from setInterval() in worker thread", resource + " timeout");