summaryrefslogtreecommitdiff
path: root/tests/frontend/specs/bold.js
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2013-03-14 13:41:49 -0300
committerJohn McLear <john@mclear.co.uk>2013-03-14 13:41:49 -0300
commit12107859bb2325c5ba7b7bf0efeaa76682b5edb7 (patch)
treeeb461f6b25f3a5e8ec1f5fee1e67a2630b13ae74 /tests/frontend/specs/bold.js
parentf0dee2d2ceaf7cddf23bc54bce5ed623199cc57e (diff)
downloadetherpad-lite-12107859bb2325c5ba7b7bf0efeaa76682b5edb7.zip
fix tests in firefox as firefox fires on keypress not down
Diffstat (limited to 'tests/frontend/specs/bold.js')
-rw-r--r--tests/frontend/specs/bold.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/frontend/specs/bold.js b/tests/frontend/specs/bold.js
index 2fb6bbfe..010d6901 100644
--- a/tests/frontend/specs/bold.js
+++ b/tests/frontend/specs/bold.js
@@ -44,7 +44,7 @@ describe("bold button", function(){
//select this text element
$firstTextElement.sendkeys('{selectall}');
- var e = inner$.Event("keydown");
+ var e = inner$.Event("keypress");
e.ctrlKey = true; // Control key
e.which = 66; // b
inner$("#innerdocbody").trigger(e);