Bug 616797 backing-out the new tests a=orange
authorMasayuki Nakano <masayuki@d-toybox.com>
Wed, 08 Dec 2010 21:25:20 +0900
changeset 58888 f0e5b157c395c8c58077e7a04878bcc8c0b9443d
parent 58887 637588938139e64ab4a1d1ca77b39824890cda49
child 58889 465ac4717f88f8cc249881652eeafee2fe4f28b3
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersorange
bugs616797
milestone2.0b8pre
Bug 616797 backing-out the new tests a=orange
toolkit/content/tests/widgets/window_menubar.xul
--- a/toolkit/content/tests/widgets/window_menubar.xul
+++ b/toolkit/content/tests/widgets/window_menubar.xul
@@ -562,61 +562,16 @@ var popupTests = [
     synthesizeKey("VK_ALT", { type: "keydown" });
     synthesizeMouse(document.getElementById("menubar"), 8, -30, { type: "mouseup", altKey: true });
     synthesizeKey("VK_ALT", { type: "keydown" });
     synthesizeKey("VK_ALT", { type: "keyup" });
   },
   result: function (testname) {
     checkActive(document.getElementById("menubar"), "", testname);
   }
-},
-
-// Fllowing 3 tests are a test of bug 616797, don't insert any new tests
-// between them.
-{
-  testname: "Open file menu by accelerator",
-  condition: function() { return (navigator.platform.indexOf("Win") == 0) },
-  events: function() {
-    return [ "DOMMenuBarActive menubar", "popupshowing filepopup",
-             "DOMMenuItemActive filemenu", "DOMMenuItemActive item1",
-             "popupshown filepopup" ];
-  },
-  test: function() {
-    synthesizeKey("VK_ALT", { type: "keydown" });
-    synthesizeKey("F", { altKey: true });
-    synthesizeKey("VK_ALT", { type: "keyup" });
-  }
-},
-{
-  testname: "Close file menu by click at outside of popup menu",
-  condition: function() { return (navigator.platform.indexOf("Win") == 0) },
-  events: function() {
-    return [ "popuphiding filepopup", "popuphidden filepopup",
-             "DOMMenuItemInactive item1", "DOMMenuInactive filepopup",
-             "DOMMenuBarInactive menubar", "DOMMenuItemInactive filemenu",
-             "DOMMenuItemInactive filemenu" ];
-  },
-  test: function() {
-    // XXX hidePopup() causes DOMMenuItemInactive event to be fired twice.
-    document.getElementById("filepopup").hidePopup();
-  }
-},
-{
-  testname: "Alt keydown set focus the menubar",
-  condition: function() { return (navigator.platform.indexOf("Win") == 0) },
-  events: function() {
-    return [ "DOMMenuBarActive menubar", "DOMMenuItemActive filemenu" ];
-  },
-  test: function() {
-    synthesizeKey("VK_ALT", {  });
-  },
-  result: function (testname) {
-    checkClosed("filemenu", testname);
-    synthesizeKey("VK_ALT", {  }); // unfocus menubar
-  }
 }
 
 ];
 
 ]]>
 </script>