Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bug 798513 - Missing ESC keypress in tests/js/controller/expected_eve…

…nts.js causes following tests to fail
  • Loading branch information...
commit 027aacbb70e9083949341d1927d314f11c92d606 1 parent d7748a2
@bobsilverberg bobsilverberg authored whimboo committed
Showing with 2 additions and 0 deletions.
  1. +2 −0  mutt/mutt/tests/js/controller/expected_events.js
View
2  mutt/mutt/tests/js/controller/expected_events.js
@@ -47,10 +47,12 @@ var test = function () {
expect.throws(function () {
controller.rightClick(lname, 2, 2, {type: "click"});
}, "Error", "Opening a context menu shouldn't raise a click event.");
+ controller.keypress(lname, "VK_ESCAPE", {type: "keypress"});
expect.doesNotThrow(function () {
controller.rightClick(lname, 2, 2, {type: "contextmenu"});
}, "Error", "Opening a context menu does faire a contextmenu event.")
+ controller.keypress(lname, "VK_ESCAPE", {type: "keypress"});
expect.throws(function () {
controller.keypress(lname, "VK_TAB", {}, {target: lname});
Please sign in to comment.
Something went wrong with that request. Please try again.