mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 17:36:14 -04:00
tests: fix frontend tests on firefox
These changes make the frontend tests send keydown instead of keypress in firefox, in accordance with #3413 (Use keydown instead of keypress on Firefox). The percentage of passing frontend in Firefox 61 on this revision is 100%.
This commit is contained in:
parent
f17fe571df
commit
4580537537
7 changed files with 12 additions and 12 deletions
|
@ -44,11 +44,11 @@ describe("undo button", function(){
|
|||
var modifiedValue = $firstTextElement.text(); // get the modified value
|
||||
expect(modifiedValue).not.to.be(originalValue); // expect the value to change
|
||||
|
||||
if(inner$(window)[0].bowser.firefox){ // if it's a mozilla browser
|
||||
var evtType = "keypress";
|
||||
}else{
|
||||
var evtType = "keydown";
|
||||
}
|
||||
/*
|
||||
* ACHTUNG: this is the only place in the test codebase in which a keydown
|
||||
* is sent for IE. Everywhere else IE uses keypress.
|
||||
*/
|
||||
var evtType = "keydown";
|
||||
|
||||
var e = inner$.Event(evtType);
|
||||
e.ctrlKey = true; // Control key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue