1
0
Fork 0
firefox/testing/web-platform/tests/resource-timing/tentative/script-initiated.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

24 lines
884 B
HTML

<!DOCTYPE html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<!-- Helper Functions for getting ResourceID -->
<script src="../resources/get-resourceID.js"></script>
<!-- Responsible for testing Initiator Attribute -->
<script src="../resources/test-initiator.js"></script>
<!--Script Responsible for loading various other resources -->
<script src="../resources/loadingResources.js"></script>
</head>
<body>
</body>
<script>
promise_test(async (t) => {
const expectedInitiator = await getResourceID("loadingResources.js");
const resources = ["empty_style.css", "blue.png", "green.html", "empty.js"];
for (const resource of resources) {
await testResourceInitiator(resource, expectedInitiator);
}
}, "Ensure initiator Attribute matches with Script ResourceID");
</script>