Bug 975381 - Use DOM_VK_RETURN/NS_VK_RETURN instead of DOM_VK_ENTER/NS_VK_ENTER in /mozmill. r=mkmelin
authorSebastian Hengst <archaeopteryx@coole-files.de>
Wed, 26 Mar 2014 22:21:57 +0100
changeset 15949 b24fd4b3bd3686694121476c1da351bf85d8bd02
parent 15948 50a6de9d6eaf526eae83bc5eb9d66d066f015462
child 15950 de5b8a8af767ea500a2f9b679b2cb4ce2da31791
push id9991
push userryanvm@gmail.com
push dateThu, 27 Mar 2014 14:28:02 +0000
treeherdercomm-central@b24fd4b3bd36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmkmelin
bugs975381
Bug 975381 - Use DOM_VK_RETURN/NS_VK_RETURN instead of DOM_VK_ENTER/NS_VK_ENTER in /mozmill. r=mkmelin CLOSED TREE
mail/test/resources/mozmill/mozmill/extension/resource/stdlib/EventUtils.js
mail/test/resources/mozmill/test/test_menu.js
--- a/mail/test/resources/mozmill/mozmill/extension/resource/stdlib/EventUtils.js
+++ b/mail/test/resources/mozmill/mozmill/extension/resource/stdlib/EventUtils.js
@@ -302,17 +302,17 @@ function synthesizeMouseScroll(aTarget, 
   }
 }
 
 /**
  * Synthesize a key event. It is targeted at whatever would be targeted by an
  * actual keypress by the user, typically the focused element.
  *
  * aKey should be either a character or a keycode starting with VK_ such as
- * VK_ENTER.
+ * VK_RETURN.
  *
  * aEvent is an object which may contain the properties:
  *   shiftKey, ctrlKey, altKey, metaKey, accessKey, type
  *
  * If the type is specified, a key event of that type is fired. Otherwise,
  * a keydown, a keypress and then a keyup event are fired in sequence.
  *
  * aWindow is optional, and defaults to the current window object.
--- a/mail/test/resources/mozmill/test/test_menu.js
+++ b/mail/test/resources/mozmill/test/test_menu.js
@@ -21,16 +21,16 @@ var testMenuAPI = function() {
   contextMenu.open(search);
   var state = contextMenu.getItem("#context-viewimage");
   controller.assert(function() {
     return state.getNode().hidden;
   }, "Context menu entry 'View Image' is not visible");
 
   // Remove the text by selecting 'Undo'
   contextMenu.keypress("VK_DOWN", {});
-  contextMenu.keypress("VK_ENTER", {});
+  contextMenu.keypress("VK_RETURN", {});
   contextMenu.close();
 
   controller.assert(function() {
     return search.getNode().value == "";
   }, "Text field has been emptied.");
 }