<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Resource Timing - Other initiatorType</title>
<link rel="help" href="https://w3c.github.io/resource-timing/#dom-performanceresourcetiming-initiatortype">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/rt-utilities.sub.js"></script>
</head>
<body>
<h1>Resource Timing: Other initiatorType</h1>
<div id="log"></div>
<script>
promise_test(function(t) {
    return observeResources(2).then(([moduleEntry, subModuleEntry]) => {
        checkResourceTimingEntryType(moduleEntry, {
            name: location.origin + "/WebKit/resource-timing/resources/rt-module.js",
            initiatorType: "script",
        });
        checkResourceTimingEntryType(subModuleEntry, {
            name: location.origin + "/WebKit/resource-timing/resources/rt-sub-module.js",
            initiatorType: "script",
        });
        checkResourceTimingEntryTiming(moduleEntry);
        checkResourceTimingEntryTiming(subModuleEntry);
    });
}, "script - module and sub-module imported scripts");
</script>
<script type="module">
import "./resources/rt-module.js";
</script>
</body>
</html>
