mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-06-16 11:14:48 -04:00
fix tests in firefox as firefox fires on keypress not down
This commit is contained in:
parent
f0dee2d2ce
commit
12107859bb
4 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue