summaryrefslogtreecommitdiff
path: root/tests/frontend/specs/bold.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/frontend/specs/bold.js')
-rw-r--r--tests/frontend/specs/bold.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/frontend/specs/bold.js b/tests/frontend/specs/bold.js
index 2fb6bbfe..95da7331 100644
--- a/tests/frontend/specs/bold.js
+++ b/tests/frontend/specs/bold.js
@@ -43,8 +43,13 @@ describe("bold button", function(){
//select this text element
$firstTextElement.sendkeys('{selectall}');
+ if(inner$.browser.mozilla){ // if it's a mozilla browser
+ var evtType = "keypress";
+ }else{
+ var evtType = "keydown";
+ }
- var e = inner$.Event("keydown");
+ var e = inner$.Event(evtType);
e.ctrlKey = true; // Control key
e.which = 66; // b
inner$("#innerdocbody").trigger(e);