      if (++count == 2) t.done();
      }
      window.addEventListener("securitypolicyviolation", t.unreached_func("Should not have fired a spv"));

      // Insert a script element that contains the U+FFFD replacement character
      var scr1 = document.createElement('script');
      scr1.text ="//\uFFFD\nscript_ran();";
      document.body.appendChild(scr1);

      // Insert a script element that contains a surrogate character but it otherwise
      // entirely identical to the previously inserted one, t