reached_func("Load shouldn't fail"));
      link.addEventListener("load", t.step_func(() => {
        let entries = window.performance.getEntriesByType('resource').filter(entry => entry.name.includes(importUrl));
        assert_equals(entries.length, 1, "There should be only one entry for the import URL");
        assert_greater_than_equal(entries[0].startTime, timeAfterReplaceSync, "The entry's start time should be after replaceSync threw");
        link.remove();
        resolve();
      }));
      docume