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:
- /trusted-types/DOMWindowTimers-setTimeout-setInterval.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Security-Policy" content="require-trusted-types-for 'script'">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support/helper.sub.js"></script>
<link rel="help" href="https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timer-initialisation-steps">
</head>
<body>
<!-- "META: global=worker"
can't be used here because constructing the worker would require a trusted type.
-->
<script src="support/DOMWindowTimers-setTimeout-setInterval.js"></script>
<script>
let test_setup_policy = trustedTypes.createPolicy("p", {
createScriptURL: x => x
});
fetch_tests_from_worker(new Worker(test_setup_policy.createScriptURL(
"support/DOMWindowTimers-setTimeout-setInterval-worker.js")));
fetch_tests_from_worker(new SharedWorker(test_setup_policy.createScriptURL(
"support/DOMWindowTimers-setTimeout-setInterval-worker.js")));
</script>
</body>
</html>