mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
tests: hopefully fixed all tests to be working in edge
This commit is contained in:
parent
4eec68fbdd
commit
58e1e2d16f
8 changed files with 56 additions and 12 deletions
|
@ -111,10 +111,15 @@ describe("assign ordered list", function(){
|
|||
|
||||
var triggerCtrlShiftShortcut = function(shortcutChar) {
|
||||
var inner$ = helper.padInner$;
|
||||
if(inner$(window)[0].bowser.modernIE) { // if it's IE
|
||||
if(inner$(window)[0].bowser.modernIE){ // if it's IE
|
||||
var evtType = "keypress";
|
||||
}else{
|
||||
var evtType = "keydown";
|
||||
// Edge also requires keypress.
|
||||
if(window.navigator.userAgent.indexOf("Edge") > -1){
|
||||
var evtType = "keypress";
|
||||
}else{
|
||||
var evtType = "keydown";
|
||||
}
|
||||
}
|
||||
var e = inner$.Event(evtType);
|
||||
e.ctrlKey = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue