  );
    assert_equals(softNavEntries.length, 1);
    assert_equals(icpEntries.length, 1);
    const entry = icpEntries[0];
    const url = window.location.origin + "/images/black-rectangle.png";
    // black-rectangle.png is 100 x 50. It occupies 50 x 50 so size will be bounded by the displayed size.
    const size = 50 * 50;
    checkImage(entry, url, "image_id", size, beforeLoad);
  }, "Largest Contentful Paint: |size| attribute is bounded by display size after soft navigation.");
</script>
