<!DOCTYPE html>
<title>child frame with delayed onload event</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="utils.js"></script>

<body>
</body>
<script>
  (function () {
    const [element_type, toplevel_loaded_key, result_key] = parseKeylist();

    // Delays the onload event of the iframe for 2 sec.
    if (element_type == "iframe") {
      const img = document.createElement("img");
      img.src = "/common/square.png?pipe=tri