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

@ -47,7 +47,7 @@ describe("undo button then redo button", function(){
var modifiedValue = $firstTextElement.text(); // get the modified value
expect(modifiedValue).not.to.be(originalValue); // expect the value to change
var e = inner$.Event("keydown");
var e = inner$.Event("keypress");
e.ctrlKey = true; // Control key
e.which = 90; // z
inner$("#innerdocbody").trigger(e);