mirror of
https://github.com/servo/servo
synced 2026-04-29 19:07:38 +02:00
24 lines
550 B
HTML
24 lines
550 B
HTML
<!doctype html>
|
|
<meta charset="utf-8">
|
|
<title>Invalid uncompiled raw handlers should only be compiled once.</title>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<body>
|
|
<script>
|
|
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);
|
|
});
|
|
</script>
|
|
</body>
|