Index: LayoutTests/fast/events/event-trusted.html |
diff --git a/LayoutTests/fast/events/event-trusted.html b/LayoutTests/fast/events/event-trusted.html |
index 2dc9f116271e40aaac765ff0a18fb238cba8c76f..ccc0fdcf37b5a0faec077877f2ccfdb82c4332db 100644 |
--- a/LayoutTests/fast/events/event-trusted.html |
+++ b/LayoutTests/fast/events/event-trusted.html |
@@ -21,7 +21,7 @@ function originalDispatch(e) { |
function redispatch(e) { |
redispatched = true; |
-} |
+} |
var element = document.getElementById("clitty-click"); |
if (window.eventSender) { |
@@ -41,6 +41,12 @@ if (window.eventSender) { |
element.dispatchEvent(originalEvent); |
shouldBeTrue("redispatched"); |
shouldBeFalse("originalEvent.isTrusted"); |
+ |
+ originalEvent = null; |
+ element.removeEventListener('click', redispatch); |
+ element.addEventListener('click', originalDispatch); |
+ element.click(); |
+ shouldBeFalse("originalEvent.isTrusted"); |
} |
</script> |