<!DOCTYPE html>
<meta charset=utf-8>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="early-hints-helpers.sub.js"></script>
<body>
<script>
const preloads = getPreloadsFromSearchParams();
["low", "high", "auto"].forEach((fetchpriority, i) => {
    promise_test(() => {
        return new Promise((resolve, reject) => {
            assert_greater_than(preloads.length, i);
            const preload = preloads[i];
            assert_equals(pre