Test that imported module has initiator-type=script (#45276)
* Test that imported module has initiator-type=script
* Remove a `console.log` from file to appease linter
diff --git a/resource-timing/initiator-type/script.html b/resource-timing/initiator-type/script.html
index dbd6a13..6e9e3ae 100644
--- a/resource-timing/initiator-type/script.html
+++ b/resource-timing/initiator-type/script.html
@@ -12,6 +12,7 @@
</head>
<body>
<script src="/resource-timing/resources/empty_script.js"></script>
+<script type="module" src="/resource-timing/resources/parent_script.js"></script>
<script>
const async_xhr = new XMLHttpRequest;
async_xhr.open('GET', '/resource-timing/resources/blue.png?id=async_xhr',
@@ -21,6 +22,7 @@
<script>
initiator_type_test("empty_script.js", "script", "<script>");
initiator_type_test("blue.png?id=async_xhr", "xmlhttprequest", "an asynchronous XmlHTTPRequest");
+ initiator_type_test("child.js", "script", "script imported from another script");
</script>
</body>
</html>
diff --git a/resource-timing/resources/child_script.js b/resource-timing/resources/child_script.js
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/resource-timing/resources/child_script.js
@@ -0,0 +1 @@
+
diff --git a/resource-timing/resources/parent_script.js b/resource-timing/resources/parent_script.js
new file mode 100644
index 0000000..01ec0c5
--- /dev/null
+++ b/resource-timing/resources/parent_script.js
@@ -0,0 +1 @@
+import './child.js';