Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: LayoutTests/fast/events/event-trusted.html

Issue 1285793004: isTrusted is incorrect for events generated by Element.click() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Change bool on SimulatedMouseEvent to the enum class introduced everywhere else Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/events/event-trusted-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/fast/events/event-trusted-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698