From 8736741c0b6b5c83f47e63e2afed1c76f42d5752 Mon Sep 17 00:00:00 2001 From: Timothy Nikkel Date: Sat, 21 Aug 2010 19:55:55 -0500 Subject: [PATCH] Bug 589078. Send synthesized click more inside the element so it doesn't miss. r=dbaron a=blocking 130078 which blocks beta5 --- browser/base/content/test/browser_pluginnotification.js | 2 +- .../mozapps/extensions/test/browser/browser_manualupdates.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/base/content/test/browser_pluginnotification.js b/browser/base/content/test/browser_pluginnotification.js index 3b21efd0099a..6cd5e0f6de33 100644 --- a/browser/base/content/test/browser_pluginnotification.js +++ b/browser/base/content/test/browser_pluginnotification.js @@ -127,7 +127,7 @@ function test3() { new TabOpenListener("about:addons", test4, prepareTest5); EventUtils.synthesizeMouse(gTestBrowser.contentDocument.getElementById("test"), - 0, 0, {}, gTestBrowser.contentWindow); + 5, 5, {}, gTestBrowser.contentWindow); } function test4(tab, win) { diff --git a/toolkit/mozapps/extensions/test/browser/browser_manualupdates.js b/toolkit/mozapps/extensions/test/browser/browser_manualupdates.js index d92e7c586c50..bcb0ba7bfbe8 100644 --- a/toolkit/mozapps/extensions/test/browser/browser_manualupdates.js +++ b/toolkit/mozapps/extensions/test/browser/browser_manualupdates.js @@ -84,7 +84,7 @@ add_test(function() { is(gManagerWindow.gViewController.currentViewId, "addons://updates/available", "Available Updates view should be the current view"); run_next_test(); }, true); - EventUtils.synthesizeMouse(gAvailableCategory, 0, 0, { }, gManagerWindow); + EventUtils.synthesizeMouse(gAvailableCategory, 2, 2, { }, gManagerWindow); });