<!DOCTYPE html>
<html>
<script>
    var url = "../../resources/square100.png?";
    url += Math.random();
    document.write("<img src='" + url + "'>");

</script>
<script src="../../resources/js-test-pre.js"></script>
<script>
    var foundImg = false;
    window.addEventListener("load", function() {
        var resources = performance.getEntriesByType('resource');
        for (var i = 0; i < resources.length; ++i) {
            if (resources[i].name.indexOf("square100") != -1) {
                foundImg = true;
                break;
            }
        };
        shouldBeTrue("foundImg");
    });
</script>
</body>
</html>
