ument.body.append(i);
    }, "JavaScript URLs in iframes should not have a sample.");

    async_test(t => {
      var violations = 0;
      document.addEventListener('securitypolicyviolation', t.step_func(e => {
        if (e.blockedURI != "eval")
          return;

        assert_equals(e.sample, "");
        violations++
        if (violations == 3)
          t.done();
      }));
      try {
        eval("assert_unreached('eval')");
        assert_unreached('eval');
      } catch (e) {
      }
      try 