Change mousedown events to keydown events, since eventSender.mouseDown
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Sep 2011 21:58:03 +0000 (21:58 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Sep 2011 21:58:03 +0000 (21:58 +0000)
wasn't firing onmousedown events on Mac.
https://bugs.webkit.org/show_bug.cgi?id=67960

Patch by Jeremy Apthorp <jeremya@chromium.org> on 2011-09-14
Reviewed by Adam Barth.

* fullscreen/full-screen-remove-ancestor-during-transition.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@95126 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fullscreen/full-screen-remove-ancestor-during-transition.html

index efc6dae..6f93df0 100644 (file)
@@ -1,3 +1,13 @@
+2011-09-14  Jeremy Apthorp  <jeremya@chromium.org>
+
+        Change mousedown events to keydown events, since eventSender.mouseDown
+        wasn't firing onmousedown events on Mac.
+        https://bugs.webkit.org/show_bug.cgi?id=67960
+
+        Reviewed by Adam Barth.
+
+        * fullscreen/full-screen-remove-ancestor-during-transition.html:
+
 2011-09-14  David Hyatt  <hyatt@apple.com>
 
         https://bugs.webkit.org/show_bug.cgi?id=68103
index 9c56ab2..4b316c0 100644 (file)
@@ -7,9 +7,9 @@ if (window.layoutTestController) {
 
 function runWithKeyDown(fn)
 {
-    document.addEventListener('mousedown', function() { fn(); }, false);
+    document.addEventListener('keydown', function() { fn(); }, false);
     if (window.layoutTestController) {
-        eventSender.mouseDown();
+        eventSender.keyDown('a');
     }
 }