Index: LayoutTests/fullscreen/full-screen-test.js |
diff --git a/LayoutTests/fullscreen/full-screen-test.js b/LayoutTests/fullscreen/full-screen-test.js |
index dbba9684aef40e492cea5d58487d71aea99ad867..3a1099ab64c9a3b28f9019dc31e573a3743c5279 100644 |
--- a/LayoutTests/fullscreen/full-screen-test.js |
+++ b/LayoutTests/fullscreen/full-screen-test.js |
@@ -13,22 +13,14 @@ if (window.testRunner) { |
function runWithKeyDown(fn) |
{ |
- // FIXME: WKTR does not yet support the keyDown() message. Do a mouseDown here |
- // instead until keyDown support is added. |
- var eventName = !window.testRunner || eventSender.keyDown ? 'keypress' : 'mousedown' |
- |
function thunk() { |
- document.removeEventListener(eventName, thunk, false); |
+ document.removeEventListener("keypress", thunk, false); |
fn(); |
} |
- document.addEventListener(eventName, thunk, false); |
+ document.addEventListener("keypress", thunk, false); |
- if (window.testRunner) { |
- if (eventSender.keyDown) |
- eventSender.keyDown(" ", []); |
- else |
- eventSender.mouseDown(); |
- } |
+ if (window.eventSender) |
+ eventSender.keyDown(" ", []); |
} |
function logConsole() |