<body onload='runTest()'>
  <script>
  if (window.testRunner) {
      testRunner.dumpAsText();
      testRunner.waitUntilDone();
  }

  function runTest() {
      document.getElementById("x").innerHTML = "";
      setTimeout(function(){
              document.body.innerHTML = "<b>PASS:</b> body and iframe cleared without crashing.";
              testRunner.notifyDone();
          }, 0);
  }
  </script>
  <div id="x">
    <iframe src="does-not-exist">
  </div>
</body>
