Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 4 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /resource-timing/tentative/initiator-url/external-script-in-posted-task.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>Resource Timing - initiatorUrl for resources loaded by an external script via scheduler.postTask()</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/get-host-info.sub.js"></script>
<script src="../../resources/test-initiator.js"></script>
<div id="log"></div>
<script src="../../resources/loading-resources-in-posted-task.js"></script>
<script>
const expectedInitiatorUrl = getUrl(
"/resource-timing/resources/loading-resources-in-posted-task.js");
const resources = [
"empty_style.css?no_cache",
"blue.png?no_cache",
"empty.js?no_cache",
"green.html?no_cache",
];
for (const resource of resources) {
initiator_url_test(resource, expectedInitiatorUrl, resource +
" initiatorUrl by scheduler.postTask() from external scripts",
resource + " timeout");
}
</script>