diff --git a/tests/frontend/specs/redo.js b/tests/frontend/specs/redo.js index 059e97111..14ec31f62 100644 --- a/tests/frontend/specs/redo.js +++ b/tests/frontend/specs/redo.js @@ -58,7 +58,7 @@ describe("undo button then redo button", function(){ e.which = 90; // z inner$("#innerdocbody").trigger(e); - var e = inner$.Event("keydown"); + var e = inner$.Event(evtType); e.ctrlKey = true; // Control key e.which = 121; // y inner$("#innerdocbody").trigger(e);