fix tests in firefox as firefox fires on keypress not down

This commit is contained in:
John McLear 2013-03-14 13:41:49 -03:00
parent f0dee2d2ce
commit 12107859bb
4 changed files with 4 additions and 4 deletions

View file

@ -44,7 +44,7 @@ describe("italic some text", 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 = 105; // i
inner$("#innerdocbody").trigger(e);