mirror of
https://github.com/servo/servo
synced 2026-04-30 19:37:43 +02:00
Correct and improve addEventListener.html.
We do now fire (trusted) events for onerror.
This commit is contained in:
@@ -11,9 +11,9 @@
|
||||
setup({allow_uncaught_exception:true});
|
||||
var t = async_test();
|
||||
var ran = false;
|
||||
// spec doesn't say to fire an event so this should do nothing
|
||||
window.addEventListener('error', t.step_func(function(e){
|
||||
ran = true;
|
||||
assert_true(e.isTrusted, 'isTrusted');
|
||||
}), false);
|
||||
</script>
|
||||
<script>
|
||||
@@ -24,7 +24,7 @@
|
||||
</script>
|
||||
<script>
|
||||
t.step(function(){
|
||||
assert_false(ran, 'ran');
|
||||
assert_true(ran, 'ran');
|
||||
t.done();
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user