chromium/third_party/blink/web_tests/external/wpt/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-once.window.js

setup({ allow_uncaught_exception: true });

var errors = 0;
window.onerror = function() {
  errors++;
};

test(function() {
  var e = document.body;
  e.setAttribute("onclick", "window.open(");
  assert_equals(e.onclick, null);
  assert_equals(e.onclick, null);
  assert_equals(errors, 1);
}, "Invalid uncompiled raw handlers should only be compiled once");