[Australis] Bug 477948: update tests for new keyhole on Linux. r=jaws, a=sledru.
authorMike de Boer <mdeboer@mozilla.com>
Thu, 27 Mar 2014 18:17:36 +0100
changeset 183713 ff6f9042176843c87956c8c5c596e67304990166
parent 183712 871c60982cac540732adb2f00edfe881e0667f20
child 183714 4b355a2745cd5d46604fb7612fa88157acd92389
push id3458
push usermconley@mozilla.com
push dateSat, 12 Apr 2014 18:03:04 +0000
treeherdermozilla-beta@f1c211a4714d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws, sledru
bugs477948
milestone29.0
[Australis] Bug 477948: update tests for new keyhole on Linux. r=jaws, a=sledru.
browser/base/content/test/general/browser_popupNotification.js
--- a/browser/base/content/test/general/browser_popupNotification.js
+++ b/browser/base/content/test/general/browser_popupNotification.js
@@ -524,17 +524,22 @@ var tests = [
       this.box.appendChild(button);
 
       // The notification should open up on the box
       this.notifyObj = new basicNotification();
       this.notifyObj.anchorID = this.box.id = "nested-box";
       this.notifyObj.addOptions({dismissed: true});
       this.notification = showNotification(this.notifyObj);
 
-      EventUtils.synthesizeMouse(button, 1, 1, {});
+      // This test places a normal button in the notification area, which has
+      // standard GTK styling and dimensions. Due to the clip-path, this button
+      // gets clipped off, which makes it necessary to synthesize the mouse click
+      // a little bit downward. To be safe, I adjusted the x-offset with the same
+      // amount.
+      EventUtils.synthesizeMouse(button, 4, 4, {});
     },
     onShown: function(popup) {
       checkPopup(popup, this.notifyObj);
       dismissNotification(popup);
     },
     onHidden: function(popup) {
       this.notification.remove();
       this.box.parentNode.removeChild(this.box);